Matthias Kretz [Friday, 5 September 2025, 21:49:23 CEST]: > > How about an assert that if words > 0, bitsize % 32 == 0? > > I actually thought about an assert that bytes == 2 when words == 0. I don't > think there's a 1-Byte real type on any GCC target yet (though NVidia > apparently has hardware even for 4-Bit floats). > > Hmm, would this fail for x86 long double, which is 80 bits? OK, just > checked. It's mangled as 12/16 bytes on i686/x86_64.
It seems that Clang and GCC disagree on mangling 80-Bit long double: https://compiler-explorer.com/z/W1d64PjrP I like Clang's interpretation of https://itanium-cxx-abi.github.io/cxx-abi/ abi.html#mangle.float better. - Matthias -- ────────────────────────────────────────────────────────────────────────── Dr. Matthias Kretz https://mattkretz.github.io GSI Helmholtz Center for Heavy Ion Research https://gsi.de std::simd ──────────────────────────────────────────────────────────────────────────
