Searched refs:ALIGN_DOWN (Results 1 – 3 of 3) sorted by relevance
33 #if !defined(ALIGN_DOWN)34 #define ALIGN_DOWN(x, a) ((x) & (uint32_t)(-((int32_t)(a)))) macro
38 #ifndef ALIGN_DOWN39 #define ALIGN_DOWN(x, a) ((x) & -(a)) macro338 uint32_t alignedStart = ALIGN_DOWN(start, (uint32_t)kFLASH_AlignementUnitSingleWordRead); in FLASH_ReadData()
352 return ALIGN_DOWN(boot_magic_off(fap) - BOOT_MAX_ALIGN, BOOT_MAX_ALIGN); in boot_image_ok_off()441 pad_off = ALIGN_DOWN(off, BOOT_MAX_ALIGN); in erase_boot_magic()