[BACK]Return to lrintf.c CVS log [TXT][DIR] 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.

Diff for /src/lib/libm/src/Attic/lrintf.c between version 1.1 and 1.2

version 1.1, 2004/06/30 15:08:30 version 1.2, 2004/07/01 16:06:30
Line 53  LRINTNAME(float x)
Line 53  LRINTNAME(float x)
   
         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);
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>