Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/arch/i387 use named initializers
details: https://anonhg.NetBSD.org/src/rev/8f153d324466
branches: trunk
changeset: 358995:8f153d324466
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 25 03:54:21 2018 +0000
description:
use named initializers
diffstat:
lib/libm/arch/i387/fenv.c | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diffs (48 lines):
diff -r 5e25b3eb98b0 -r 8f153d324466 lib/libm/arch/i387/fenv.c
--- a/lib/libm/arch/i387/fenv.c Thu Jan 25 03:09:05 2018 +0000
+++ b/lib/libm/arch/i387/fenv.c Thu Jan 25 03:54:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.8 2017/03/22 23:11:08 chs Exp $ */
+/* $NetBSD: fenv.c,v 1.9 2018/01/25 03:54:21 christos Exp $ */
/*-
* Copyright (c) 2004-2005 David Schultz <das%FreeBSD.ORG@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: fenv.c,v 1.8 2017/03/22 23:11:08 chs Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.9 2018/01/25 03:54:21 christos Exp $");
#include "namespace.h"
@@ -106,19 +106,18 @@
* consumers of FE_DFL_ENV, during runtime.
*/
fenv_t __fe_dfl_env = {
- {
- __NetBSD_NPXCW__, /* Control word register */
- 0x0, /* Unused */
- 0x0000, /* Status word register */
- 0x0, /* Unused */
- 0x0000ffff, /* Tag word register */
- 0x0, /* Unused */
- {
- 0x0000, 0x0000,
- 0x0000, 0xffff
+ .x87 = {
+ .control = __NetBSD_NPXCW__, /* Control word register */
+ .unused1 = 0, /* Unused */
+ .status = 0, /* Status word register */
+ .unused2 = 0, /* Unused */
+ .tag = 0xffff, /* Tag word register */
+ .unused3 = 0, /* Unused */
+ .others = {
+ 0, 0, 0, 0x0000ffff,
}
},
- __INITIAL_MXCSR__ /* MXCSR register */
+ .mxcsr = __INITIAL_MXCSR__ /* MXCSR register */
};
/*
Home |
Main Index |
Thread Index |
Old Index