Q: Is there a high-performance/cross-platform way to get the hi 64 bits of a 64x64 multiply?
JVM provides Math.unsignedMultiplyHigh (& Math.multiplyHigh) tagged as intrinsic so the JIT uses the CPU instruction.
As a workaround, I can write the code for it when compiling natively, but over time it would be good to see library/compiler support.
This is in the context of porting my jvm IEEE754-2019 Decimal Floating Point library to kotlin multiplatform.