]> git.hungrycats.org Git - linux/commitdiff
[PATCH] M68k math emu C99
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:33:14 +0000 (18:33 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:33:14 +0000 (18:33 -0800)
From: Geert Uytterhoeven <geert@linux-m68k.org>

M68k math emulator: Use C99 struct initializers

arch/m68k/math-emu/fp_arith.c
arch/m68k/math-emu/fp_log.c

index 7570df9f8cca490c51608f58f0e58778356589c2..50f516dbb446c1c9b9c66b68327e413471c38f90 100644 (file)
 
 const struct fp_ext fp_QNaN =
 {
-       0, 0, 0x7fff, { ~0 }
+       .exp = 0x7fff,
+       .mant = { .m64 = ~0 }
 };
 
 const struct fp_ext fp_Inf =
 {
-       0, 0, 0x7fff, { 0 }
+       .exp = 0x7fff,
 };
 
 /* let's start with the easy ones */
index 327999c0f79f1a7088d02910a37616971529f03f..8cda5be89ba5428fa505fe3836fb903ab6cb7759 100644 (file)
@@ -19,7 +19,7 @@
 
 static const struct fp_ext fp_one =
 {
-       0, 0, 0x3fff, { 0 }
+       .exp = 0x3fff,
 };
 
 extern struct fp_ext *fp_fadd(struct fp_ext *dest, const struct fp_ext *src);