记住,整形数运算要比浮点数运算快得多,因为处理器可以直接进行整型数运算,浮点数运算需要依赖于外部的浮点数处理器或者浮点数数学库。
Remember, integer arithmetic is much faster than floating-point arithmetic, as it can usually be done directly by the processor, rather than relying on external FPUs or floating point math libraries.
fdlibm :一个适用于支持IEEE 754浮点数的机器的Cmath库,可在 Netlib数学软件库中找到。
fdlibm: A C math library for machines that support IEEE 754 floating-point, is available from the Netlib mathematical software repository.
fdlibm :一个适用于支持IEEE 754浮点数的机器的Cmath库,可在 Netlib数学软件库中找到。
fdlibm: A C math library for machines that support IEEE 754 floating-point, is available from the Netlib mathematical software repository.
应用推荐