Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
aef3fb76
Commit
aef3fb76
authored
Apr 30, 2014
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email 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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
arch/mips/math-emu/dp_sqrt.c
arch/mips/math-emu/dp_sqrt.c
+1
-1
arch/mips/math-emu/ieee754.h
arch/mips/math-emu/ieee754.h
+0
-4
arch/mips/math-emu/sp_sqrt.c
arch/mips/math-emu/sp_sqrt.c
+1
-1
No files found.
arch/mips/math-emu/dp_sqrt.c
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
:
...
...
arch/mips/math-emu/ieee754.h
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
)
...
...
arch/mips/math-emu/sp_sqrt.c
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment