Skip to content

Commit 6be4feb

Browse files
committed
more missing bits
1 parent cd8a66c commit 6be4feb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/DecFP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ for w in (32,64,128)
372372
@eval Base.$f(x::$BID) = ccall(($(bidsym(w,c)), libbid), Cint, ($BID,), x) != 0
373373
end
374374

375-
for (f,c) in ((:+,"add"), (:-,"sub"), (:*,"mul"), (:/, "div"), (:hypot,"hypot"), (:atan2,"atan2"), (:^,"pow"), (:copysign,"copySign"))
375+
for (f,c) in ((:+,"add"), (:-,"sub"), (:*,"mul"), (:/, "div"), (:hypot,"hypot"), (VERSION >= v"0.7.0-alpha+44" ? :atan : :atan2,"atan2"), (:^,"pow"), (:copysign,"copySign"))
376376
@eval Base.$f(x::$BID, y::$BID) = nox(ccall(($(bidsym(w,c)), libbid), $BID, ($BID,$BID), x, y))
377377
end
378378

test/runtests.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ if !(VERSION < v"0.7.0-DEV.1592")
44
using Base.MathConstants
55
end
66

7+
if VERSION >= v"0.7.0-alpha.69"
8+
using SpecialFunctions
9+
end
10+
11+
712
@test unsafe_load(DecFP.flags[]) == 0
813

914
import DecFP.isnanstr
@@ -130,7 +135,7 @@ for T in (Dec32, Dec64, Dec128)
130135
@test f(xd,yd) == f(x,y)
131136
end
132137

133-
for f in (/,hypot,atan2,^)
138+
for f in (/,hypot,VERSION >= v"0.7.0-alpha+44"?atan2:atan,^)
134139
@test f(xd,yd) f(x,y)
135140
if f != ^
136141
@test f(yd,xd) f(y,x)

0 commit comments

Comments
 (0)