sqrtf.c

来自「VxWorks BSP框架源代码包含头文件和驱动」· C语言 代码 · 共 35 行

C
35
字号
/* sqrtf.c - software version of single precision square-root routine *//* Copyright 2003 Wind River Systems, Inc. *//*modification history--------------------01a,03jun03,sn   wrote*/#include <math.h>/******************************************************************************** sqrt - compute a single precision square root** INTERNAL:** This is an extremely unoptimized implementation of sqrtf, provided* for architectures which do not have an optimized version to allow* code bases such as the GNU 3.x C++ library to compile and link. Feel* free to replace this with an optimized implementation.** NOMANUAL*/float sqrtf    (    float x    )    {    return (float) sqrt(x);    }

⌨️ 快捷键说明

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