cBench_set_color_ht.c

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:23.0
disk size 322 Bytes
downloadable true
type
attribute value
name no_type
processor id 1
description this is the default benchmark type for rejected benchmarks and benchmarks that are not associated with a type.
owning community none
loading contents
//taken from office_ghostscript/src/gxcht.c 	set_color_ht	1703,1695,1674,1668

//Complexity: O(n^2)
void set_color_ht_extracted(int h, int w) {
    for (int y = h; ;) {
	--y;
	for (int x = w; x > 0;) {
		int nx = (((x) < (8)) ? (x) : (8));
		x -= nx;
		for (int i = nx; --i >= 0; ); 
	}
	if (y <= 0)
	    break;
    }
}


popout

content may be truncated. 'popout' for larger text window.

actions get anonymous link download benchmark