|
声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
MDU_R515 Compiler Directive
Home Compiling Programs Directives Reference
MDU_R515
|
Abbreviation |
None.
|
|
Arguments |
None.
|
|
Default |
Multiply/Division Unit support is disabled.
|
|
Vision |
Options — Target — Use On-Chip Arithmetic Unit.
|
|
Description |
The MDU_R515 directive enables support for the Multiple/Division Unit (MDU) of the Cast/Evatronix R80515. When this directive is specified the compiler uses the MDU to increase the speed of the following operations:
|
Operation |
Implementation |
|---|
|
signed int mul |
Intrinsic |
|
unsigned int mul |
Intrinsic |
|
signed int div |
?C?SIDIVR515 routine |
|
unsigned int div |
?C?UIDIVR515 routine |
|
signed long mul |
?C?LMULR515 routine |
|
unsigned long mul |
?C?LMULR515 routine |
|
signed long div |
?C?SLDIVR515 routine |
|
unsigned long div |
?C?ULDIVR515 routine |
|
signed long shift left |
?C?LSHLR515 routine |
|
unsigned long shift left |
?C?LSHLR515 routine |
|
unsigned long shift right |
?C?ULSHRR515 routine |
|
|
See Also |
NOMDU_R515
|
|
Example |
C51 SAMPLE.C MDU_R515
#pragma mdu_r515
|
MDU_R515 编译器伪指令
Home Compiling Programs Directives Reference
MDU_R515
|
缩写 |
无。
|
|
参数 |
无。
|
|
缺省 |
乘/除单元支持禁止。
|
|
Vision |
Options — Target — Use On-Chip Arithmetic Unit.
|
|
描述 |
MDU_R515 伪指令使能Cast/Evatronix R80515器件的乘/除单元(MDU) 。当指定这个伪指令时,编译器使用 MDU 增加下面操作的速度:
|
操作 |
实现 |
|---|
|
有符号整型乘 |
Intrinsic |
|
无符号整型乘 |
Intrinsic |
|
有符号整型除 |
?C?SIDIVR515 函数 |
|
无符号整型除 |
?C?UIDIVR515
函数 |
|
有符号长整型乘 |
?C?LMULR515
函数 |
|
无符号长整型乘 |
?C?LMULR515
函数 |
|
有符号长整型除 |
?C?SLDIVR515
函数 |
|
无符号长整型除 |
?C?ULDIVR515
函数 |
|
有符号长整型左移 |
?C?LSHLR515
函数 |
|
无符号长整型左移 |
?C?LSHLR515
函数 |
|
无符号长整型右移 |
?C?ULSHRR515
函数 |
|
|
参考 |
NOMDU_R515
|
|
示例 |
C51 SAMPLE.C MDU_R515
#pragma mdu_r515
|
|