Skip to content

Commit

Permalink
Remove unused angle_restrict_symm function left over from JuliaLang#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
pkofod committed Feb 21, 2018
1 parent 3835029 commit 02a3699
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions base/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -728,19 +728,6 @@ end
@inline ^(x::Float16, y::Integer) = Float16(Float32(x) ^ y)
@inline literal_pow(::typeof(^), x::Float16, ::Val{p}) where {p} = Float16(literal_pow(^,Float32(x),Val(p)))

function angle_restrict_symm(theta)
P1 = 4 * 7.8539812564849853515625e-01
P2 = 4 * 3.7748947079307981766760e-08
P3 = 4 * 2.6951514290790594840552e-15

y = 2*floor(theta/(2*pi))
r = ((theta - y*P1) - y*P2) - y*P3
if (r > pi)
r -= (2*pi)
end
return r
end

## rem2pi-related calculations ##

function add22condh(xh::Float64, xl::Float64, yh::Float64, yl::Float64)
Expand Down

0 comments on commit 02a3699

Please sign in to comment.