From fa95f9e6e881457b4a711809a1bf62480cea2c82 Mon Sep 17 00:00:00 2001 From: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> Date: Wed, 18 Aug 2021 16:12:35 +0100 Subject: 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 --- src/boot_O2/rand.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/boot_O2') 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 -- cgit v1.2.3