Map a fixed point value to the previous whole number.
function int floor (int x) { return (x - 65535) & 0xFFFF0000; }