From b85d1550529839f8adb8f960d755e00f3f001dcd Mon Sep 17 00:00:00 2001 From: "David P. Sanders" Date: Sun, 5 Feb 2017 16:17:16 -0600 Subject: [PATCH] Use CRlibm.setup() (#199) * CRlibm setup * Import parse --- REQUIRE | 2 +- src/ValidatedNumerics.jl | 5 ++++- src/intervals/rounding.jl | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/REQUIRE b/REQUIRE index 44b332d..4c9493f 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,5 +1,5 @@ julia 0.4 -CRlibm 0.2.2 +CRlibm 0.4 Compat 0.7.11 FixedSizeArrays 0.1.2 ForwardDiff 0.2.0 diff --git a/src/ValidatedNumerics.jl b/src/ValidatedNumerics.jl index 1ea4daa..112d662 100644 --- a/src/ValidatedNumerics.jl +++ b/src/ValidatedNumerics.jl @@ -26,7 +26,8 @@ import Base: precision, isfinite, isnan, show, showall, - isinteger, setdiff + isinteger, setdiff, + parse export Interval, AbstractInterval, @@ -78,6 +79,8 @@ function __init__() setprecision(Interval, 256) # set up pi setprecision(Interval, Float64) + + CRlibm.setup() end diff --git a/src/intervals/rounding.jl b/src/intervals/rounding.jl index de3bcb1..579f86d 100644 --- a/src/intervals/rounding.jl +++ b/src/intervals/rounding.jl @@ -3,7 +3,8 @@ # Some, like sin(a, RoundDown) are already defined in CRlibm -import Base: +, -, *, /, sin, sqrt, inv, ^, zero, convert, parse +# import Base: +, -, *, /, sin, sqrt, inv, ^, zero, convert, parse + # unary minus: -{T<:AbstractFloat}(a::T, ::RoundingMode) = -a # ignore rounding