fxp: Add FXP_INIT_PERCENT
This lets us specify fxp values easily in source.
This commit is contained in:
committed by
David Goldblatt
parent
caef4c2868
commit
bdb7307ff2
@@ -22,6 +22,7 @@
|
||||
*/
|
||||
typedef uint32_t fxp_t;
|
||||
#define FXP_INIT_INT(x) ((x) << 16)
|
||||
#define FXP_INIT_PERCENT(pct) (((pct) << 16) / 100)
|
||||
|
||||
/*
|
||||
* Amount of precision used in parsing and printing numbers. The integer bound
|
||||
|
Reference in New Issue
Block a user