334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
|
static uint64_t
readValue(uint8_t enc, const uint8_t **ptr)
{
uint64_t value;
if (enc == DW_EH_PE_aligned) {
const uintptr_t *aligned = (const uintptr_t *)
OF_ROUND_UP_POW2(sizeof(void *), (uintptr_t)*ptr);
*ptr = (const uint8_t *)(aligned + 1);
return *aligned;
}
#define READ(type) \
|
|
|
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
|
static uint64_t
readValue(uint8_t enc, const uint8_t **ptr)
{
uint64_t value;
if (enc == DW_EH_PE_aligned) {
const uintptr_t *aligned = (const uintptr_t *)
OFRoundUpToPowerOf2(sizeof(void *), (uintptr_t)*ptr);
*ptr = (const uint8_t *)(aligned + 1);
return *aligned;
}
#define READ(type) \
|