Searched refs:sign_extend (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/arch/arm/core/ |
D | elf.c | 106 *offset = sign_extend(*(int32_t *)loc, SHIFT_PREL31_SIGN); in prel31_decode() 146 *offset = sign_extend(*offset, SHIFT_JUMPS_SIGN); in jumps_decode() 190 offset = sign_extend(offset, SHIFT_MOVS_SIGN); in movs_handler() 225 *offset = sign_extend(*offset, SHIFT_THM_JUMPS_SIGN); in thm_jumps_decode() 285 offset = sign_extend(offset, SHIFT_THM_MOVS_SIGN); in thm_movs_handler()
|
/Zephyr-latest/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-latest/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 | 218 x = sign_extend(x, PMW3610_DATA_SIZE_BITS - 1); in pmw3610_motion_work_handler() 219 y = sign_extend(y, PMW3610_DATA_SIZE_BITS - 1); in pmw3610_motion_work_handler()
|
/Zephyr-latest/include/zephyr/sys/ |
D | util.h | 623 static inline int32_t sign_extend(uint32_t value, uint8_t index) in sign_extend() function
|