Fix Issue 18247 - core.stdc.math functions that never set errno should be pure#2045
Fix Issue 18247 - core.stdc.math functions that never set errno should be pure#2045dlang-bot merged 1 commit intodlang:masterfrom
Conversation
|
Thanks for your pull request, @n8sh! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Some tips to help speed things up:
Bear in mind that large or tricky changes may require multiple rounds of review and revision. Please see CONTRIBUTING.md for more information. Bugzilla references
|
|
Are you sure about that? The latter ones seem fine, as they are bit getters/setters. I don't believe you when you say that cos, sin and tan are pure. |
|
You were right to disbelieve me. On macOS 10.12.6
Will fix. I'll also check the other functions. |
f8e6643 to
8e0b69d
Compare
|
I still think there are a couple others (tanh, asinh). I'll check against both glibc and gcc how they attribute these functions. |
|
Looking at the glibc sources, sysdeps/ieee754/dbl-64/s_sin.c contains Neither do However if |
If I was to be pedantic, |
|
OK, added |
|
Also newlib documentation is a good point of reference too. |
|
Rebased for musl. |
These include:
cos, sin, tan,atan;