Searched refs:sign_extend (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.7.0/arch/arm/core/ |
D | elf.c | 78 *offset = sign_extend(*(int32_t *)loc, SHIFT_PREL31_SIGN); in prel31_decode() 118 *offset = sign_extend(*offset, SHIFT_JUMPS_SIGN); in jumps_decode() 162 offset = sign_extend(offset, SHIFT_MOVS_SIGN); in movs_handler() 197 *offset = sign_extend(*offset, SHIFT_THM_JUMPS_SIGN); in thm_jumps_decode() 257 offset = sign_extend(offset, SHIFT_THM_MOVS_SIGN); in thm_movs_handler()
|
/Zephyr-Core-3.7.0/tests/unit/util/ |
D | main.c | 69 zassert_equal(sign_extend(u8, 3), -1); in ZTEST() 70 zassert_equal(sign_extend(u8, 4), 0xf); in ZTEST() 73 zassert_equal(sign_extend(u16, 11), -1); in ZTEST() 74 zassert_equal(sign_extend(u16, 12), 0xfff); in ZTEST() 77 zassert_equal(sign_extend(u32, 27), -1); in ZTEST() 78 zassert_equal(sign_extend(u32, 28), 0xfffffff); in ZTEST()
|
/Zephyr-Core-3.7.0/drivers/input/ |
D | input_pat912x.c | 113 x = sign_extend(x, PAT912X_DATA_SIZE_BITS - 1); in pat912x_motion_work_handler() 114 y = sign_extend(y, PAT912X_DATA_SIZE_BITS - 1); in pat912x_motion_work_handler()
|
D | input_paw32xx.c | 189 *x = sign_extend(*x, PAW32XX_DATA_SIZE_BITS - 1); in paw32xx_read_xy() 190 *y = sign_extend(*y, PAW32XX_DATA_SIZE_BITS - 1); in paw32xx_read_xy()
|
D | input_pmw3610.c | 217 x = sign_extend(x, PMW3610_DATA_SIZE_BITS - 1); in pmw3610_motion_work_handler() 218 y = sign_extend(y, PMW3610_DATA_SIZE_BITS - 1); in pmw3610_motion_work_handler()
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | util.h | 613 static inline int32_t sign_extend(uint32_t value, uint8_t index) in sign_extend() function
|