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

Function do_cvt_w_d

include/recomp.h:380–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378 do_cvt_l_s(val);
379
380static inline int32_t do_cvt_w_d(double val) {
381 // Rounding mode aware double to 32-bit int conversion.
382 return (int32_t)lrint(val);
383}
384
385#define CVT_W_D(val) \
386 do_cvt_w_d(val)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected