add common Q16.16 functions

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>