]> Shamusworld >> Repos - rmac/blobdiff - fltpoint.h
Cleanup of codebase and initial commit of 56K assembler by ggn.
[rmac] / fltpoint.h
index 20caa727b84c8f8e12def77368aac03689c9d830..558ad7b5d24e378c01b607d486b5de3b62889d62 100644 (file)
@@ -1,6 +1,12 @@
 //
-// Cross-platform floating point handling
+// Cross-platform floating point handling (fixed point handling too!)
 //
+// by James Hammons
+// (C) 2018 Underground Software
+//
+
+#ifndef __FLTPOINT_H__
+#define __FLTPOINT_H__
 
 #include <stdint.h>
 
@@ -8,3 +14,7 @@ uint32_t FloatToIEEE754(float f);
 uint64_t DoubleToIEEE754(double d);
 void DoubleToExtended(double d, uint8_t out[]);
 
+uint64_t DoubleToFixedPoint(double d, int intBits, int fracBits);
+
+#endif // __FLTPOINT_H__
+