summaryrefslogtreecommitdiff
path: root/src/mathc99.cc
diff options
context:
space:
mode:
authormeta <s@w23.at>2011-01-17 23:02:56 (GMT)
committermeta <s@w23.at>2011-01-17 23:02:56 (GMT)
commit8160212499c40c74f1c1c396f02332336ec4e8ae (patch)
tree2f20bc7a05e942f56e5a90040e97cbb08614bc9e /src/mathc99.cc
parent163461f47cdfb9de4b6b79268537fbe432a2522d (diff)
add C99 math for win32
Diffstat (limited to 'src/mathc99.cc')
-rw-r--r--src/mathc99.cc5
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);
+}
contact: Jan Huwald // Impressum