projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TODO list update
[libm]
/
src
/
math
/
sqrt.c
diff --git
a/src/math/sqrt.c
b/src/math/sqrt.c
index
2c5642e
..
2ebd022
100644
(file)
--- a/
src/math/sqrt.c
+++ b/
src/math/sqrt.c
@@
-74,9
+74,6
@@
* sqrt(inf) = inf
* sqrt(-ve) = NaN ... with invalid signal
* sqrt(NaN) = NaN ... with invalid signal for signaling NaN
* sqrt(inf) = inf
* sqrt(-ve) = NaN ... with invalid signal
* sqrt(NaN) = NaN ... with invalid signal for signaling NaN
- *
- * Other methods : see the appended file at the end of the program below.
- *---------------
*/
#include "libm.h"
*/
#include "libm.h"
@@
-98,7
+95,7
@@
double sqrt(double x)
}
/* take care of zero */
if (ix0 <= 0) {
}
/* take care of zero */
if (ix0 <= 0) {
- if (((ix0&
(~sign)
)|ix1) == 0)
+ if (((ix0&
~sign
)|ix1) == 0)
return x; /* sqrt(+-0) = +-0 */
if (ix0 < 0)
return (x-x)/(x-x); /* sqrt(-ve) = sNaN */
return x; /* sqrt(+-0) = +-0 */
if (ix0 < 0)
return (x-x)/(x-x); /* sqrt(-ve) = sNaN */