Skip to content

Commit 9d65188

Browse files
pkofodStefanKarpinski
authored andcommitted
Remove unused angle_restrict_symm function left over from #18330.
1 parent 298fb19 commit 9d65188

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

base/math.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -728,19 +728,6 @@ end
728728
@inline ^(x::Float16, y::Integer) = Float16(Float32(x) ^ y)
729729
@inline literal_pow(::typeof(^), x::Float16, ::Val{p}) where {p} = Float16(literal_pow(^,Float32(x),Val(p)))
730730

731-
function angle_restrict_symm(theta)
732-
P1 = 4 * 7.8539812564849853515625e-01
733-
P2 = 4 * 3.7748947079307981766760e-08
734-
P3 = 4 * 2.6951514290790594840552e-15
735-
736-
y = 2*floor(theta/(2*pi))
737-
r = ((theta - y*P1) - y*P2) - y*P3
738-
if (r > pi)
739-
r -= (2*pi)
740-
end
741-
return r
742-
end
743-
744731
## rem2pi-related calculations ##
745732

746733
function add22condh(xh::Float64, xl::Float64, yh::Float64, yl::Float64)

0 commit comments

Comments
 (0)