Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/arm/misc detect whether hw divide is present.
details: https://anonhg.NetBSD.org/src/rev/da05c9b99fbf
branches: trunk
changeset: 789811:da05c9b99fbf
user: matt <matt%NetBSD.org@localhost>
date: Sun Sep 08 13:15:53 2013 +0000
description:
detect whether hw divide is present.
diffstat:
lib/libc/arch/arm/misc/arm_initfini.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r bf817fe56f64 -r da05c9b99fbf lib/libc/arch/arm/misc/arm_initfini.c
--- a/lib/libc/arch/arm/misc/arm_initfini.c Sun Sep 08 12:51:14 2013 +0000
+++ b/lib/libc/arch/arm/misc/arm_initfini.c Sun Sep 08 13:15:53 2013 +0000
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
-__RCSID("$NetBSD: arm_initfini.c,v 1.6 2013/09/08 12:11:56 matt Exp $");
+__RCSID("$NetBSD: arm_initfini.c,v 1.7 2013/09/08 13:15:53 matt Exp $");
#include "namespace.h"
@@ -47,7 +47,9 @@
#include <stddef.h>
__dso_hidden int _libc_arm_fpu_present;
+#ifndef __ARM_ARCH_EXT_IDIV__
__dso_hidden int _libc_arm_hwdiv_present;
+#endif
static bool _libc_aapcs_initialized;
void _libc_aapcs_init(void) __attribute__((__constructor__, __used__));
@@ -60,7 +62,9 @@
_libc_aapcs_initialized = true;
(void)sysctlbyname("machdep.fpu_present",
&_libc_arm_fpu_present, &len, NULL, 0);
+#ifndef __ARM_ARCH_EXT_IDIV__
(void)sysctlbyname("machdep.hwdiv_present",
&_libc_arm_hwdiv_present, &len, NULL, 0);
+#endif
}
}
Home |
Main Index |
Thread Index |
Old Index