File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -348,8 +348,12 @@ atan(x::Float128, y::Float128) =
348
348
sincos (x:: Float128 ) = (sin (x), cos (x))
349
349
350
350
# # misc
351
- fma (x:: Float128 , y:: Float128 , z:: Float128 ) =
352
- Float128 (@ccall (libquadmath. fmaq (x:: Cfloat128 , y:: Cfloat128 , z:: Cfloat128 ):: Cfloat128 ))
351
+ @static if ! Sys. iswindows ()
352
+ # disable fma on Windows until rounding mode issue fixed
353
+ # https://github.com/JuliaMath/Quadmath.jl/issues/31
354
+ fma (x:: Float128 , y:: Float128 , z:: Float128 ) =
355
+ Float128 (@ccall (libquadmath. fmaq (x:: Cfloat128 , y:: Cfloat128 , z:: Cfloat128 ):: Cfloat128 ))
356
+ end
353
357
354
358
isnan (x:: Float128 ) = 0 != @ccall (libquadmath. isnanq (x:: Cfloat128 ):: Cint )
355
359
isinf (x:: Float128 ) = 0 != @ccall (libquadmath. isinfq (x:: Cfloat128 ):: Cint )
Original file line number Diff line number Diff line change 121
121
@test abs (x) == x
122
122
@test hypot (Float128 (3 ),Float128 (4 )) == Float128 (5 )
123
123
@test atan (x,x) ≈ Float128 (pi ) / 4
124
- @test fma (x,x,Float128 (- 1.0 )) ≈ Float128 (1 )
124
+ if ! Sys. iswindows ()
125
+ @test fma (x,x,Float128 (- 1.0 )) ≈ Float128 (1 )
126
+ end
125
127
end
126
128
@testset " complex" begin
127
129
x = sqrt (ComplexF128 (1.0 + 1.0im ))
You can’t perform that action at this time.
0 commit comments