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

Function DMULT

include/recomp.h:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#if defined(__SIZEOF_INT128__)
40
41static inline void DMULT(int64_t a, int64_t b, int64_t* lo64, int64_t* hi64) {
42 __int128 full128 = ((__int128)a) * ((__int128)b);
43
44 *hi64 = (int64_t)(full128 >> 64);
45 *lo64 = (int64_t)(full128 >> 0);
46}
47
48static inline void DMULTU(uint64_t a, uint64_t b, uint64_t* lo64, uint64_t* hi64) {
49 unsigned __int128 full128 = ((unsigned __int128)a) * ((unsigned __int128)b);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected