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 presence of hardware divide.
details: https://anonhg.NetBSD.org/src/rev/95f87054851a
branches: trunk
changeset: 789809:95f87054851a
user: matt <matt%NetBSD.org@localhost>
date: Sun Sep 08 12:11:56 2013 +0000
description:
Detect presence of hardware divide.
diffstat:
lib/libc/arch/arm/misc/arm_initfini.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 02de0238b18f -r 95f87054851a lib/libc/arch/arm/misc/arm_initfini.c
--- a/lib/libc/arch/arm/misc/arm_initfini.c Sun Sep 08 11:47:50 2013 +0000
+++ b/lib/libc/arch/arm/misc/arm_initfini.c Sun Sep 08 12:11:56 2013 +0000
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
-__RCSID("$NetBSD: arm_initfini.c,v 1.5 2013/08/19 22:14:37 matt Exp $");
+__RCSID("$NetBSD: arm_initfini.c,v 1.6 2013/09/08 12:11:56 matt Exp $");
#include "namespace.h"
@@ -47,6 +47,7 @@
#include <stddef.h>
__dso_hidden int _libc_arm_fpu_present;
+__dso_hidden int _libc_arm_hwdiv_present;
static bool _libc_aapcs_initialized;
void _libc_aapcs_init(void) __attribute__((__constructor__, __used__));
@@ -59,5 +60,7 @@
_libc_aapcs_initialized = true;
(void)sysctlbyname("machdep.fpu_present",
&_libc_arm_fpu_present, &len, NULL, 0);
+ (void)sysctlbyname("machdep.hwdiv_present",
+ &_libc_arm_hwdiv_present, &len, NULL, 0);
}
}
Home |
Main Index |
Thread Index |
Old Index