sleef icon indicating copy to clipboard operation
sleef copied to clipboard

xsignbitf(double d)

Open Remotion opened this issue 3 years ago • 2 comments

https://github.com/shibatch/sleef/blob/85440a5e87dae36ca1b891de14bc83b441ae7c43/src/libm/sleefsp.c#L71

int xsignbitf(double d) should probably use float instate of double.

Remotion avatar May 17 '21 18:05 Remotion

Yes. Thank you for pointing out.

shibatch avatar May 18 '21 07:05 shibatch

Also, maybe better implementation: floatToRawIntBits(d) >> 31

moon-chilled avatar Sep 22 '22 18:09 moon-chilled