X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCutil.h;h=c939868a38534a09c5d277a12c5bb64ccc314d62;hb=3931bd1a9e2e1a392ccc7aa099502d28d84104b4;hp=d8956d49322aa078b6daed1a9f4f3b7eb00b0eaf;hpb=386cee8465119215de67a9e2c767818d4a923578;p=fw%2Fsdcc diff --git a/src/SDCCutil.h b/src/SDCCutil.h index d8956d49..c939868a 100644 --- a/src/SDCCutil.h +++ b/src/SDCCutil.h @@ -88,6 +88,12 @@ char *strncatz(char *dest, const char *src, size_t n); /* return SDCC build number */ const char *getBuildNumber(void); +/* convert a fixed16x16 type to double */ +double doubleFromFixed16x16(TYPE_UDWORD value); + +/* convert a double type to fixed16x16 */ +TYPE_UDWORD fixed16x16FromDouble(double value); + /* snprintf, by hook or by crook. */ size_t SDCCsnprintf(char *, size_t, const char *, ...);