Skip to content

Commit 780ed5d

Browse files
feat(const_eval): impl. atanh
1 parent f0340a9 commit 780ed5d

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
@@ -47,6 +47,7 @@ Bottom level categories:
4747
- `asin`
4848
- `asinh`
4949
- `atan`
50+
- `atanh`
5051
- `cos`
5152
- `cosh`
5253
- `round`

naga/src/proc/constant_evaluator.rs

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

0 commit comments

Comments
 (0)