-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[headers 9] Add src/libc64/ and new "z64" rand.h (#2164)
* rand.h -> libc64/qrand.h * Add rand.h with z64 rand wrappers * yeet comment * code/rand.c -> libc64/qrand.c * fixup * move libc64 source to src/libc64/ * fix * bss * update file splits disasm metadata
- Loading branch information
1 parent
a903f8b
commit c7ec814
Showing
19 changed files
with
52 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef LIBC64_QRAND_H | ||
#define LIBC64_QRAND_H | ||
|
||
#include "ultra64.h" | ||
|
||
u32 Rand_Next(void); | ||
void Rand_Seed(u32 seed); | ||
f32 Rand_ZeroOne(void); | ||
void Rand_Seed_Variable(u32* rndNum, u32 seed); | ||
u32 Rand_Next_Variable(u32* rndNum); | ||
f32 Rand_ZeroOne_Variable(u32* rndNum); | ||
|
||
#if !PLATFORM_N64 | ||
f32 Rand_Centered(void); | ||
f32 Rand_Centered_Variable(u32* rndNum); | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
#ifndef RAND_H | ||
#define RAND_H | ||
|
||
#include "ultra64.h" | ||
#include "libc64/qrand.h" | ||
|
||
u32 Rand_Next(void); | ||
void Rand_Seed(u32 seed); | ||
f32 Rand_ZeroOne(void); | ||
void Rand_Seed_Variable(u32* rndNum, u32 seed); | ||
u32 Rand_Next_Variable(u32* rndNum); | ||
f32 Rand_ZeroOne_Variable(u32* rndNum); | ||
|
||
#if !PLATFORM_N64 | ||
f32 Rand_Centered(void); | ||
f32 Rand_Centered_Variable(u32* rndNum); | ||
#endif | ||
f32 Rand_ZeroFloat(f32 f); | ||
f32 Rand_CenteredFloat(f32 f); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters