From 30f7bbd39b2d88b6176bced8509d22cbd9f6c5dc Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Jan 2004 18:33:14 -0800 Subject: [PATCH] [PATCH] M68k math emu C99 From: Geert Uytterhoeven M68k math emulator: Use C99 struct initializers --- arch/m68k/math-emu/fp_arith.c | 5 +++-- arch/m68k/math-emu/fp_log.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/m68k/math-emu/fp_arith.c b/arch/m68k/math-emu/fp_arith.c index 7570df9f8cca4..50f516dbb446c 100644 --- a/arch/m68k/math-emu/fp_arith.c +++ b/arch/m68k/math-emu/fp_arith.c @@ -19,12 +19,13 @@ 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 */ diff --git a/arch/m68k/math-emu/fp_log.c b/arch/m68k/math-emu/fp_log.c index 327999c0f79f1..8cda5be89ba54 100644 --- a/arch/m68k/math-emu/fp_log.c +++ b/arch/m68k/math-emu/fp_log.c @@ -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); -- 2.53.0