WebAssembly numeric instructions
WebAssembly numeric instructions.
Declare a constant numbers.
Check if two numbers are equal.
Check if two numbers are not equal.
Check if a number is greater than another number.
Check if a number is less than another number.
Greater or equal
Check if a number is greater than or equal to another number.
Less or equal
Check if a number is less than or equal to another number.
Convert integers to floating points.
Truncate (float to int)
Convert (truncate fractional part) floating points to integers.
Reinterpret the bytes of integers as floating points and vice versa.
Get the lower of two numbers.
Get the higher of two numbers.
Round a number to the nearest integer.
Round up a number.
Round down a number.
Truncate (float to float)
Discard the fractional part of a number.
Get the absolute value of a number.
Negate a number.
Get the square root of a number.
Copy just the sign bit from one number to another.
Count leading zeros
- Count the amount of leading zeros in a numbers binary representation.
Count trailing zeros
- Count the amount of trailing zeros in a numbers binary representation.
- Count the total amount of 1s in a numbers binary representation.