Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
141c8d4c
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
接近 2 年 前同步成功
通知
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看板
提交
141c8d4c
编写于
2月 06, 2020
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix excess precision in return value of i386 acos[f] and asin[f]
analogous to commit
1c9afd69
for atan[2][f].
上级
1c9afd69
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
75 addition
and
42 deletion
+75
-42
src/math/i386/acos.s
src/math/i386/acos.s
+3
-13
src/math/i386/acosf.s
src/math/i386/acosf.s
+16
-1
src/math/i386/acosl.s
src/math/i386/acosl.s
+14
-1
src/math/i386/asin.s
src/math/i386/asin.s
+7
-25
src/math/i386/asinf.s
src/math/i386/asinf.s
+23
-1
src/math/i386/asinl.s
src/math/i386/asinl.s
+12
-1
未找到文件。
src/math/i386/acos.s
浏览文件 @
141c8d4c
#
use
acos
(
x
)
=
atan2
(
fabs
(
sqrt
((
1
-
x
)*(
1
+
x
))),
x
)
#
use
acos
(
x
)
=
atan2
(
fabs
(
sqrt
((
1
-
x
)*(
1
+
x
))),
x
)
.
global
acosf
.
type
acosf
,@
function
acosf
:
flds
4
(%
esp
)
jmp
1
f
.
global
acosl
.
type
acosl
,@
function
acosl
:
fldt
4
(%
esp
)
jmp
1
f
.
global
acos
.
global
acos
.
type
acos
,@
function
.
type
acos
,@
function
acos
:
acos
:
fldl
4
(%
esp
)
fldl
4
(%
esp
)
1
:
fld
%
st
(
0
)
fld
%
st
(
0
)
fld1
fld1
fsub
%
st
(
0
),%
st
(
1
)
fsub
%
st
(
0
),%
st
(
1
)
fadd
%
st
(
2
)
fadd
%
st
(
2
)
...
@@ -25,4 +13,6 @@ acos:
...
@@ -25,4 +13,6 @@ acos:
fabs
#
fix
sign
of
zero
(
matters
in
downward
rounding
mode
)
fabs
#
fix
sign
of
zero
(
matters
in
downward
rounding
mode
)
fxch
%
st
(
1
)
fxch
%
st
(
1
)
fpatan
fpatan
fstpl
4
(%
esp
)
fldl
4
(%
esp
)
ret
ret
src/math/i386/acosf.s
浏览文件 @
141c8d4c
#
see
acos
.
s
.
global
acosf
.
type
acosf
,@
function
acosf
:
flds
4
(%
esp
)
fld
%
st
(
0
)
fld1
fsub
%
st
(
0
),%
st
(
1
)
fadd
%
st
(
2
)
fmulp
fsqrt
fabs
#
fix
sign
of
zero
(
matters
in
downward
rounding
mode
)
fxch
%
st
(
1
)
fpatan
fstps
4
(%
esp
)
flds
4
(%
esp
)
ret
src/math/i386/acosl.s
浏览文件 @
141c8d4c
#
see
acos
.
s
.
global
acosl
.
type
acosl
,@
function
acosl
:
fldt
4
(%
esp
)
fld
%
st
(
0
)
fld1
fsub
%
st
(
0
),%
st
(
1
)
fadd
%
st
(
2
)
fmulp
fsqrt
fabs
#
fix
sign
of
zero
(
matters
in
downward
rounding
mode
)
fxch
%
st
(
1
)
fpatan
ret
src/math/i386/asin.s
浏览文件 @
141c8d4c
.
global
asinf
.
type
asinf
,@
function
asinf
:
flds
4
(%
esp
)
mov
4
(%
esp
),%
eax
add
%
eax
,%
eax
cmp
$
0x01000000
,%
eax
jae
1
f
#
subnormal
x
,
return
x
with
underflow
fld
%
st
(
0
)
fmul
%
st
(
1
)
fstps
4
(%
esp
)
ret
.
global
asinl
.
type
asinl
,@
function
asinl
:
fldt
4
(%
esp
)
jmp
1
f
.
global
asin
.
global
asin
.
type
asin
,@
function
.
type
asin
,@
function
asin
:
asin
:
...
@@ -25,15 +5,17 @@ asin:
...
@@ -25,15 +5,17 @@ asin:
mov
8
(%
esp
),%
eax
mov
8
(%
esp
),%
eax
add
%
eax
,%
eax
add
%
eax
,%
eax
cmp
$
0x00200000
,%
eax
cmp
$
0x00200000
,%
eax
jae
1
f
jb
1
f
#
subnormal
x
,
return
x
with
underflow
fld
%
st
(
0
)
fsts
4
(%
esp
)
ret
1
:
fld
%
st
(
0
)
fld1
fld1
fsub
%
st
(
0
),%
st
(
1
)
fsub
%
st
(
0
),%
st
(
1
)
fadd
%
st
(
2
)
fadd
%
st
(
2
)
fmulp
fmulp
fsqrt
fsqrt
fpatan
fpatan
fstpl
4
(%
esp
)
fldl
4
(%
esp
)
ret
#
subnormal
x
,
return
x
with
underflow
1
:
fsts
4
(%
esp
)
ret
ret
src/math/i386/asinf.s
浏览文件 @
141c8d4c
#
see
asin
.
s
.
global
asinf
.
type
asinf
,@
function
asinf
:
flds
4
(%
esp
)
mov
4
(%
esp
),%
eax
add
%
eax
,%
eax
cmp
$
0x01000000
,%
eax
jb
1
f
fld
%
st
(
0
)
fld1
fsub
%
st
(
0
),%
st
(
1
)
fadd
%
st
(
2
)
fmulp
fsqrt
fpatan
fstps
4
(%
esp
)
flds
4
(%
esp
)
ret
#
subnormal
x
,
return
x
with
underflow
1
:
fld
%
st
(
0
)
fmul
%
st
(
1
)
fstps
4
(%
esp
)
ret
src/math/i386/asinl.s
浏览文件 @
141c8d4c
#
see
asin
.
s
.
global
asinl
.
type
asinl
,@
function
asinl
:
fldt
4
(%
esp
)
fld
%
st
(
0
)
fld1
fsub
%
st
(
0
),%
st
(
1
)
fadd
%
st
(
2
)
fmulp
fsqrt
fpatan
ret
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录