Skip to content

Commit

Permalink
feat(const_eval): impl. atanh
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Dec 22, 2023
1 parent 2c296f0 commit 0530389
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions naga/src/proc/constant_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ impl<'a> ConstantEvaluator<'a> {
crate::MathFunction::Atan => {
component_wise_float!(self, span, [arg], |e| { e.atan().into() })
}
crate::MathFunction::Atanh => {
component_wise_float!(self, span, [arg], |e| { e.atanh().into() })
}
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
crate::MathFunction::Clamp => {
component_wise_scalar!(
Expand Down

0 comments on commit 0530389

Please sign in to comment.