7 ms·
Not as strange an idea as you would think. In fact the ARM instruction set has a instruction for "Floating-point Javascript Convert to Signed fixed-point, round
by RubenSandwich 6y ago
Not as strange an idea as you would think. In fact the ARM instruction set has a instruction for "Floating-point Javascript Convert to Signed fixed-point, rounding toward Zero" FJCVTZS.[0] Considering the ubiquity of JS I expect more "JS/Wasm instructions" to be added in the future. (A Wasm co-processor appearing in 5 years is a bet I'm willing to make.)
[0] https://stackoverflow.com/a/50966903 https://stackoverflow.com/a/50966903
- fulafel 6y agoARM has a whole instruction set extension for JVM code (Jazelle).