Lines Matching refs:result

10  * To fit the output into 16 bits the 32 bit multiplication result is right
19 * Description: This function make 16 bit multiplication and return the result
20 * in 16 bits. To fit the multiplication result into 16 bits the multiplication
21 * result is right shifted by 15 bits. Right shifting 15 bits instead of 16 bits
28 s32 result;
30 result = 0x7fffffff;
32 result = ((s32) (op1) * (s32) (op2));
34 return (s16) (result >> 15);
39 * result. If the result overflow 32 bits, the output will be saturated to
44 s32 result;
45 result = op1 + op2;
46 if (op1 < 0 && op2 < 0 && result > 0)
47 result = 0x80000000;
48 else if (op1 > 0 && op2 > 0 && result < 0)
49 result = 0x7fffffff;
51 return result;
56 * result. If the result overflow 16 bits, the output will be saturated to
61 s16 result;
64 result = (s16) 0x7fff;
66 result = (s16) 0xffff8000;
68 result = (s16) temp;
70 return result;
75 * result. If the result overflow 16 bits, the output will be saturated to
80 s16 result;
83 result = (s16) 0x7fff;
85 result = (s16) 0xffff8000;
87 result = (s16) temp;
89 return result;
95 * the specified shift is -ve. This function return the result after shifting
101 s32 result;
102 result = op;
109 result = qm_add32(result, result);
111 result = result >> (-shift);
114 return result;
120 * the specified shift is -ve. This function return the result after shifting
126 s16 result;
127 result = op;
134 result = qm_add16(result, result);
136 result = result >> (-shift);
139 return result;
145 * function return the result of the shift operation.
281 /* normalize the result. */
294 /* write the q format of the result. */