Revision 7bbcb0af
b/target-arm/helper.c | ||
---|---|---|
7 | 7 |
#include "gdbstub.h" |
8 | 8 |
#include "helpers.h" |
9 | 9 |
#include "qemu-common.h" |
10 |
#include "host-utils.h" |
|
10 | 11 |
|
11 | 12 |
static uint32_t cortexa8_cp15_c0_c1[8] = |
12 | 13 |
{ 0x1031, 0x11, 0x400, 0, 0x31100003, 0x20000000, 0x01202000, 0x11 }; |
... | ... | |
394 | 395 |
|
395 | 396 |
uint32_t HELPER(clz)(uint32_t x) |
396 | 397 |
{ |
397 |
int count; |
|
398 |
for (count = 32; x; count--) |
|
399 |
x >>= 1; |
|
400 |
return count; |
|
398 |
return clz32(x); |
|
401 | 399 |
} |
402 | 400 |
|
403 | 401 |
int32_t HELPER(sdiv)(int32_t num, int32_t den) |
Also available in: Unified diff