f128
#116909)Expand description
A 128-bit floating-point type (specifically, the “binary128” type defined in IEEE 754-2008).
This type is very similar to f32
and f64
, but has increased precision by using twice
as many bits as f64
. Please see the documentation for f32
or Wikipedia on
quad-precision values for more information.
Note that no platforms have hardware support for f128
without enabling target specific features,
as for all instruction set architectures f128
is considered an optional feature. Only Power ISA
(“PowerPC”) and RISC-V (via the Q extension) specify it, and only certain microarchitectures
actually implement it. For x86-64 and AArch64, ISA support is not even specified, so it will always
be a software implementation significantly slower than f64
.
Note: f128
support is incomplete. Many platforms will not be able to link math functions. On
x86 in particular, these functions do link but their results are always incorrect.