ARM: Adjust simplify rotate_imm slightly.
This commit is contained in:
parent
c20ce20e4c
commit
3964709711
1 changed files with 3 additions and 3 deletions
|
@ -37,10 +37,10 @@ output header {{
|
|||
#include <iostream>
|
||||
|
||||
inline uint32_t
|
||||
rotate_imm(uint32_t immValue, uint32_t rotateValue)
|
||||
rotate_imm(uint32_t immValue, int rotateValue)
|
||||
{
|
||||
return ((immValue >> (int)(rotateValue & 31)) |
|
||||
(immValue << (32 - (int)(rotateValue & 31))));
|
||||
return ((immValue >> (rotateValue & 31)) |
|
||||
(immValue << (32 - (rotateValue & 31))));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue