aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2015-04-03 18:24:09 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-04-07 19:08:44 -0400
commit1796ec774237948156936cd4b8f543585699e8a9 (patch)
treeae469fa0ba8aa7c568e1d2c0e980a5b09d2220fc /arch/mips
parentb3fea96269679a50802ffb5051d19b8e3f7dd80e (diff)
MIPS: ieee754.h: Supplement comments for special values
Add the remaining missing comments for IEEE 754 special value array indices. Reindent macro definitions for consistency. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9671/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/math-emu/ieee754.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/arch/mips/math-emu/ieee754.h b/arch/mips/math-emu/ieee754.h
index 2d0df0ece984..22d803d8feea 100644
--- a/arch/mips/math-emu/ieee754.h
+++ b/arch/mips/math-emu/ieee754.h
@@ -257,23 +257,23 @@ static inline int ieee754_sxtest(unsigned n)
257union ieee754sp ieee754sp_dump(char *s, union ieee754sp x); 257union ieee754sp ieee754sp_dump(char *s, union ieee754sp x);
258union ieee754dp ieee754dp_dump(char *s, union ieee754dp x); 258union ieee754dp ieee754dp_dump(char *s, union ieee754dp x);
259 259
260#define IEEE754_SPCVAL_PZERO 0 260#define IEEE754_SPCVAL_PZERO 0 /* +0.0 */
261#define IEEE754_SPCVAL_NZERO 1 261#define IEEE754_SPCVAL_NZERO 1 /* -0.0 */
262#define IEEE754_SPCVAL_PONE 2 262#define IEEE754_SPCVAL_PONE 2 /* +1.0 */
263#define IEEE754_SPCVAL_NONE 3 263#define IEEE754_SPCVAL_NONE 3 /* -1.0 */
264#define IEEE754_SPCVAL_PTEN 4 264#define IEEE754_SPCVAL_PTEN 4 /* +10.0 */
265#define IEEE754_SPCVAL_NTEN 5 265#define IEEE754_SPCVAL_NTEN 5 /* -10.0 */
266#define IEEE754_SPCVAL_PINFINITY 6 266#define IEEE754_SPCVAL_PINFINITY 6 /* +inf */
267#define IEEE754_SPCVAL_NINFINITY 7 267#define IEEE754_SPCVAL_NINFINITY 7 /* -inf */
268#define IEEE754_SPCVAL_INDEF 8 268#define IEEE754_SPCVAL_INDEF 8 /* quiet NaN */
269#define IEEE754_SPCVAL_PMAX 9 /* +max norm */ 269#define IEEE754_SPCVAL_PMAX 9 /* +max norm */
270#define IEEE754_SPCVAL_NMAX 10 /* -max norm */ 270#define IEEE754_SPCVAL_NMAX 10 /* -max norm */
271#define IEEE754_SPCVAL_PMIN 11 /* +min norm */ 271#define IEEE754_SPCVAL_PMIN 11 /* +min norm */
272#define IEEE754_SPCVAL_NMIN 12 /* -min norm */ 272#define IEEE754_SPCVAL_NMIN 12 /* -min norm */
273#define IEEE754_SPCVAL_PMIND 13 /* +min denorm */ 273#define IEEE754_SPCVAL_PMIND 13 /* +min denorm */
274#define IEEE754_SPCVAL_NMIND 14 /* -min denorm */ 274#define IEEE754_SPCVAL_NMIND 14 /* -min denorm */
275#define IEEE754_SPCVAL_P1E31 15 /* + 1.0e31 */ 275#define IEEE754_SPCVAL_P1E31 15 /* + 1.0e31 */
276#define IEEE754_SPCVAL_P1E63 16 /* + 1.0e63 */ 276#define IEEE754_SPCVAL_P1E63 16 /* + 1.0e63 */
277 277
278extern const union ieee754dp __ieee754dp_spcvals[]; 278extern const union ieee754dp __ieee754dp_spcvals[];
279extern const union ieee754sp __ieee754sp_spcvals[]; 279extern const union ieee754sp __ieee754sp_spcvals[];