C language substitutes for ASM math