Converted asm / library routines.