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
23708818
Commit
23708818
authored
10 years ago
by
Ralf Baechle
Browse files
Options
Downloads
Patches
Plain Diff
MIPS: math-emu: Use English spelling of `constant' rather than Danish.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
cae55066
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/mips/math-emu/ieee754.c
+2
-2
2 additions, 2 deletions
arch/mips/math-emu/ieee754.c
arch/mips/math-emu/ieee754.h
+6
-6
6 additions, 6 deletions
arch/mips/math-emu/ieee754.h
with
8 additions
and
8 deletions
arch/mips/math-emu/ieee754.c
+
2
−
2
View file @
23708818
...
...
@@ -56,7 +56,7 @@
#define DPSTR(s, b, mh, ml) {s, b, mh, ml}
#endif
const
struct
ieee754dp_
k
onst
__ieee754dp_spcvals
[]
=
{
const
struct
ieee754dp_
c
onst
__ieee754dp_spcvals
[]
=
{
DPSTR
(
0
,
DP_EMIN
-
1
+
DP_EBIAS
,
0
,
0
),
/* + zero */
DPSTR
(
1
,
DP_EMIN
-
1
+
DP_EBIAS
,
0
,
0
),
/* - zero */
DPSTR
(
0
,
DP_EBIAS
,
0
,
0
),
/* + 1.0 */
...
...
@@ -76,7 +76,7 @@ const struct ieee754dp_konst __ieee754dp_spcvals[] = {
DPSTR
(
0
,
63
+
DP_EBIAS
,
0
,
0
),
/* + 1.0e63 */
};
const
struct
ieee754sp_
k
onst
__ieee754sp_spcvals
[]
=
{
const
struct
ieee754sp_
c
onst
__ieee754sp_spcvals
[]
=
{
SPSTR
(
0
,
SP_EMIN
-
1
+
SP_EBIAS
,
0
),
/* + zero */
SPSTR
(
1
,
SP_EMIN
-
1
+
SP_EBIAS
,
0
),
/* - zero */
SPSTR
(
0
,
SP_EBIAS
,
0
),
/* + 1.0 */
...
...
This diff is collapsed.
Click to expand it.
arch/mips/math-emu/ieee754.h
+
6
−
6
View file @
23708818
...
...
@@ -38,7 +38,7 @@
#include
<stdarg.h>
#endif
struct
ieee754dp_
k
onst
{
struct
ieee754dp_
c
onst
{
__BITFIELD_FIELD
(
unsigned
sign
:
1
,
__BITFIELD_FIELD
(
unsigned
bexp
:
11
,
__BITFIELD_FIELD
(
unsigned
manthi
:
20
,
...
...
@@ -47,7 +47,7 @@ struct ieee754dp_konst {
};
typedef
union
_ieee754dp
{
struct
ieee754dp_
k
onst
oparts
;
struct
ieee754dp_
c
onst
oparts
;
struct
{
__BITFIELD_FIELD
(
unsigned
int
sign
:
1
,
__BITFIELD_FIELD
(
unsigned
int
bexp
:
11
,
...
...
@@ -58,7 +58,7 @@ typedef union _ieee754dp {
u64
bits
;
}
ieee754dp
;
struct
ieee754sp_
k
onst
{
struct
ieee754sp_
c
onst
{
__BITFIELD_FIELD
(
unsigned
sign
:
1
,
__BITFIELD_FIELD
(
unsigned
bexp
:
8
,
__BITFIELD_FIELD
(
unsigned
mant
:
23
,
...
...
@@ -66,7 +66,7 @@ struct ieee754sp_konst {
};
typedef
union
_ieee754sp
{
struct
ieee754sp_
k
onst
parts
;
struct
ieee754sp_
c
onst
parts
;
float
f
;
u32
bits
;
}
ieee754sp
;
...
...
@@ -359,8 +359,8 @@ ieee754dp ieee754dp_dump(char *s, ieee754dp x);
#define IEEE754_SPCVAL_P1E31 15
/* + 1.0e31 */
#define IEEE754_SPCVAL_P1E63 16
/* + 1.0e63 */
extern
const
struct
ieee754dp_
k
onst
__ieee754dp_spcvals
[];
extern
const
struct
ieee754sp_
k
onst
__ieee754sp_spcvals
[];
extern
const
struct
ieee754dp_
c
onst
__ieee754dp_spcvals
[];
extern
const
struct
ieee754sp_
c
onst
__ieee754sp_spcvals
[];
#define ieee754dp_spcvals ((const ieee754dp *)__ieee754dp_spcvals)
#define ieee754sp_spcvals ((const ieee754sp *)__ieee754sp_spcvals)
...
...
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