File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -16162,6 +16162,23 @@ trapping or setting ``errno``.
1616216162The first result is the fractional part of the operand and the second result is
1616316163the integral part of the operand. Both results have the same sign as the operand.
1616416164
16165+ Not including exceptional inputs (listed below), `llvm.modf.*` is semantically
16166+ equivalent to:
16167+
16168+ %fp = frem <fptype> %x, 1.0 ; Fractional part
16169+ %ip = fsub <fptype> %x, %fp ; Integral part
16170+
16171+ (assuming no floating-point precision errors)
16172+
16173+ If the argument is a zero, returns a zero with the same sign and a 0 exponent
16174+ for both the fractional and integral parts.
16175+
16176+ If the argument is an infinity, returns a fractional part of zero with the same
16177+ sign, and infinity with the same sign as the integral part.
16178+
16179+ If the argument is a NaN, a NaN is returned as both fractional and integral
16180+ parts.
16181+
1616516182When specified with the fast-math-flag 'afn', the result may be approximated
1616616183using a less accurate calculation.
1616716184
You can’t perform that action at this time.
0 commit comments