Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/bidirectional/src/mymath.h')
-rw-r--r--experimental/bidirectional/src/mymath.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/experimental/bidirectional/src/mymath.h b/experimental/bidirectional/src/mymath.h
new file mode 100644
index 0000000..f8ad926
--- /dev/null
+++ b/experimental/bidirectional/src/mymath.h
@@ -0,0 +1,9 @@
+/* ---------------------------------------------------------------- */
+/* Copyright 1998 (c) by RWTH Aachen - Lehrstuhl fuer Informatik VI */
+/* Franz Josef Och */
+/* ---------------------------------------------------------------- */
+#ifndef HEADER_MYMATH_DEFINED
+#define HEADER_MYMATH_DEFINED
+inline double mfabs(double x){return (x<0)?(-x):x;}
+#include <math.h>
+#endif