Skip to content

Commit a0c9e26

Browse files
feat(const_eval): impl. atanh
1 parent 47accec commit a0c9e26

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Bottom level categories:
4949
- `asin`
5050
- `asinh`
5151
- `atan`
52+
- `atanh`
5253
- `cos`
5354
- `cosh`
5455
- `round`

naga/src/proc/constant_evaluator.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,9 @@ impl<'a> ConstantEvaluator<'a> {
834834
crate::MathFunction::Atan => {
835835
component_wise_float!(self, span, [arg], |e| { Ok([e.atan()]) })
836836
}
837+
crate::MathFunction::Atanh => {
838+
component_wise_float!(self, span, [arg], |e| { Ok([e.atanh()]) })
839+
}
837840
crate::MathFunction::Pow => self.math_pow(arg, arg1.unwrap(), span),
838841
crate::MathFunction::Clamp => {
839842
component_wise_scalar!(

0 commit comments

Comments
 (0)