Technical Support
On-Line Manuals
Cx51 User's Guide
#include <intrins.h> unsigned int _irol_ ( unsigned int i, /* integer to rotate left */ unsigned char b); /* bit positions to rotate */
The _irol_ routine rotates the bit pattern for the integer i left b bits. This routine is implemented as an intrinsic function.
The _irol_ routine returns the rotated value of i.
_crol_, _cror_, _iror_, _lrol_, _lror_
#include <intrins.h> void test_irol (void) { int a; int b; a = 0xA5A5; b = _irol_(a,3); /* b now is 0x2D2D */ }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.