Replaced libgcc functions with asm optimized implementation. Signed-off-by: Michal Simek <[email protected]>