core2/code_B9090.c done

This commit is contained in:
Banjo Kazooie
2022-08-06 18:58:07 -05:00
parent a0abcc1dce
commit 686d69b9a2
8 changed files with 169 additions and 15 deletions

View File

@@ -50,6 +50,8 @@ typedef void (* GenMethod_5)(s32, s32, s32, s32, s32);
out##_z = a##_z op b##_z;\
}
#define LENGTH_SQ_VEC3F(v) (v[0]*v[0] + v[1]*v[1] + v[2]*v[2])
//known it uses "+" instead of "|" for fight/code_9D40.c, func_8039049C, case 6
#define FUNC_8030E624(sfx_e, vol, sample_rate) func_8030E624(\
_SHIFTL((vol*1023), 21, 11) + _SHIFTL(sample_rate >> 5, 11, 10) + _SHIFTL(sfx_e, 0, 11)\