|
CC78K4 Datasheet, PDF (395/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 11 EXTENDED FUNCTIONS
(23) Multiplication function
Multiplication Function
#pragma mul
FUNCTION
⢠Outputs the code that multiplies the value of an expression to an object with direct inline expansion instead of
function call and generates an object file.
⢠If there is not a #pragma directive, the multiplication function is regarded as an ordinary function.
EFFECT
⢠Codes utilizing the data size of the multiplication instruction I/O are generated. Therefore, codes with faster
execution speed and smaller size than the description of ordinary multiplication expressions can be
generated.
USAGE
⢠Describe in the same format as that of a function call in the source. There are the following three functions for
multiplication.
mulu, muluw, mulw
[List of multiplication functions]
(a) unsigned int mulu (x, y);
unsigned char x;
unsigned char y;
Performs unsigned multiplication of x and y.
(b) unsigned long muluw (x, y);
unsigned int x;
unsigned int y;
Performs unsigned multiplication of x and y.
(c) long mulw (x, y);
int x;
int y;
Performs signed multiplication of x and y.
Userâs Manual U15556EJ1V0UM
395
|
▷ |