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``.
16162
16162
The first result is the fractional part of the operand and the second result is
16163
16163
the integral part of the operand. Both results have the same sign as the operand.
16164
16164
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
+
16165
16182
When specified with the fast-math-flag 'afn', the result may be approximated
16166
16183
using a less accurate calculation.
16167
16184
You can’t perform that action at this time.
0 commit comments