Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
aef3fb76
Commit
aef3fb76
authored
10 years ago
by
Ralf Baechle
Browse files
Options
Downloads
Patches
Plain Diff
MIPS: math-emu: Nuke alternative names for IEEE-754 rounding modes.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
76fbfc31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/mips/math-emu/dp_sqrt.c
+1
-1
1 addition, 1 deletion
arch/mips/math-emu/dp_sqrt.c
arch/mips/math-emu/ieee754.h
+0
-4
0 additions, 4 deletions
arch/mips/math-emu/ieee754.h
arch/mips/math-emu/sp_sqrt.c
+1
-1
1 addition, 1 deletion
arch/mips/math-emu/sp_sqrt.c
with
2 additions
and
6 deletions
arch/mips/math-emu/dp_sqrt.c
+
1
−
1
View file @
aef3fb76
...
...
@@ -139,7 +139,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x)
oldcsr
.
sx
|=
IEEE754_INEXACT
;
switch
(
oldcsr
.
rm
)
{
case
IEEE754_R
P
:
case
IEEE754_R
U
:
y
.
bits
+=
1
;
/* drop through */
case
IEEE754_RN
:
...
...
This diff is collapsed.
Click to expand it.
arch/mips/math-emu/ieee754.h
+
0
−
4
View file @
aef3fb76
...
...
@@ -133,10 +133,6 @@ enum {
#define IEEE754_RD 2
/* round toward -Infinity */
#define IEEE754_RU 3
/* round toward +Infinity */
/* other naming */
#define IEEE754_RM IEEE754_RD
#define IEEE754_RP IEEE754_RU
/* "normal" comparisons
*/
static
inline
int
ieee754sp_eq
(
union
ieee754sp
x
,
union
ieee754sp
y
)
...
...
This diff is collapsed.
Click to expand it.
arch/mips/math-emu/sp_sqrt.c
+
1
−
1
View file @
aef3fb76
...
...
@@ -100,7 +100,7 @@ union ieee754sp ieee754sp_sqrt(union ieee754sp x)
if
(
ix
!=
0
)
{
ieee754_setcx
(
IEEE754_INEXACT
);
switch
(
ieee754_csr
.
rm
)
{
case
IEEE754_R
P
:
case
IEEE754_R
U
:
q
+=
2
;
break
;
case
IEEE754_RN
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment