Skip to content

Commit 44d9c9b

Browse files
committed
Revert "add SpecialFunctions to [deps] (#35)"
This reverts commit cbbded4.
1 parent 808d7ba commit 44d9c9b

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ julia = "1.0"
77

88
[deps]
99
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
10-
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
10+
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1111

1212
[extras]
1313
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

src/Quadmath.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module Quadmath
2+
using Requires
23

34
export Float128, ComplexF128, Inf128
45

@@ -105,6 +106,12 @@ reinterpret(::Type{Int128}, x::Float128) =
105106
reinterpret(::Type{Float128}, x::Int128) =
106107
reinterpret(Float128, reinterpret(UInt128, x))
107108

109+
function __init__()
110+
@require SpecialFunctions="276daf66-3868-5448-9aa4-cd146d93841b" begin
111+
include("specfun.jl")
112+
end
113+
end
114+
108115

109116
sign_mask(::Type{Float128}) = 0x8000_0000_0000_0000_0000_0000_0000_0000
110117
exponent_mask(::Type{Float128}) = 0x7fff_0000_0000_0000_0000_0000_0000_0000
@@ -579,7 +586,6 @@ end
579586
print(io::IO, b::Float128) = print(io, string(b))
580587
show(io::IO, b::Float128) = print(io, string(b))
581588

582-
include("specfun.jl")
583589
include("printf.jl")
584590

585591
end # module Quadmath

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Quadmath, SpecialFunctions
2-
using Random, Test
1+
using Test, Random
2+
using Quadmath
33

44
@testset "fp decomp" begin
55
y = Float128(2.0)

test/specfun.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
using SpecialFunctions
2+
13
@testset "special functions" begin
24
# The intention here is not to check the accuracy of the libraries,
35
# rather the sanity of library calls:
46
piq = Float128(pi)
57
halfq = Float128(0.5)
68
@test gamma(halfq) sqrt(piq)
7-
for func in (erf, erfc,
8-
besselj0, besselj1,
9-
bessely0, bessely1, lgamma)
9+
for func in (erf, erfc, besselj0, besselj1, bessely0, bessely1, lgamma)
1010
@test func(halfq) func(0.5)
1111
end
1212
for func in (bessely, besselj)

0 commit comments

Comments
 (0)