Skip to content

Commit 4511dcf

Browse files
Update op_dd_dd.jl fix sqrt extra )
1 parent 875b9fa commit 4511dcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/ops/op_dd_dd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ end
5656
end
5757

5858
function sqrt_dd_dd(x::Tuple{T,T}) where {T<:IEEEFloat}
59-
iszero(HI(x))) && return x
60-
signbit(HI(x)) && throw(DomainError("sqrt(x) expects x >= 0")) # maybe we can remove this check? It will return nan anyway.
59+
iszero(HI(x)) && return x
60+
signbit(HI(x)) && throw(DomainError("sqrt(x) expects x >= 0"))
6161

6262
ahi, alo = HILO(x)
6363
s = sqrt(ahi)

0 commit comments

Comments
 (0)