Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libm/complex



Module Name:    src
Committed By:   maya
Date:           Sun Jan  1 19:32:14 UTC 2017

Modified Files:
        src/lib/libm/complex: csqrt.c csqrtf.c

Log Message:
compare to zero, instead of using signbit, and be more specific in comment.
-0.0 > 0 is also false. no functional change.

while this is mostly a change to be consistent in style (the rest of the
comparisons aren't done with signbit), it is also a micro-optimization.

with our default compile flags, calls to copysign are libm calls (and a
whole function call!!). this generates more efficient code.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/complex/csqrt.c \
    src/lib/libm/complex/csqrtf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index