summaryrefslogtreecommitdiff
path: root/src/boot_O2
diff options
context:
space:
mode:
authorEllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>2021-08-18 16:12:35 +0100
committerGitHub <noreply@github.com>2021-08-18 11:12:35 -0400
commitfa95f9e6e881457b4a711809a1bf62480cea2c82 (patch)
tree45c9af66b2506ff3edf4787d6fc9deb8fe5edc68 /src/boot_O2
parent49922b4856655a48389dbc45138930650e252dea (diff)
Migrated a lot of `boot` bss, matched a few NON_MATCHINGs in `boot` (#266)
* Import bss to boot_main and idle, match last function in idle * Some pointer cleanup in idle, spec * Clean up idle, add build.c, add bss to CIC6105 * Import rand bss * sptask bss and a macro * sptask updated to use libultra macros * siacs.c bss * Macros in CIC and idle * controller bss * seteventmesg bss * spec * pimgr and piacs bss * initialize OK, threadsave, initialize, pimgr bss * Match DmaMgr_Start * Fix bss reorder using separate file * Small cleanup of hex/dec in buffer sizes * Add comment, remove unused bss from spec * Merge remote-tracking branch 'upstream/master' into boot_bss * Format * Delete files * remove commented-out structs * Bit more cleanup * Addressed reviews * Format
Diffstat (limited to 'src/boot_O2')
-rw-r--r--src/boot_O2/rand.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/boot_O2/rand.c b/src/boot_O2/rand.c
index 6edf7490e..de603590e 100644
--- a/src/boot_O2/rand.c
+++ b/src/boot_O2/rand.c
@@ -1,5 +1,12 @@
#include "global.h"
+// The latest generated random number, used to generate the next number in the sequence.
+static u32 sRandInt = 1;
+
+// Space to store a value to be re-interpreted as a float.
+// This can't be static because it is used in z_kankyo
+u32 sRandFloat;
+
#define RAND_MULTIPLIER 1664525
#define RAND_INCREMENT 1013904223