http://msdn.microsoft.com/zh-cn/beginner/a0w705h5.aspx
旋转位左移 (_lrotl) 或右边 (_lrotr)。
unsigned long _lrotl( unsigned long value, int shift ); unsigned long _lrotr( unsigned long value, int shift );
示例
Output
本文介绍了在C语言中如何使用_lrotl和_lrotr函数进行位的旋转操作。通过示例代码展示了如何实现左旋和右旋,并给出了具体的运行结果。
http://msdn.microsoft.com/zh-cn/beginner/a0w705h5.aspx
旋转位左移 (_lrotl) 或右边 (_lrotr)。
unsigned long _lrotl( unsigned long value, int shift ); unsigned long _lrotr( unsigned long value, int shift );
示例
Output
2123
1462
1195
817
3234
3954
2054

被折叠的 条评论
为什么被折叠?