English
Language : 

CC78K4 Datasheet, PDF (392/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
(22) 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 not a #pragma directive, the rotate function is regarded as an ordinary function.
EFFECT
• The rotate function can be realized using C source or ASM description without describing the processing to
perform rotate.
USAGE
• Describe in the source in the same format as a function call. There are the following four function names.
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.
392
User’s Manual U15556EJ1V0UM