fracfill.cpp File Reference

(r1785/r1282)

#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)


Define Documentation

#define DoRand Seed1,
Seed2,
 ) 
 

Value:

t = ((UINT32)(Seed1) >> 1 ) ^ ((UINT32)(Seed2)<<31); \
    Seed2 = ((UINT32)(Seed1) & 1); \
    t ^= (UINT32)(Seed1) << 12; \
    Seed1 = ((UINT32)(t)) ^ ((UINT32)(t>>20));
Find the next random number in a sequence as detailed ARM data manual p 2-51.

Author:
Alex_Bligh (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/9/94
Parameters:
NewSeed - the new seed [INPUTS]
a random number & changes seed [OUTPUTS]
Returns:
Nothing

Errors: -

See also:
-
This is a Roger/Sophie Wilson routine port and thus incomprehensible

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.

#define new   CAM_DEBUG_NEW
 

Definition at line 124 of file fracfill.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 


Variable Documentation

const INT32 MAX_FRACTAL_COORD = (1<<28)
 

Definition at line 127 of file fracfill.cpp.


Generated on Sat Nov 10 03:49:10 2007 for Camelot by  doxygen 1.4.4