/***************************************************************** * exp3c5x_5.c - C program for testing rounding used in * Section 3.7.3.5 *****************************************************************/ #include #include #include #include /***************************************************************** * Define variable arrays, define and clear variables *****************************************************************/ int num[2] = {8520, 26214}; /* real values are 0.26, 0.79 */ int y1, y2; void main() { /* Understand the difference between _smpy and _smpyr */ /* OVM and FRCT are both set */ y1 = _smpyr(num[0],num[1]); // with rounding y2 = _smpy(num[0], num[1]); // without rounding }