English
Language : 

CC78K0S Datasheet, PDF (382/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
(18) Rotate function
Rotate Function
CHAPTER 11 EXTENDED FUNCTIONS
#pragma rot
FUNCTION
• Outputs the code that rotates the value of an expression to the object with direct inline expansion instead of
function call and generates an object file.
• If there is no #pragma directive, the rotate function is regarded as an ordinary function.
EFFECT
• The rotate function can be realized by the C source or ASM description even if the processing to perform
rotate is not described.
USAGE
• Describe in the source in the same format as the function call.
available for the rotate function.
The following four function names are
rorb, rolb, rorw, rolw
[List of functions for rotate]
(a) unsigned char rorb (x, y) ;
unsigned char x ;
unsigned char y ;
Rotates x to the right y times.
(b) unsigned char rolb (x, y) ;
unsigned char x ;
unsigned char y ;
Rotates x to the left y times.
(c) unsigned int rorw (x, y) ;
unsigned int x ;
unsigned char y ;
Rotates x to the right y times.
(d) unsigned int rolw (x, y)
unsigned int x ;
unsigned char y ;
Rotates x to the left y times.
Caution The above-mentioned function declaration is not affected by the -ZI option.
382
User’s Manual U14872EJ1V0UM