summaryrefslogtreecommitdiff
path: root/include/libc
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-09-15 11:02:27 -0300
committerGitHub <noreply@github.com>2023-09-15 11:02:27 -0300
commit4b30f1a6549c99eff5344a815b12f54e69d689e9 (patch)
treebae6d7b5b89e0c9ac761bbdd9a904a1113ea0834 /include/libc
parent626f09266d264dc994e51d8ce9e57b8da80704d4 (diff)
Move libultra variables to their respective headers (#1369)
* internal_rsp; move size_t and NULL to ultratypes.h * guint.h * Move system variables to os_system.h * controller, pi and vi * osint.h * piint.h * siint, ucode, viint, voiceinternal * Remove remaining variables from variables.h * format * final renames * bss * review * review
Diffstat (limited to 'include/libc')
-rw-r--r--include/libc/math.h15
-rw-r--r--include/libc/stddef.h6
2 files changed, 0 insertions, 21 deletions
diff --git a/include/libc/math.h b/include/libc/math.h
index 618ab52b5..fd32cf199 100644
--- a/include/libc/math.h
+++ b/include/libc/math.h
@@ -10,21 +10,6 @@
#define SHT_MAX 32767.0f
#define SHT_MINV (1.0f / SHT_MAX)
-typedef union {
- f64 d;
- struct {
- u32 hi;
- u32 lo;
- } word;
-} du;
-
-typedef union {
- u32 i;
- f32 f;
-} fu;
-
-extern f32 __libm_qnan_f;
-
float fabsf(float f);
#pragma intrinsic(fabsf)
#ifdef __GNUC__
diff --git a/include/libc/stddef.h b/include/libc/stddef.h
index e867d8e2a..d75339614 100644
--- a/include/libc/stddef.h
+++ b/include/libc/stddef.h
@@ -3,14 +3,8 @@
#include "PR/ultratypes.h"
-typedef u32 size_t;
-
typedef s32 ptrdiff_t;
-#ifndef NULL
-#define NULL (void*)0
-#endif
-
#ifdef __GNUC__
#define offsetof(structure, member) __builtin_offsetof (structure, member)
#else