On Fri, 13 Nov 2020, Liu Hao wrote:

在 2020/11/13 下午5:44, Martin Storsjö 写道:
These routines are used on msvcrt.dll on arm, which only provides
log(). For exact powers of two, produce an exact result instead
of one that only is numerically close.

Defer to the normal implementation for anything other than the
simple cases (negative values, denormals, infinities, etc).

Signed-off-by: Martin Storsjö <[email protected]>
---
Added a cast to int before returning the adjusted exponent as a
float.
---
 mingw-w64-crt/math/arm-common/log2.c | 29 ++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)



LGTM.

Thanks, pushed it.

// Martin

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to