#include "camtypes.h"
#include "bitmpinf.h"
#include "fracfill.h"
Go to the source code of this file.
Defines | |
#define | new CAM_DEBUG_NEW |
#define | DoRand(Seed1, Seed2, t) |
Find the next random number in a sequence as detailed ARM data manual p 2-51. | |
Functions | |
DECLARE_SOURCE ("$Revision: 1282 $") | |
Variables | |
const INT32 | MAX_FRACTAL_COORD = (1<<28) |
|
Value: t = ((UINT32)(Seed1) >> 1 ) ^ ((UINT32)(Seed2)<<31); \ Seed2 = ((UINT32)(Seed1) & 1); \ t ^= (UINT32)(Seed1) << 12; \ Seed1 = ((UINT32)(t)) ^ ((UINT32)(t>>20));
ARM Code: ; Enter with seed in R0 (32 bits) R1 (1 bit in b0 only) TST R1, R1, LSR #1 ; b0 into carry MOVS R2, R0, RRX ; 33 bit rotate ADC R1, R1, R1 ; Carry into lsb of R1 (rest of it junked) EOR R2, R2, R0, LSL #12 ; dual EOR R0, R2, R2, LSR #20 ; tap ; exit as before Definition at line 180 of file fracfill.cpp. |
|
Definition at line 124 of file fracfill.cpp. |
|
|
|
Definition at line 127 of file fracfill.cpp. |