sf_log.c

来自「Newlib 嵌入式 C库 标准实现代码」· C语言 代码 · 共 35 行

C
35
字号
/* @(#)z_logf.c 1.0 98/08/13 *//****************************************************************** * Logarithm * * Input: *   x - floating point value * * Output: *   natural logarithm of x * * Description: *   This routine returns the natural logarithm of x. * *****************************************************************/#include "fdlibm.h"#include "zmath.h"float_DEFUN (logf, (float),        float x){  return (logarithmf (x, 0));}#ifdef _DOUBLE_IS_32BITSdouble log (double x){  return (double) logf ((float) x);}#endif /* defined(_DOUBLE_IS_32BITS) */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?