Update macros.h + allow ALIGN macros to be used anywhere (#574)

* Update macros.h + allow ALIGN macros to be used anywhere

* Fix wrong alignment in synthesis_sh.c

* Revert bitmask in VIRTUAL_TO_PHYSICAL macro
This commit is contained in:
Arceveti authored and GitHub committed 2023-01-31 15:50:19 -05:00
1 parent 1fadb78632
commit 337dac828f
15 files changed
+134 -97

No files matched your search

+1 -3
View File
@@ -1487,9 +1487,7 @@ static ALWAYS_INLINE float construct_float(const float f)
// Converts a floating point matrix to a fixed point matrix
// Makes some assumptions about certain fields in the matrix, which will always be true for valid matrices.
__attribute__((optimize("Os")))
void mtxf_to_mtx_fast(s16* dst, float* src)
{
OPTIMIZE_OS void mtxf_to_mtx_fast(s16* dst, float* src) {
float scale = construct_float(65536.0f / WORLD_SCALE);
// Iterate over pairs of values in the input matrix
for (int i = 0; i < 8; i++)