"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-zlib.c" between
stress-ng-0.12.09.tar.xz and stress-ng-0.12.10.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-zlib.c  (stress-ng-0.12.09.tar.xz):stress-zlib.c  (stress-ng-0.12.10.tar.xz)
skipping to change at line 472 skipping to change at line 472
double dtheta = M_PI / 180.0; double dtheta = M_PI / 180.0;
register double *ptr = (double *)data; register double *ptr = (double *)data;
register double *end = (double *)(data + size); register double *end = (double *)(data + size);
(void)args; (void)args;
while (ptr < end) { while (ptr < end) {
double s = sin(theta); double s = sin(theta);
(void)memcpy((void *)ptr, &s, sizeof(double)); (void)memcpy((void *)ptr, &s, sizeof(*ptr));
theta += dtheta; theta += dtheta;
dtheta += 0.001; dtheta += 0.001;
ptr++; ptr++;
} }
} }
/* /*
* stress_rand_data_gray() * stress_rand_data_gray()
* fill buffer with gray code of incrementing 16 bit values * fill buffer with gray code of incrementing 16 bit values
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)