-
Notifications
You must be signed in to change notification settings - Fork 17
log2
instrinsic
#222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Good candidate for stdlib. |
or more generally, parity with math.h from C |
After a brief discussion of this in JoR (Journal of Requirements) at the WG5 meeting this week, if there is a strong use case for this, please make it. In general, feature parity with C math.h (in and of itself) doesn't appear to be a high priority for Fortran standards committee. The best way to get this moved on to the "We really should do it" list is to make a strong use case for it ho help justify the return on investment for implementers. |
It's not about feature parity with C, it's about feature parity with the modern IEEE-754 standard for floating-point arithmetic. log2 is one member of its list of recommended functions, and Fortran already has most of the rest. |
Peter's argument works for me, too. I'll see what I can do to help move this forward. |
From Table 9.1 from IEEE-754
|
Currently the standard has
log
andlog10
functions, but nolog2
.The text was updated successfully, but these errors were encountered: