3 ms·
> Probably lots of game mega-companies (influencing GPUs). Haven't ever heard of this. > Arm had special JavaScript instructions for a while Which is a desig
by manuelabeledo 4y ago
> Probably lots of game mega-companies (influencing GPUs).
Haven't ever heard of this.
> Arm had special JavaScript instructions for a while
Which is a design choice. ECMAscript is a standard, and the instruction seems to be a way of making certain conversions faster. From the release document [0]:
"Armv8.3-A adds instructions that convert a double-precision floating-point number to a signed 32-bit integer with round towards zero. Where the integer result is outside the range of a signed 32-bit integer (DP float supports integer precision up to 53 bits), the value stored as the result is the integer conversion modulo 232, taking the same sign as the input float."
It is not unusual for hardware vendors to include instructions that would make certain common operations faster. That does not mean that software vendors, and in this context, compiler engineers, dictate CPU design choices.
[0] https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/armv8-a-architecture-2016-additions https://community.arm.com/arm-community-blogs/b/architecture...