Skip to content

@technobuddha > library > Binary

Arithmetic

NameTypeDescription
chFunctionSHA "choose" function: (x & y) ^ (~x & z)
int32FunctionConverts a number to a 32-bit signed integer.
majFunctionComputes the majority function of three numbers.
rotlFunctionRotates the bits of a 32-bit number to the left by a specified number of bits.
rotrFunctionRotates the bits of a 32-bit number to the right by a specified number of bits.