Update ext_math.c