Add some more macros for data manipulation

Signed-off-by: Michael Heimpold <mhei@heimpold.de>