"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-sigfpe.c" between
stress-ng-0.09.52.tar.xz and stress-ng-0.09.54.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-sigfpe.c  (stress-ng-0.09.52.tar.xz):stress-sigfpe.c  (stress-ng-0.09.54.tar.xz)
skipping to change at line 226 skipping to change at line 226
switch(exception) { switch(exception) {
case SNG_FLTDIV: case SNG_FLTDIV:
float_put(1.0 / (float)zero); float_put(1.0 / (float)zero);
break; break;
case SNG_INTDIV: case SNG_INTDIV:
uint64_put(1 / zero); uint64_put(1 / zero);
break; break;
default: default:
/* Raise fault otherwise */ /* Raise fault otherwise */
feraiseexcept(exception); (void)feraiseexcept(exception);
break; break;
} }
} }
i++; i++;
i %= SIZEOF_ARRAY(fpe_errs); i %= SIZEOF_ARRAY(fpe_errs);
} }
(void)feclearexcept(FE_ALL_EXCEPT); (void)feclearexcept(FE_ALL_EXCEPT);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
 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)