#include <cafe/os.h> static inline void OSf32tou16 (const f32* in, volatile u16* out); static inline u16 __OSf32tou16Value (const f32 in);
|out||Pointer to the unsigned 16-bit value to store.|
||Result as an 16-bit unsigned integer value.|
OSf32tou16 function takes addresses as arguments to load/store instructions. It converts single-precision floating-point memory into unsigned 16-bit integer memory in two instructions (using a load and a store).
__OSf32tou16Value function takes an argument by value. It converts a single-precision floating-point value into an unsigned 16-bit integer in two instructions (using a store and a load).
OSInitFastCast function before invoking these functions if the state of GQRs 2 through 5 have been changed on the current thread.
2013-05-08 Automated cleanup pass.
2012-08-02 Cleanup Pass.
2011-07-19 Updated for Cafe OS.
2010-08-30 Initial version.