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
b3a7ad2b
Commit
b3a7ad2b
authored
Apr 22, 2014
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: math-emu: Eleminate duplicate definitions of identical macros.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
3e160aad
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
33 additions
and
63 deletions
+33
-63
arch/mips/math-emu/dp_fsp.c
arch/mips/math-emu/dp_fsp.c
+1
-0
arch/mips/math-emu/ieee754.c
arch/mips/math-emu/ieee754.c
+0
-8
arch/mips/math-emu/ieee754d.c
arch/mips/math-emu/ieee754d.c
+2
-28
arch/mips/math-emu/ieee754dp.h
arch/mips/math-emu/ieee754dp.h
+14
-0
arch/mips/math-emu/ieee754int.h
arch/mips/math-emu/ieee754int.h
+0
-27
arch/mips/math-emu/ieee754sp.h
arch/mips/math-emu/ieee754sp.h
+14
-0
arch/mips/math-emu/sp_fdp.c
arch/mips/math-emu/sp_fdp.c
+1
-0
arch/mips/math-emu/sp_tlong.c
arch/mips/math-emu/sp_tlong.c
+1
-0
No files found.
arch/mips/math-emu/dp_fsp.c
View file @
b3a7ad2b
...
...
@@ -24,6 +24,7 @@
*/
#include "ieee754sp.h"
#include "ieee754dp.h"
union
ieee754dp
ieee754dp_fsp
(
union
ieee754sp
x
)
...
...
arch/mips/math-emu/ieee754.c
View file @
b3a7ad2b
...
...
@@ -35,14 +35,6 @@
#include "ieee754sp.h"
#include "ieee754dp.h"
#define DP_EBIAS 1023
#define DP_EMIN (-1022)
#define DP_EMAX 1023
#define SP_EBIAS 127
#define SP_EMIN (-126)
#define SP_EMAX 127
/* special constants
*/
...
...
arch/mips/math-emu/ieee754d.c
View file @
b3a7ad2b
...
...
@@ -28,34 +28,8 @@
#include <linux/types.h>
#include <linux/printk.h>
#include "ieee754.h"
#define DP_EBIAS 1023
#define DP_EMIN (-1022)
#define DP_EMAX 1023
#define DP_FBITS 52
#define SP_EBIAS 127
#define SP_EMIN (-126)
#define SP_EMAX 127
#define SP_FBITS 23
#define DP_MBIT(x) ((u64)1 << (x))
#define DP_HIDDEN_BIT DP_MBIT(DP_FBITS)
#define DP_SIGN_BIT DP_MBIT(63)
#define SP_MBIT(x) ((u32)1 << (x))
#define SP_HIDDEN_BIT SP_MBIT(SP_FBITS)
#define SP_SIGN_BIT SP_MBIT(31)
#define SPSIGN(sp) (sp.parts.sign)
#define SPBEXP(sp) (sp.parts.bexp)
#define SPMANT(sp) (sp.parts.mant)
#define DPSIGN(dp) (dp.parts.sign)
#define DPBEXP(dp) (dp.parts.bexp)
#define DPMANT(dp) (dp.parts.mant)
#include "ieee754sp.h"
#include "ieee754dp.h"
union
ieee754dp
ieee754dp_dump
(
char
*
m
,
union
ieee754dp
x
)
{
...
...
arch/mips/math-emu/ieee754dp.h
View file @
b3a7ad2b
...
...
@@ -30,6 +30,20 @@
#define assert(expr) ((void)0)
#define DP_EBIAS 1023
#define DP_EMIN (-1022)
#define DP_EMAX 1023
#define DP_FBITS 52
#define DP_MBITS 52
#define DP_MBIT(x) ((u64)1 << (x))
#define DP_HIDDEN_BIT DP_MBIT(DP_FBITS)
#define DP_SIGN_BIT DP_MBIT(63)
#define DPSIGN(dp) (dp.parts.sign)
#define DPBEXP(dp) (dp.parts.bexp)
#define DPMANT(dp) (dp.parts.mant)
/* 3bit extended double precision sticky right shift */
#define XDPSRS(v,rs) \
((rs > (DP_FBITS+3))?1:((v) >> (rs)) | ((v) << (64-(rs)) != 0))
...
...
arch/mips/math-emu/ieee754int.h
View file @
b3a7ad2b
...
...
@@ -28,33 +28,6 @@
#include "ieee754.h"
#define DP_EBIAS 1023
#define DP_EMIN (-1022)
#define DP_EMAX 1023
#define DP_FBITS 52
#define SP_EBIAS 127
#define SP_EMIN (-126)
#define SP_EMAX 127
#define SP_FBITS 23
#define DP_MBIT(x) ((u64)1 << (x))
#define DP_HIDDEN_BIT DP_MBIT(DP_FBITS)
#define DP_SIGN_BIT DP_MBIT(63)
#define SP_MBIT(x) ((u32)1 << (x))
#define SP_HIDDEN_BIT SP_MBIT(SP_FBITS)
#define SP_SIGN_BIT SP_MBIT(31)
#define SPSIGN(sp) (sp.parts.sign)
#define SPBEXP(sp) (sp.parts.bexp)
#define SPMANT(sp) (sp.parts.mant)
#define DPSIGN(dp) (dp.parts.sign)
#define DPBEXP(dp) (dp.parts.bexp)
#define DPMANT(dp) (dp.parts.mant)
#define CLPAIR(x, y) ((x)*6+(y))
static
inline
void
ieee754_clearcx
(
void
)
...
...
arch/mips/math-emu/ieee754sp.h
View file @
b3a7ad2b
...
...
@@ -30,6 +30,20 @@
#define assert(expr) ((void)0)
#define SP_EBIAS 127
#define SP_EMIN (-126)
#define SP_EMAX 127
#define SP_FBITS 23
#define SP_MBITS 23
#define SP_MBIT(x) ((u32)1 << (x))
#define SP_HIDDEN_BIT SP_MBIT(SP_FBITS)
#define SP_SIGN_BIT SP_MBIT(31)
#define SPSIGN(sp) (sp.parts.sign)
#define SPBEXP(sp) (sp.parts.bexp)
#define SPMANT(sp) (sp.parts.mant)
/* 3bit extended single precision sticky right shift */
#define SPXSRSXn(rs) \
(xe += rs, \
...
...
arch/mips/math-emu/sp_fdp.c
View file @
b3a7ad2b
...
...
@@ -25,6 +25,7 @@
#include "ieee754sp.h"
#include "ieee754dp.h"
union
ieee754sp
ieee754sp_fdp
(
union
ieee754dp
x
)
{
...
...
arch/mips/math-emu/sp_tlong.c
View file @
b3a7ad2b
...
...
@@ -25,6 +25,7 @@
#include "ieee754sp.h"
#include "ieee754dp.h"
s64
ieee754sp_tlong
(
union
ieee754sp
x
)
{
...
...
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