Fixed floor

Map a fixed point value to the previous whole number.

 function int floor (int x)
 {
     return (x - 65535) & 0xFFFF0000;
 }

  
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.