search for: tmp_x

Displaying 3 results from an estimated 3 matches for "tmp_x".

Did you mean: tmp__
2015 Aug 06
2
LibCallAliasAnalysis class instantiation parameter
...y writer, or the llvm backend? I was looking at a case similar to the following: #include <math.h> double x[1000], y[1000]; double angle; void rotate(int point_count) { int i; for (i=0; i < point_count; i++) { double tmp_x = x[i]; x[i] = tmp_x * cos(angle) - y[i] * sin(angle); y[i] = y[i] * cos(angle) + tmp_x * sin(angle); } } In this case, the queries done by getModRefInfo are unable to avoid loading the ‘angle’ variable from memory for each call to sin/cos. Based on t...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...VIE_GET_CLASS (movie); - if (klass->mouse_in == NULL) - return FALSE; - return klass->mouse_in (movie, x, y); + if (klass->mouse_in != NULL && + klass->mouse_in (movie, x, y)) + return TRUE; + + for (walk = movie->list; walk; walk = walk->next) { + double tmp_x = x; + double tmp_y = y; + SwfdecMovie *cur = walk->data; + cairo_matrix_transform_point (&cur->inverse_matrix, &tmp_x, &tmp_y); + if (swfdec_movie_mouse_in (cur, tmp_x, tmp_y)) + return TRUE; + } + return FALSE; } void diff-tree d752275f3f23d91ea0e3e7aa03fa...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...*movie, double x, double y) -{ - SwfdecMovieClass *klass; - GList *walk; - - klass = SWFDEC_MOVIE_GET_CLASS (movie); - if (klass->mouse_in != NULL && - klass->mouse_in (movie, x, y)) - return TRUE; - - for (walk = movie->list; walk; walk = walk->next) { - double tmp_x = x; - double tmp_y = y; - SwfdecMovie *cur = walk->data; - cairo_matrix_transform_point (&cur->inverse_matrix, &tmp_x, &tmp_y); - if (swfdec_movie_mouse_in (cur, tmp_x, tmp_y)) - return TRUE; - } - return FALSE; -} - void swfdec_movie_local_to_global (SwfdecM...