diff options
author | Chris Sidebottom <chris.sidebottom@arm.com> | 2023-05-02 10:03:04 +0100 |
---|---|---|
committer | Chris Sidebottom <chris.sidebottom@arm.com> | 2023-05-02 15:48:30 +0100 |
commit | c43ae85bdd44174c0f2867adc85fe94cbc626873 (patch) | |
tree | 9ebd0a0ea9a2ee8e27c3baf76ab3179b8a0547a7 /numpy/array_api/_manipulation_functions.py | |
parent | 525c35b5083da99dec8a5756d1b86099b2cf0c6b (diff) | |
download | numpy-c43ae85bdd44174c0f2867adc85fe94cbc626873.tar.gz |
BUG: Correct sin/cos float64 range check functions
When I translated range checks for [sin](https://github.com/ARM-software/optimized-routines/blob/91d5bbc3091fa568e6856c7c41f9d7492d5957df/math/v_sin.c#L68):
```c
cmp = v_cond_u64 ((ir >> 52) - TinyBound >= Thresh);
```
and [cos](https://github.com/ARM-software/optimized-routines/blob/91d5bbc3091fa568e6856c7c41f9d7492d5957df/math/v_cos.c#L56):
```c
cmp = v_cond_u64 (v_as_u64_f64 (r) >= v_as_u64_f64 (RangeVal));
```
They ended up the wrong way around, this corrects it.
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions