From abea54842158e588112f6e35d1ba3c5f069dfc29 Mon Sep 17 00:00:00 2001 From: sg215889 Date: Tue, 28 Jul 2009 18:57:07 -0700 Subject: Fix: Native CPU 32/64 bit detection; Tested on CVM/J2SE --- src/native/common/CPU.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/native/common/CPU.c (limited to 'src/native/common/CPU.c') diff --git a/src/native/common/CPU.c b/src/native/common/CPU.c new file mode 100644 index 0000000..8c4135c --- /dev/null +++ b/src/native/common/CPU.c @@ -0,0 +1,10 @@ + +#include + +#include + +JNIEXPORT jint JNICALL +Java_com_sun_gluegen_runtime_CPU_getPointerSizeInBits(JNIEnv *env, jclass _unused) { + return sizeof(void *) * 8; +} + -- cgit v1.2.3