Displaying 3 results from an estimated 3 matches for "g_log10e".
Did you mean:
g_flog10
2007 Jul 06
0
Branch 'as' - 2 commits - libswfdec/swfdec_as_math.c test/trace
...wfdecAsContext *cx, SwfdecAsObject *object,
+ guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
+{
+ double d = swfdec_as_value_to_number (cx, &argv[0]);
+
+ SWFDEC_AS_VALUE_SET_NUMBER (ret, trunc (d + 0.5));
+}
+
/* define some math constants if glib doesn't have them */
#ifndef G_LOG10E
#define G_LOG10E 0.43429448190325182765
2007 Jul 03
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_math.c libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/trace
...ject_set_variable (math, SWFDEC_AS_STR_LN10, &val);
SWFDEC_AS_VALUE_SET_NUMBER (&val, G_LN2);
- swfdec_as_object_set_variable (context->global, SWFDEC_AS_STR_LN2, &val);
+ swfdec_as_object_set_variable (math, SWFDEC_AS_STR_LN2, &val);
SWFDEC_AS_VALUE_SET_NUMBER (&val, G_LOG10E);
- swfdec_as_object_set_variable (context->global, SWFDEC_AS_STR_LOG10E, &val);
+ swfdec_as_object_set_variable (math, SWFDEC_AS_STR_LOG10E, &val);
SWFDEC_AS_VALUE_SET_NUMBER (&val, G_LOG2E);
- swfdec_as_object_set_variable (context->global, SWFDEC_AS_STR_LOG2E, &val);...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
..._LN2);
- swfdec_as_object_set_variable (math, SWFDEC_AS_STR_LN2, &val);
+ swfdec_as_object_set_variable_and_flags (math, SWFDEC_AS_STR_LN2, &val,
+ SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT |
+ SWFDEC_AS_VARIABLE_CONSTANT);
SWFDEC_AS_VALUE_SET_NUMBER (&val, G_LOG10E);
- swfdec_as_object_set_variable (math, SWFDEC_AS_STR_LOG10E, &val);
+ swfdec_as_object_set_variable_and_flags (math, SWFDEC_AS_STR_LOG10E, &val,
+ SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT |
+ SWFDEC_AS_VARIABLE_CONSTANT);
SWFDEC_AS_VALUE_SET_NUMBER (&val...