Return to lrintf.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libm / src |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.1, 2004/06/30 15:08:30 | version 1.2, 2004/07/01 16:06:30 | ||
---|---|---|---|
|
|
||
shift = e - SNG_FRACBITS; | shift = e - SNG_FRACBITS; | ||
if (shift >=0) | if (shift >=0) | ||
res = (RESTYPE)i0 << shift; | res = (shift < 32 ? (RESTYPE)i0 << shift : 0); | ||
else | else | ||
res = i0 >> -shift; | res = (shift > -32 ? i0 >> -shift : 0); | ||
return (s ? -res : res); | return (s ? -res : res); | ||
} | } |