add32 function

int add32(
  1. int x,
  2. int y
)

Adds two 32-bit integers and applies a mask to ensure the result fits within 32 bits.

Implementation

int add32(int x, int y) => (x + y) & mask32;