On Monday, 11 April 2022 at 07:24:41 UTC, Ola Fosheim Grøstad wrote:
>On Friday, 1 April 2022 at 12:06:01 UTC, deadalnix wrote:
>This is why a 128 bit type is absolutely key, it unlocks the ability to write larger integer types in a way that will allow the compiler to generate good code for it.
Does LLVM support that width good code gen? Intel/AMD have some instructions intended for higher precision math (ADX, MULX). They also have some instructions meant to be used for crypto, e.g. CLMUL.
LLVM 128 type (named i128
) on x86_64 produces standard instructions, e.g more or less the D library implementation with better code gen, example.