search for: math_fun

Displaying 2 results from an estimated 2 matches for "math_fun".

Did you mean: matfun
2007 Jul 06
0
Branch 'as' - 2 commits - libswfdec/swfdec_as_math.c test/trace
...d) Author: Benjamin Otte <otte at gnome.org> Date: Fri Jul 6 11:36:31 2007 +0100 round direction is up diff --git a/libswfdec/swfdec_as_math.c b/libswfdec/swfdec_as_math.c index ad2468a..dff7c7d 100644 --- a/libswfdec/swfdec_as_math.c +++ b/libswfdec/swfdec_as_math.c @@ -50,7 +50,6 @@ MATH_FUN (cos) MATH_FUN (exp) MATH_FUN (floor) MATH_FUN (log) -MATH_FUN (round) MATH_FUN (sin) MATH_FUN (sqrt) MATH_FUN (tan) @@ -110,6 +109,15 @@ swfdec_as_math_random (SwfdecAsContext * SWFDEC_AS_VALUE_SET_NUMBER (ret, g_rand_double (cx->rand)); } +static void +swfdec_as_math_round (SwfdecA...
2007 Jun 12
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
...; + int i = swfdec_as_value_to_integer (cx, &argv[0]); SWFDEC_AS_VALUE_SET_INT (retval, i); } diff --git a/libswfdec/swfdec_as_math.c b/libswfdec/swfdec_as_math.c index 72fd090..cfc5fc1 100644 --- a/libswfdec/swfdec_as_math.c +++ b/libswfdec/swfdec_as_math.c @@ -32,9 +32,10 @@ #define MATH_FUN(name) \ static void \ -swfdec_as_math_ ## name (SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) \ +swfdec_as_math_ ## name (SwfdecAsContext *cx, SwfdecAsObject *object, \ + guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) \ { \ - double d = swfdec_as_value_to_...