Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
9560b6b1
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
大约 1 年 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9560b6b1
编写于
3月 13, 2012
作者:
N
nsz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove libm.h includes when math.h and float.h are enough
上级
df8b3e5a
变更
31
隐藏空白更改
内联
并排
Showing
31 changed file
with
47 addition
and
30 deletion
+47
-30
src/math/fdim.c
src/math/fdim.c
+1
-1
src/math/fdimf.c
src/math/fdimf.c
+1
-1
src/math/fdiml.c
src/math/fdiml.c
+2
-1
src/math/fmax.c
src/math/fmax.c
+1
-1
src/math/fmaxf.c
src/math/fmaxf.c
+1
-1
src/math/fmaxl.c
src/math/fmaxl.c
+2
-1
src/math/fmin.c
src/math/fmin.c
+1
-1
src/math/fminf.c
src/math/fminf.c
+1
-1
src/math/fminl.c
src/math/fminl.c
+2
-1
src/math/ilogb.c
src/math/ilogb.c
+0
-1
src/math/ldexp.c
src/math/ldexp.c
+1
-1
src/math/ldexpf.c
src/math/ldexpf.c
+1
-1
src/math/ldexpl.c
src/math/ldexpl.c
+1
-1
src/math/llrintl.c
src/math/llrintl.c
+3
-1
src/math/llroundl.c
src/math/llroundl.c
+3
-1
src/math/lrintl.c
src/math/lrintl.c
+3
-1
src/math/lroundl.c
src/math/lroundl.c
+3
-1
src/math/nearbyint.c
src/math/nearbyint.c
+1
-1
src/math/nearbyintf.c
src/math/nearbyintf.c
+1
-1
src/math/nearbyintl.c
src/math/nearbyintl.c
+3
-1
src/math/nexttoward.c
src/math/nexttoward.c
+1
-0
src/math/nexttowardl.c
src/math/nexttowardl.c
+1
-1
src/math/remainderl.c
src/math/remainderl.c
+2
-1
src/math/round.c
src/math/round.c
+1
-1
src/math/roundf.c
src/math/roundf.c
+1
-1
src/math/roundl.c
src/math/roundl.c
+3
-1
src/math/scalb.c
src/math/scalb.c
+1
-1
src/math/scalbf.c
src/math/scalbf.c
+1
-1
src/math/scalbln.c
src/math/scalbln.c
+1
-1
src/math/scalblnf.c
src/math/scalblnf.c
+1
-1
src/math/scalblnl.c
src/math/scalblnl.c
+2
-1
未找到文件。
src/math/fdim.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
double
fdim
(
double
x
,
double
y
)
{
...
...
src/math/fdimf.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
float
fdimf
(
float
x
,
float
y
)
{
...
...
src/math/fdiml.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
double
fdiml
(
long
double
x
,
long
double
y
)
...
...
src/math/fmax.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
double
fmax
(
double
x
,
double
y
)
{
...
...
src/math/fmaxf.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
float
fmaxf
(
float
x
,
float
y
)
{
...
...
src/math/fmaxl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
double
fmaxl
(
long
double
x
,
long
double
y
)
...
...
src/math/fmin.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
double
fmin
(
double
x
,
double
y
)
{
...
...
src/math/fminf.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
float
fminf
(
float
x
,
float
y
)
{
...
...
src/math/fminl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
double
fminl
(
long
double
x
,
long
double
y
)
...
...
src/math/ilogb.c
浏览文件 @
9560b6b1
...
...
@@ -11,7 +11,6 @@ int ilogb(double x)
if
(
u
.
bits
==
0
)
return
FP_ILOGB0
;
/* subnormal x */
// FIXME: scale up subnormals with a *0x1p53 or find top set bit with a better method
for
(
e
=
-
0x3ff
;
u
.
bits
<
(
uint64_t
)
1
<<
63
;
e
--
,
u
.
bits
<<=
1
);
return
e
;
}
...
...
src/math/ldexp.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
double
ldexp
(
double
x
,
int
n
)
{
...
...
src/math/ldexpf.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
float
ldexpf
(
float
x
,
int
n
)
{
...
...
src/math/ldexpl.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
long
double
ldexpl
(
long
double
x
,
int
n
)
{
...
...
src/math/llrintl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
long
llrintl
(
long
double
x
)
{
...
...
src/math/llroundl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
long
llroundl
(
long
double
x
)
{
...
...
src/math/lrintl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
lrintl
(
long
double
x
)
{
...
...
src/math/lroundl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
lroundl
(
long
double
x
)
{
...
...
src/math/nearbyint.c
浏览文件 @
9560b6b1
#include <fenv.h>
#include
"libm.h"
#include
<math.h>
/*
rint may raise inexact (and it should not alter the fenv otherwise)
...
...
src/math/nearbyintf.c
浏览文件 @
9560b6b1
#include <fenv.h>
#include
"libm.h"
#include
<math.h>
float
nearbyintf
(
float
x
)
{
fenv_t
e
;
...
...
src/math/nearbyintl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
double
nearbyintl
(
long
double
x
)
{
...
...
src/math/nexttoward.c
浏览文件 @
9560b6b1
...
...
@@ -11,6 +11,7 @@
*/
#include "libm.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
double
nexttoward
(
double
x
,
long
double
y
)
{
...
...
src/math/nexttowardl.c
浏览文件 @
9560b6b1
#include
"libm.h"
#include
<math.h>
long
double
nexttowardl
(
long
double
x
,
long
double
y
)
{
...
...
src/math/remainderl.c
浏览文件 @
9560b6b1
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
double
remainderl
(
long
double
x
,
long
double
y
)
...
...
src/math/round.c
浏览文件 @
9560b6b1
...
...
@@ -25,7 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include
"libm.h"
#include
<math.h>
double
round
(
double
x
)
{
...
...
src/math/roundf.c
浏览文件 @
9560b6b1
...
...
@@ -25,7 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include
"libm.h"
#include
<math.h>
float
roundf
(
float
x
)
{
...
...
src/math/roundl.c
浏览文件 @
9560b6b1
...
...
@@ -25,7 +25,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
double
roundl
(
long
double
x
)
{
...
...
src/math/scalb.c
浏览文件 @
9560b6b1
...
...
@@ -15,7 +15,7 @@
* should use scalbn() instead.
*/
#include
"libm.h"
#include
<math.h>
double
scalb
(
double
x
,
double
fn
)
{
...
...
src/math/scalbf.c
浏览文件 @
9560b6b1
...
...
@@ -13,7 +13,7 @@
* ====================================================
*/
#include
"libm.h"
#include
<math.h>
float
scalbf
(
float
x
,
float
fn
)
{
...
...
src/math/scalbln.c
浏览文件 @
9560b6b1
#include <limits.h>
#include
"libm.h"
#include
<math.h>
double
scalbln
(
double
x
,
long
n
)
{
...
...
src/math/scalblnf.c
浏览文件 @
9560b6b1
#include <limits.h>
#include
"libm.h"
#include
<math.h>
float
scalblnf
(
float
x
,
long
n
)
{
...
...
src/math/scalblnl.c
浏览文件 @
9560b6b1
#include <limits.h>
#include "libm.h"
#include <math.h>
#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long
double
scalblnl
(
long
double
x
,
long
n
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录