![]() |
Public API Reference |
Quick floating point to integer conversions. More...
Go to the source code of this file.
Functions | |
| static long | csQfixed16 (float n) |
| Quickly convert a floating-point number to 16.16 fixed-point value. | |
| static long | csQfixed24 (float n) |
| Quickly convert a floating-point number to 8.24 fixed-point value. | |
| static long | csQfixed8 (float n) |
| Quickly convert a floating-point number to 24.8 fixed-point value. | |
| template<typename T > | |
| static long | csQint (T n) |
| Quickly truncate the fractional part of a floating-point value and convert it to a long integer using processor and/or number format quirks if available. | |
| template<typename T > | |
| static long | csQround (T n) |
| Quickly round a floating-point value and convert it to a long integer using processor and/or number format quirks if available. | |
Quick floating point to integer conversions.
Definition in file csqint.h.