Adds two 32-bit integers and applies a mask to ensure the result fits within 32 bits.
int add32(int x, int y) => (x + y) & mask32;