[PATCH] D27898: [compiler-rt] [builtins] Implement __floattitf() & __floatuntitf()
Renato Golin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 22 10:17:38 PST 2016
rengolin added inline comments.
================
Comment at: lib/builtins/floatuntitf.c:73
+ long_double_bits fb;
+ fb.u.high.all = (du_int)(e + 16383) << 48 /* exponent */
+ | ((a >> 64) & 0x0000ffffffffffffLL); /* mantissa */
----------------
mgorny wrote:
> rengolin wrote:
> > nit: an hexadecimal pattern here would be clearer. same above.
> Do you mean something like: `(foo << 48) & 0xffff....`?
No, just the `16383` to `0x3FFF`
https://reviews.llvm.org/D27898
More information about the cfe-commits
mailing list