diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/math-emu/ieee754.c | 4 | ||||
-rw-r--r-- | arch/mips/math-emu/ieee754.h | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/arch/mips/math-emu/ieee754.c b/arch/mips/math-emu/ieee754.c index e7c314c9f46a..141f0cb40df4 100644 --- a/arch/mips/math-emu/ieee754.c +++ b/arch/mips/math-emu/ieee754.c | |||
@@ -56,7 +56,7 @@ | |||
56 | #define DPSTR(s, b, mh, ml) {s, b, mh, ml} | 56 | #define DPSTR(s, b, mh, ml) {s, b, mh, ml} |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | const struct ieee754dp_konst __ieee754dp_spcvals[] = { | 59 | const struct ieee754dp_const __ieee754dp_spcvals[] = { |
60 | DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* + zero */ | 60 | DPSTR(0, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* + zero */ |
61 | DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* - zero */ | 61 | DPSTR(1, DP_EMIN - 1 + DP_EBIAS, 0, 0), /* - zero */ |
62 | DPSTR(0, DP_EBIAS, 0, 0), /* + 1.0 */ | 62 | DPSTR(0, DP_EBIAS, 0, 0), /* + 1.0 */ |
@@ -76,7 +76,7 @@ const struct ieee754dp_konst __ieee754dp_spcvals[] = { | |||
76 | DPSTR(0, 63 + DP_EBIAS, 0, 0), /* + 1.0e63 */ | 76 | DPSTR(0, 63 + DP_EBIAS, 0, 0), /* + 1.0e63 */ |
77 | }; | 77 | }; |
78 | 78 | ||
79 | const struct ieee754sp_konst __ieee754sp_spcvals[] = { | 79 | const struct ieee754sp_const __ieee754sp_spcvals[] = { |
80 | SPSTR(0, SP_EMIN - 1 + SP_EBIAS, 0), /* + zero */ | 80 | SPSTR(0, SP_EMIN - 1 + SP_EBIAS, 0), /* + zero */ |
81 | SPSTR(1, SP_EMIN - 1 + SP_EBIAS, 0), /* - zero */ | 81 | SPSTR(1, SP_EMIN - 1 + SP_EBIAS, 0), /* - zero */ |
82 | SPSTR(0, SP_EBIAS, 0), /* + 1.0 */ | 82 | SPSTR(0, SP_EBIAS, 0), /* + 1.0 */ |
diff --git a/arch/mips/math-emu/ieee754.h b/arch/mips/math-emu/ieee754.h index 967831e3206f..9e8c26e850fe 100644 --- a/arch/mips/math-emu/ieee754.h +++ b/arch/mips/math-emu/ieee754.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <stdarg.h> | 38 | #include <stdarg.h> |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | struct ieee754dp_konst { | 41 | struct ieee754dp_const { |
42 | __BITFIELD_FIELD(unsigned sign:1, | 42 | __BITFIELD_FIELD(unsigned sign:1, |
43 | __BITFIELD_FIELD(unsigned bexp:11, | 43 | __BITFIELD_FIELD(unsigned bexp:11, |
44 | __BITFIELD_FIELD(unsigned manthi:20, | 44 | __BITFIELD_FIELD(unsigned manthi:20, |
@@ -47,7 +47,7 @@ struct ieee754dp_konst { | |||
47 | }; | 47 | }; |
48 | 48 | ||
49 | typedef union _ieee754dp { | 49 | typedef union _ieee754dp { |
50 | struct ieee754dp_konst oparts; | 50 | struct ieee754dp_const oparts; |
51 | struct { | 51 | struct { |
52 | __BITFIELD_FIELD(unsigned int sign:1, | 52 | __BITFIELD_FIELD(unsigned int sign:1, |
53 | __BITFIELD_FIELD(unsigned int bexp:11, | 53 | __BITFIELD_FIELD(unsigned int bexp:11, |
@@ -58,7 +58,7 @@ typedef union _ieee754dp { | |||
58 | u64 bits; | 58 | u64 bits; |
59 | } ieee754dp; | 59 | } ieee754dp; |
60 | 60 | ||
61 | struct ieee754sp_konst { | 61 | struct ieee754sp_const { |
62 | __BITFIELD_FIELD(unsigned sign:1, | 62 | __BITFIELD_FIELD(unsigned sign:1, |
63 | __BITFIELD_FIELD(unsigned bexp:8, | 63 | __BITFIELD_FIELD(unsigned bexp:8, |
64 | __BITFIELD_FIELD(unsigned mant:23, | 64 | __BITFIELD_FIELD(unsigned mant:23, |
@@ -66,7 +66,7 @@ struct ieee754sp_konst { | |||
66 | }; | 66 | }; |
67 | 67 | ||
68 | typedef union _ieee754sp { | 68 | typedef union _ieee754sp { |
69 | struct ieee754sp_konst parts; | 69 | struct ieee754sp_const parts; |
70 | float f; | 70 | float f; |
71 | u32 bits; | 71 | u32 bits; |
72 | } ieee754sp; | 72 | } ieee754sp; |
@@ -359,8 +359,8 @@ ieee754dp ieee754dp_dump(char *s, ieee754dp x); | |||
359 | #define IEEE754_SPCVAL_P1E31 15 /* + 1.0e31 */ | 359 | #define IEEE754_SPCVAL_P1E31 15 /* + 1.0e31 */ |
360 | #define IEEE754_SPCVAL_P1E63 16 /* + 1.0e63 */ | 360 | #define IEEE754_SPCVAL_P1E63 16 /* + 1.0e63 */ |
361 | 361 | ||
362 | extern const struct ieee754dp_konst __ieee754dp_spcvals[]; | 362 | extern const struct ieee754dp_const __ieee754dp_spcvals[]; |
363 | extern const struct ieee754sp_konst __ieee754sp_spcvals[]; | 363 | extern const struct ieee754sp_const __ieee754sp_spcvals[]; |
364 | #define ieee754dp_spcvals ((const ieee754dp *)__ieee754dp_spcvals) | 364 | #define ieee754dp_spcvals ((const ieee754dp *)__ieee754dp_spcvals) |
365 | #define ieee754sp_spcvals ((const ieee754sp *)__ieee754sp_spcvals) | 365 | #define ieee754sp_spcvals ((const ieee754sp *)__ieee754sp_spcvals) |
366 | 366 | ||