Home
last modified time | relevance | path

Searched hist:"385 e3901a6f10bc2bb000fa283909db3bdbd9809" (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutils/isoc/include/
H A Dstdint.h385e3901a6f10bc2bb000fa283909db3bdbd9809 Mon May 16 05:27:45 UTC 2016 Jens Wiklander <jens.wiklander@linaro.org> libutils: add BIT and SHIFT macros

* Adds BIT32(nr) and BIT64(nr) macros to set a bit in a 32-bit or 64-bit
unsigned integer.
* Adds SHIFT_U32(v, shift) and SHIFT_U64(v, shift) macros to shift a value
resulting in a 32-bit or 64-bit unsigned integer.

Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/lib/libutils/ext/include/
H A Dutil.h385e3901a6f10bc2bb000fa283909db3bdbd9809 Mon May 16 05:27:45 UTC 2016 Jens Wiklander <jens.wiklander@linaro.org> libutils: add BIT and SHIFT macros

* Adds BIT32(nr) and BIT64(nr) macros to set a bit in a 32-bit or 64-bit
unsigned integer.
* Adds SHIFT_U32(v, shift) and SHIFT_U64(v, shift) macros to shift a value
resulting in a 32-bit or 64-bit unsigned integer.

Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>