mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-17 20:42:23 +00:00
[ntsc-1.2] Match N64 libultra (#2081)
* Match N64 libultra * INITIALIZE_FUNC -> OSINITIALIZE_FUNC * Document osGetIntMask * Refer readers of osGetIntMask to osSetIntMask comment * Whitelist new static functions in disasm unksyms check
This commit is contained in:
parent
6e8b820184
commit
7079005c83
31 changed files with 344 additions and 42 deletions
9
src/libultra/gu/normalize.c
Normal file
9
src/libultra/gu/normalize.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "global.h"
|
||||
|
||||
void guNormalize(f32* x, f32* y, f32* z) {
|
||||
f32 m = 1 / sqrtf(SQ(*x) + SQ(*y) + SQ(*z));
|
||||
|
||||
*x *= m;
|
||||
*y *= m;
|
||||
*z *= m;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue