fixed24.h File Reference

(r1785/r751)

#include "fix24.h"

Go to the source code of this file.

Classes

class  fixed24

Defines

#define F24SHIFT   (24)
#define SHORT_FIXED24(x)   ( ((INT32)(x)) << F24SHIFT )
#define FIXED24_DBL(d)   fixed24::FromRawLong((INT32)((d)*(1<<24)))
 This macro converts constant doubles into FIXED24s at compile time. It is very effecient because there is no runtime overhead unlike normal conversion.

Typedefs

typedef fixed24 FIXED24

Variables

CCAPI xlong
 A FIXED24 is a signed 32-bit value with a binary point between bits 23 and 24 Its purpose is to represent floating point numbers in 32 bits. The implementation is very similar to FIXED16, but note that many methods are currently not defined in FIXED24, as it is used only in the colour system, which does not need large chunks of the FIXED16 functionality. No-one should include fixed24.h directly - always use ccmath.h. You should also never use the lower-case type 'fixed24' - always used 'FIXED24'.


Define Documentation

#define F24SHIFT   (24)
 

Definition at line 157 of file fixed24.h.

#define FIXED24_DBL  )     fixed24::FromRawLong((INT32)((d)*(1<<24)))
 

This macro converts constant doubles into FIXED24s at compile time. It is very effecient because there is no runtime overhead unlike normal conversion.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/6/93
Parameters:
double. [INPUTS]
None [OUTPUTS]
Returns:
FIXED24.

Errors: None.

Definition at line 264 of file fixed24.h.

#define SHORT_FIXED24  )     ( ((INT32)(x)) << F24SHIFT )
 

Definition at line 160 of file fixed24.h.


Typedef Documentation

typedef fixed24 FIXED24
 

Definition at line 242 of file fixed24.h.


Variable Documentation

class CCAPI xlong
 

A FIXED24 is a signed 32-bit value with a binary point between bits 23 and 24 Its purpose is to represent floating point numbers in 32 bits. The implementation is very similar to FIXED16, but note that many methods are currently not defined in FIXED24, as it is used only in the colour system, which does not need large chunks of the FIXED16 functionality. No-one should include fixed24.h directly - always use ccmath.h. You should also never use the lower-case type 'fixed24' - always used 'FIXED24'.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com> (Hijacked by Jason)
Date:
26/4/1993 (07/04/94)
See also:
CCMaths.h

Fixedasm.h

Div32By32

Keyword FIXED24

Keyword FIXED16

Operations from FIXED16 that are not available in FIXED24 are currently removed by the use of ifdef FULL_FIXED24 directives. (if there is no help on a function, then it is currently unsupported in FIXED24)

Returns:
Errors: None.

Definition at line 143 of file fixed24.h.


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