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

Function do_round_w_s

LiveRecomp/live_generator.cpp:831–833  ·  view source on GitHub ↗

TODO these four operations should use banker's rounding, but roundeven is C23 so it's unavailable here.

Source from the content-addressed store, hash-verified

829
830// TODO these four operations should use banker's rounding, but roundeven is C23 so it's unavailable here.
831int32_t do_round_w_s(float num) {
832 return lroundf(num);
833}
834
835int32_t do_round_w_d(double num) {
836 return lround(num);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected