Skip to content

Commit cbbded4

Browse files
JeffreySarnoffsimonbyrne
authored andcommitted
add SpecialFunctions to [deps] (#35)
* add SpecialFunctions.jl to [deps] * remove Requires.jl
1 parent 031068d commit cbbded4

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
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-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
10+
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1111

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

src/Quadmath.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module Quadmath
2-
using Requires
32

43
export Float128, ComplexF128, Inf128
54

@@ -106,12 +105,6 @@ reinterpret(::Type{Int128}, x::Float128) =
106105
reinterpret(::Type{Float128}, x::Int128) =
107106
reinterpret(Float128, reinterpret(UInt128, x))
108107

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

116109
sign_mask(::Type{Float128}) = 0x8000_0000_0000_0000_0000_0000_0000_0000
117110
exponent_mask(::Type{Float128}) = 0x7fff_0000_0000_0000_0000_0000_0000_0000
@@ -586,6 +579,7 @@ end
586579
print(io::IO, b::Float128) = print(io, string(b))
587580
show(io::IO, b::Float128) = print(io, string(b))
588581

582+
include("specfun.jl")
589583
include("printf.jl")
590584

591585
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 Test, Random
2-
using Quadmath
1+
using Quadmath, SpecialFunctions
2+
using Random, Test
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-
31
@testset "special functions" begin
42
# The intention here is not to check the accuracy of the libraries,
53
# rather the sanity of library calls:
64
piq = Float128(pi)
75
halfq = Float128(0.5)
86
@test gamma(halfq) sqrt(piq)
9-
for func in (erf, erfc, besselj0, besselj1, bessely0, bessely1, lgamma)
7+
for func in (erf, erfc,
8+
besselj0, besselj1,
9+
bessely0, bessely1, lgamma)
1010
@test func(halfq) func(0.5)
1111
end
1212
for func in (bessely, besselj)

0 commit comments

Comments
 (0)