Renesas M32R-FPU ユーザーズマニュアル
![Renesas](https://files.manualsbrain.com/attachments/59153266feca598c11e08bf1f143ccfcf45441a4/common/fit/150/50/d3d06de51d338eb4f916b44a9629f9d48697a59cd7344be40cf24bae01c5/brand_logo.gif)
3
3-91
M32R-FPU Software Manual (Rev.1.01)
RAC
RAC
DSP function instruction
Round accumulator
[Mnemonic]
RAC
[Function]
Saturation Process
{ signed64bit tmp;
tmp = ( signed64bit ) accumulator << 1;
tmp = tmp + 0x0000 0000 0000 8000;
if( 0x0000 7fff ffff 0000 < tmp )
accumulator = 0x0000 7fff ffff 0000;
else if( tmp < 0xffff 8000 0000 0000 )
accumulator = 0xffff 8000 0000 0000;
else
accumulator = tmp & 0xffff ffff ffff 0000; }
[Description]
RAC rounds the contents in the accumulator to word size and stores the result in the accumu-
lator.
The condition bit (C) is unchanged.
[EIT occurrence]
None
[Encoding]
RAC
0000
0101
0000
1001
INSTRUCTIONS
3.2 Instruction description