From bba95de158351a798c3890af3e8807f868dc5083 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Wed, 5 Jan 2000 23:57:02 +0000 Subject: [PATCH] quick fix for initializing arrays in benchmark. 2000-01-05 Owen Taylor * gdk-pixbuf/pixops/timescale.c: quick fix for initializing arrays in benchmark. --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/pixops/README | 1 - gdk-pixbuf/pixops/timescale.c | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 6a109b6bfd..2387d2478d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2000-01-05 Owen Taylor + + * gdk-pixbuf/pixops/timescale.c: quick fix for initializing + arrays in benchmark. + 2000-01-05 Jonathan Blandford * gdk-pixbuf/gdk-pixbuf-io.h: Change the order of the update func diff --git a/gdk-pixbuf/pixops/README b/gdk-pixbuf/pixops/README index 5518a35d61..957a0b3cbe 100644 --- a/gdk-pixbuf/pixops/README +++ b/gdk-pixbuf/pixops/README @@ -33,7 +33,6 @@ for a number of the most common special cases: compositing from RGBA to RGBx compositing against a color from RGBA and storing in a RGBx buffer - TODO ==== diff --git a/gdk-pixbuf/pixops/timescale.c b/gdk-pixbuf/pixops/timescale.c index 1abefb84e9..0db35c123e 100644 --- a/gdk-pixbuf/pixops/timescale.c +++ b/gdk-pixbuf/pixops/timescale.c @@ -41,7 +41,7 @@ init_array (double times[3][3][4]) for (i=0; i<3; i++) for (j=0; j<3; j++) - for (k=0; j<4; k++) + for (k=0; k<4; k++) times[i][j][k] = -1; } @@ -129,6 +129,10 @@ int main (int argc, char **argv) printf ("Scaling from (%d, %d) to (%d, %d)\n\n", src_width, src_height, dest_width, dest_height); + init_array (scale_times); + init_array (composite_times); + init_array (composite_color_times); + for (src_index = 0; src_index < 3; src_index++) for (dest_index = 0; dest_index < 3; dest_index++) {