aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 92f64ba..079445a 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -19,5 +19,6 @@ typedef double f64;
// 24.8 format
typedef i32 fx32;
#define FIXED_POINT_BITS 8
+#define FIXED_POINT_ONE (1 << FIXED_POINT_BITS)
#define TO_FIXED(x) ((fx32)(x) << FIXED_POINT_BITS)
#define FROM_FIXED(x) ((x) >> FIXED_POINT_BITS) \ No newline at end of file