silly: added silly_to_raw and silly_to_uraw

This commit is contained in:
2017-08-03 19:01:23 -04:00
parent a8db572c5f
commit 3f3a0da4b8
3 changed files with 16 additions and 4 deletions

View File

@@ -18,6 +18,8 @@ silly silly_from_float(float); // creates a silly number from a float
silly silly_from_double(double); // creates a silly number from a double
double silly_to_double(silly); // convert a silly number into a double
uint64_t silly_to_uraw(silly); // convert the silly struct to a raw value (without sign)
int64_t silly_to_raw(silly); // convert the silly struct to a raw value (with sign)
silly silly_add(silly, silly); // addition
silly silly_sub(silly, silly); // subtraction