summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Fix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/Fix.cpp')
-rw-r--r--nGenEx/Fix.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/nGenEx/Fix.cpp b/nGenEx/Fix.cpp
new file mode 100644
index 0000000..f6dd213
--- /dev/null
+++ b/nGenEx/Fix.cpp
@@ -0,0 +1,24 @@
+/* Project nGenEx
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
+
+ SUBSYSTEM: nGenEx.lib
+ FILE: Fix.cpp
+ AUTHOR: John DiCamillo
+
+
+ OVERVIEW
+ ========
+ Fixed point number class with 16 bits of fractional precision
+*/
+
+#include "MemDebug.h"
+#include "Fix.h"
+
+// +--------------------------------------------------------------------+
+
+const fix fix::one = fix(1);
+const fix fix::two = fix(2);
+const fix fix::three = fix(3);
+const fix fix::five = fix(5);
+const fix fix::ten = fix(10);