]> Shamusworld >> Repos - virtualjaguar/commitdiff
Reverted win32 specific fix: wasn't necessary. :-P
authorShamus Hammons <jlhamm@acm.org>
Wed, 11 Apr 2012 17:25:55 +0000 (17:25 +0000)
committerShamus Hammons <jlhamm@acm.org>
Wed, 11 Apr 2012 17:25:55 +0000 (17:25 +0000)
src/dsp.cpp

index 3ab0b6246808b6885637f1b3722ad896f7fe9981..7db98aee391f516192d53100740fa0a4b3aaed46 100644 (file)
 //#include "memory.h"
 
 
-#ifdef __GCCWIN32__
-// Apparently on win32, they left of the last little bits of these. So let's do this:
-#define random rand
-#define srandom srand
-#endif
-
 // Seems alignment in loads & stores was off...
 #define DSP_CORRECT_ALIGNMENT
 //#define DSP_CORRECT_ALIGNMENT_STORE
@@ -1294,7 +1288,7 @@ void DSPInit(void)
 
        dsp_build_branch_condition_table();
        DSPReset();
-       srandom(time(NULL));                                                    // For randomizing local RAM
+       srand(time(NULL));                                                      // For randomizing local RAM
 }
 
 void DSPReset(void)
@@ -1325,7 +1319,7 @@ void DSPReset(void)
        // Contents of local RAM are quasi-stable; we simulate this by randomizing RAM contents
        for(uint32 i=0; i<8192; i+=4)
        {
-               *((uint32 *)(&dsp_ram_8[i])) = random();
+               *((uint32 *)(&dsp_ram_8[i])) = rand();
        }
 }