X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=fltpoint.h;h=9704f5ee804d5dc83de1d3b316fce46ccf958783;hp=558ad7b5d24e378c01b607d486b5de3b62889d62;hb=ace0b549a94110b69ec61442f825fb421b79799a;hpb=261f8d9198c4235bcdced4403ba391553e6bd0d1 diff --git a/fltpoint.h b/fltpoint.h index 558ad7b..9704f5e 100644 --- a/fltpoint.h +++ b/fltpoint.h @@ -2,7 +2,7 @@ // Cross-platform floating point handling (fixed point handling too!) // // by James Hammons -// (C) 2018 Underground Software +// (C) 2019 Underground Software // #ifndef __FLTPOINT_H__ @@ -13,6 +13,7 @@ uint32_t FloatToIEEE754(float f); uint64_t DoubleToIEEE754(double d); void DoubleToExtended(double d, uint8_t out[]); +uint32_t DoubleToDSPFloat(double d); uint64_t DoubleToFixedPoint(double d, int intBits, int fracBits);