diff options
author | meta <s@w23.at> | 2011-01-17 23:02:56 (GMT) |
---|---|---|
committer | meta <s@w23.at> | 2011-01-17 23:02:56 (GMT) |
commit | 8160212499c40c74f1c1c396f02332336ec4e8ae (patch) | |
tree | 2f20bc7a05e942f56e5a90040e97cbb08614bc9e /src/mathc99.cc | |
parent | 163461f47cdfb9de4b6b79268537fbe432a2522d (diff) |
add C99 math for win32
Diffstat (limited to 'src/mathc99.cc')
-rw-r--r-- | src/mathc99.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mathc99.cc b/src/mathc99.cc new file mode 100644 index 0000000..db71059 --- /dev/null +++ b/src/mathc99.cc @@ -0,0 +1,5 @@ +#include "mathc99.h"
+
+double found(double a) {
+ return a > 0 ? floor(a+0.5) : ceil(a-0.5);
+}
|