Skip to content

Commit 7a54353

Browse files
authored
[libclc] Fix double NAN_MASK in __clc_nan (#163522)
0x7ff0000000000000 is +inf. Change it to quiet nan 0x7ff8000000000000.
1 parent 378e4ed commit 7a54353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/clc/lib/generic/math/clc_nan.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
#if __CLC_FPSIZE == 64
10-
#define NAN_MASK 0x7ff0000000000000ul
10+
#define NAN_MASK 0x7ff8000000000000ul
1111
#elif __CLC_FPSIZE == 32
1212
#define NAN_MASK 0x7fc00000
1313
#elif __CLC_FPSIZE == 16

0 commit comments

Comments
 (0)