ALIGN_UP is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

ALIGN_UP macro

Syntax

#define ALIGN_UP(x, a) ALIGN_MASK(x, (typeof(x))(a) - 1)

Arguments

x

a

References

LocationText
align.h:20
#define ALIGN_UP(x, a) ALIGN_MASK(x, (typeof(x))(a) - 1)
esp_algorithm.c:208
size_t aligned_len = ALIGN_UP(length, 4);
esp_algorithm.c:251
size_t aligned_len = ALIGN_UP(size_read, 4);
esp_algorithm.c:380
code_size += ALIGN_UP(section->size, 4);
esp_algorithm.c:399
size_t al_tramp_size = ALIGN_UP(tramp_sz, 4);
esp_algorithm.c:450
uint32_t data_sec_sz = ALIGN_UP(section->size, 4);
esp_algorithm.c:452
uint32_t bss_sec_sz = ALIGN_UP(run->image.bss_size, 4);
esp_xtensa_apptrace.c:118
uint32_t rd_sz = ALIGN_UP(size, 4);
esp_xtensa_apptrace.c:323
total_sz = ALIGN_UP(total_sz, 4);
stlink_usb.c:3946
unsigned int buflen = ALIGN_UP(items, 4) + 4 * items;
stlink_usb.c:4381
unsigned int val_index = ALIGN_UP(items, 4);
target.c:2026
size = ALIGN_UP(size, 4);
xtensa.c:2004
target_addr_t addrend_al = ALIGN_UP(address + size * count, 4);
xtensa.c:2022
unsigned int alloc_bytes = ALIGN_UP(addrend_al - addrstart_al, sizeof(uint32_t));
xtensa.c:2099
target_addr_t addrend_al = ALIGN_UP(address + size * count, 4);