|
|
@@ -1,7 +1,7 @@
|
|
|
+#include "core/math/math.h"
|
|
|
#include "resource/expression_language.h"
|
|
|
|
|
|
#include <alloca.h>
|
|
|
-#include <math.h>
|
|
|
#include <string.h>
|
|
|
#include <limits.h>
|
|
|
#include <stdlib.h>
|
|
|
@@ -85,7 +85,7 @@ namespace skinny { namespace expression_language {
|
|
|
case OP_UNARY_MINUS: PUSH(-POP()); break;
|
|
|
case OP_SIN: PUSH(sinf(POP())); break;
|
|
|
case OP_COS: PUSH(cosf(POP())); break;
|
|
|
- case OP_ABS: a = POP(); PUSH(abs(a)); break;
|
|
|
+ case OP_ABS: a = POP(); PUSH(fabs(a)); break;
|
|
|
case OP_MATCH: b=POP(); a=POP(); PUSH(match(a, b)); break;
|
|
|
case OP_MATCH2D: d=POP(); c=POP(); b=POP(); a=POP(); PUSH(match2d(a,b,c,d)); break;
|
|
|
case OP_NOP: break;
|