Home
last modified time | relevance | path

Searched refs:IS_POWER_OF_TWO (Results 1 – 11 of 11) sorted by relevance

/optee_os/lib/libutils/ext/include/
H A Dutil.h61 assert(IS_POWER_OF_TWO(size)); \
106 assert(IS_POWER_OF_TWO(size)); \
126 assert(IS_POWER_OF_TWO(y)); \
144 assert(IS_POWER_OF_TWO(size)); \
166 #define IS_POWER_OF_TWO(x) (((x) != 0) && (((x) & (~(x) + 1)) == (x))) macro
/optee_os/core/mm/
H A Dboot_mem.c69 assert(IS_POWER_OF_TWO(align) && !(len % align)); in mem_alloc_tmp()
112 assert(IS_POWER_OF_TWO(align) && !(len % align)); in mem_alloc()
H A Dvm.c265 if (!IS_POWER_OF_TWO(granul)) in umap_add_region()
1178 assert(!granule || IS_POWER_OF_TWO(granule)); in tee_mmu_user_va2pa_attr()
1219 assert(!granule || IS_POWER_OF_TWO(granule)); in vm_pa2va()
H A Dmobj.c282 assert(IS_POWER_OF_TWO(granule)); in mobj_shm_get_phys_offs()
H A Dfobj.c148 COMPILE_TIME_ASSERT(IS_POWER_OF_TWO(sizeof(struct rwp_state_padded))); in rwp_paged_iv_alloc()
/optee_os/core/drivers/clk/sam/
H A Dat91_master.c219 (!IS_POWER_OF_TWO(div) && div != 3)) in clk_sama7g5_master_set_rate()
/optee_os/core/drivers/clk/
H A Dclk-stm32-core.c262 return IS_POWER_OF_TWO(div); in _is_valid_div()
/optee_os/lib/libutils/isoc/
H A Dbget_malloc.c438 if (!alignment || !IS_POWER_OF_TWO(alignment)) in raw_malloc_flags()
H A Dbget.c673 if (align < 0 || (align > 0 && !IS_POWER_OF_TWO((unsigned long)align)))
/optee_os/core/drivers/
H A Dstm32_i2c.c959 assert(IS_POWER_OF_TWO(bit_mask) && !(awaited_value & ~1U)); in wait_isr_event()
/optee_os/ldelf/
H A Dta_elf.c962 !IS_POWER_OF_TWO(align)) in parse_property_segment()