MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / do_cvt_w_s

Function do_cvt_w_s

include/recomp.h:364–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362#define DEFAULT_ROUNDING_MODE 0
363
364static inline int32_t do_cvt_w_s(float val) {
365 // Rounding mode aware float to 32-bit int conversion.
366 return (int32_t)lrintf(val);
367}
368
369#define CVT_W_S(val) \
370 do_cvt_w_s(val)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected