@@ -796,9 +796,7 @@ function sinpi(_x::T) where T<:IEEEFloat
796
796
throw (DomainError (x, " `x` cannot be infinite." ))
797
797
end
798
798
# For large x, answers are all 1 or zero.
799
- if T <: AbstractFloat
800
- x >= maxintfloat (T) && return copysign (zero (T), _x)
801
- end
799
+ x >= maxintfloat (T) && return copysign (zero (T), _x)
802
800
803
801
# reduce to interval [0, 0.5]
804
802
n = round (2 * x)
@@ -827,9 +825,7 @@ function cospi(x::T) where T<:IEEEFloat
827
825
throw (DomainError (x, " `x` cannot be infinite." ))
828
826
end
829
827
# For large x, answers are all 1 or zero.
830
- if T <: AbstractFloat
831
- x >= maxintfloat (T) && return one (T)
832
- end
828
+ x >= maxintfloat (T) && return one (T)
833
829
834
830
# reduce to interval [0, 0.5]
835
831
n = round (2 * x)
@@ -863,9 +859,7 @@ function sincospi(_x::T) where T<:IEEEFloat
863
859
throw (DomainError (x, " `x` cannot be infinite." ))
864
860
end
865
861
# For large x, answers are all 1 or zero.
866
- if T <: AbstractFloat
867
- x >= maxintfloat (T) && return (copysign (zero (T), _x), one (T))
868
- end
862
+ x >= maxintfloat (T) && return (copysign (zero (T), _x), one (T))
869
863
870
864
# reduce to interval [0, 0.5]
871
865
n = round (2 * x)
@@ -905,9 +899,7 @@ function tanpi(_x::T) where T<:IEEEFloat
905
899
end
906
900
# For large x, answers are all zero.
907
901
# All integer values for floats larger than maxintfloat are even.
908
- if T <: AbstractFloat
909
- x >= maxintfloat (T) && return copysign (zero (T), _x)
910
- end
902
+ x >= maxintfloat (T) && return copysign (zero (T), _x)
911
903
912
904
# reduce to interval [0, 0.5]
913
905
n = round (2 * x)
0 commit comments