Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
andb %ah, %dh
cmpb $0x05, %dh
je 1f /* Is +-Inf, jump. */
+ cmpb $0x40, %dh
+ je 2f /* Is +-Inf, jump. */
fxtract
pushq %rax
1: fstp %st
movl $0x7fffffff, %eax
ret
+2: fstp %st
+ movl $0x80000001, %eax /* FP_ILOGB0 */
+ ret
#else
fldt 4(%esp)
/* I added the following ugly construct because ilogb(+-Inf) is
andb %ah, %dh
cmpb $0x05, %dh
je 1f /* Is +-Inf, jump. */
+ cmpb $0x40, %dh
+ je 2f /* Is +-Inf, jump. */
fxtract
pushl %eax
1: fstp %st
movl $0x7fffffff, %eax
ret
+2: fstp %st
+ movl $0x80000001, %eax /* FP_ILOGB0 */
+ ret
#endif
- Fix an assertion failure when /cygdrive contains an offline network
drive.
Addresses: https://cygwin.com/ml/cygwin/2019-12/msg00016.html
+
+- Fix return value of ilogbl for 0 input.
+ Addresses: https://cygwin.com/ml/cygwin/2019-12/msg00074.html