Merge branch 'mr-origin-76'
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "core1/core1.h"
|
||||
#include "core2/core2.h"
|
||||
|
||||
#include "math.h" // ToDo: sort out actual dependencies
|
||||
#include "ml.h"
|
||||
#include "ml/mtx.h"
|
||||
#include "bs_funcs.h"
|
||||
@@ -25,32 +26,6 @@
|
||||
extern f32 fabsf(f32);
|
||||
#pragma intrinsic (fabsf)
|
||||
|
||||
#define TUPLE_ASSIGN(out, a, b, c) {\
|
||||
out[0] = a;\
|
||||
out[1] = b;\
|
||||
out[2] = c;\
|
||||
}
|
||||
|
||||
#define TUPLE_COPY(dst, src) {\
|
||||
dst[0] = src[0];\
|
||||
dst[1] = src[1];\
|
||||
dst[2] = src[2];\
|
||||
}
|
||||
|
||||
#define v3Copy(dst, src) {\
|
||||
dst[0] = src[0];\
|
||||
dst[1] = src[1];\
|
||||
dst[2] = src[2];\
|
||||
}
|
||||
|
||||
#define TUPLE_OP(out, a, op, b) {\
|
||||
out##_x = a##_x op b##_x;\
|
||||
out##_y = a##_y op b##_y;\
|
||||
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)\
|
||||
|
Reference in New Issue
Block a user