Home
last modified time | relevance | path

Searched refs:sign_extend (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.7.0/arch/arm/core/
Delf.c78 *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/
Dmain.c69 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/
Dinput_pat912x.c113 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()
Dinput_paw32xx.c189 *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()
Dinput_pmw3610.c217 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/
Dutil.h613 static inline int32_t sign_extend(uint32_t value, uint8_t index) in sign_extend() function