Polaris: rotate.h Source File

rotate.h

Go to the documentation of this file.
00001 /// Rotate.h
00002 ///
00003 #ifndef ROTATE_H
00004 #define ROTATE_H
00005 ///
00006 #include <values.h>
00007 ///
00008 inline unsigned rotate_right(unsigned val)
00009 {
00010   return (val >> 1) | (val << (sizeof(unsigned) * BITSPERBYTE - 1));
00011 }
00012 ///
00013 #endif
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:06 2005