Skip to content

Commit 418a6fb

Browse files
committed
Fix FMA_NATIVE constant
As pointed out be @StefanKarpinski in #31922 (comment)
1 parent 4a04600 commit 418a6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/special/log.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const t_log_Float32 = (0.0,0.007782140442054949,0.015504186535965254,0.023167059
141141

142142
# determine if hardware FMA is available
143143
# should probably check with LLVM, see #9855.
144-
const FMA_NATIVE = muladd(nextfloat(1.0),nextfloat(1.0),-nextfloat(1.0,2)) == -4.930380657631324e-32
144+
const FMA_NATIVE = muladd(nextfloat(1.0),nextfloat(1.0),-nextfloat(1.0,2)) == 4.930380657631324e-32
145145

146146
# truncate lower order bits (up to 26)
147147
# ideally, this should be able to use ANDPD instructions, see #9868.

0 commit comments

Comments
 (0)