Sha256: fbc03271c476aa397846d9b87e4c67e3a4fed9353a48898e5603a5605b9a531f

Contents?: true

Size: 241 Bytes

Versions: 11

Compression:

Stored size: 241 Bytes

Contents

/* do some CPU hogging */


int main(int argc, char *argv[])
{
  	int i;
	unsigned long long v1,v2,v3;

	while (1) {
		v1 = 42;
		v2 = v3 = -1;
		for (i=0; i<1000; i++) {
			v1 += i;
			v2 = v1*i + v3;
			v3 = v1 ^ v2;
		}
	}
	return 0;
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ganymed-0.3.4 contrib/cpuhog.c
ganymed-0.3.3 contrib/cpuhog.c
ganymed-0.3.2 contrib/cpuhog.c
ganymed-0.3.1 contrib/cpuhog.c
ganymed-0.3.0 contrib/cpuhog.c
ganymed-0.2.3 contrib/cpuhog.c
ganymed-0.2.2 contrib/cpuhog.c
ganymed-0.2.1 contrib/cpuhog.c
ganymed-0.2.0 contrib/cpuhog.c
ganymed-0.1.2 contrib/cpuhog.c
ganymed-0.1.1 contrib/cpuhog.c