mildew.stdlib.math

This module implements functions for the "Math" namespace in the scripting language

Members

Functions

CLZ1
uint CLZ1(uint x)

software implementation of CLZ32 because I don't know assembly courtesy of https://embeddedgurus.com/state-space/2014/09/fast-deterministic-and-portable-counting-leading-zeros/

initializeMathLibrary
void initializeMathLibrary(Interpreter interpreter)

Initializes the math library. This is called by Interpreter.initializeStdlib. Functions are stored in the global Math object and are accessed such as "Math.acos"

Meta