[llvm-dev] 128 bit float constant
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Wed Apr 10 04:44:10 PDT 2019
Hi Peter,
On Wed, 10 Apr 2019 at 08:01, Peter McKinna via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Just wondering if it's possible to construct a 128 bit quad precision floating point
> constant without converting the value back to a string.
It looks like the constructor that takes an APInt treats it as a
bag-of-bits representation according to IEEE float. It eventually ends
up at https://llvm.org/docs/doxygen/APFloat_8cpp_source.html#l03098 as
far as I can tell.
Cheers.
Tim.
More information about the llvm-dev
mailing list