|
resonance 1.0.1
|
Fixed-point number in 24.8 format. More...
#include <afix.h>
Static Public Attributes | |
| static int | onehalf |
| One half, 0x80. | |
| static int | e |
| Euler's number, 695. | |
| static int | pi |
| Pi, 804. | |
| static int | epsilon |
| The smallest positive value, 1. | |
| static int | max |
| The largest value whose whole part fits a signed halfword, 0x7fffff. | |
Fixed-point number in 24.8 format.
Its name comes from the debugging symbols of the North American demo release. The routines of ACanvas pass 24.8 values as plain words. Only the five constants are modelled. The static initialiser at 0x006209b0 computes onehalf as 0x100 divided by 2 and stores the other four as immediates.
|
static |
One half, 0x80.
The polygon fill routines of ACanvas add it to an edge position before truncating. The addition rounds the edge to the nearest column.
|
static |
Euler's number, 695.
No reader was located.
|
static |
Pi, 804.
No reader was located.
|
static |
The smallest positive value, 1.
ACanvas::ClipLine() subtracts it from the exclusive right and bottom clip edges. The subtraction places a clipped endpoint on the last column or row that remains inside.
|
static |
The largest value whose whole part fits a signed halfword, 0x7fffff.
No reader was located.