Library split (#5)

* fixed

* and cleanup

* format

* let's all go to the library

* split

* small cleanup
This commit is contained in:
petrie911
2023-10-19 14:53:47 -03:00
committed by GitHub
parent 0e74b7902a
commit 0c7c184d8a
40 changed files with 359 additions and 113 deletions
+10
View File
@@ -3,6 +3,16 @@
#include "PR/ultratypes.h"
double fabsf(double f);
#pragma intrinsic(fabsf)
#define M_PI 3.14159265358979323846f
#define M_SQRT2 1.41421356237309504880f
#define M_SQRT1_2 0.70710678118654752440f /* 1/sqrt(2) */
#define FLT_MAX 340282346638528859811704183484516925440.0f
#define SHT_MAX 32767.0f
#define SHT_MINV (1.0f / SHT_MAX)
typedef struct {
/* 0x0 */ f32 x;
/* 0x4 */ f32 y;