/***************************************************************** * expc5x_4.c - C program for testing saturation mode in * Section 3.7.3.4 *****************************************************************/ #include #include #include #include /**************************************************************** * Define variable arrays variables ****************************************************************/ int sine[8] = {0, 5792, 8191, 5792,0,-5792,-8191,-5792}; int scale = 3; int i; void main() { /* Understand the difference between _sshl and _lsshl */ /* _lsshl can be treated as OVM turn off if long src1 is defined as int src1 */ for (i=0; i<8; i++) { sine[i] = _sshl(sine[i],scale); // OVM mode turned ON // sine[i] = _lsshl(sine[i],scale); // OVM mode turned OFF } }