diff options
author | sg215889 <[email protected]> | 2009-07-28 18:57:07 -0700 |
---|---|---|
committer | sg215889 <[email protected]> | 2009-07-28 18:57:07 -0700 |
commit | abea54842158e588112f6e35d1ba3c5f069dfc29 (patch) | |
tree | 6e311b8d655a0e04d3ad1c90cb06a67256863aaf /src/native/common | |
parent | f607cdf272dffbd45e6389c5715a9596e85c2a90 (diff) |
Fix: Native CPU 32/64 bit detection; Tested on CVM/J2SE
Diffstat (limited to 'src/native/common')
-rw-r--r-- | src/native/common/CPU.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <jni.h> + +#include <assert.h> + +JNIEXPORT jint JNICALL +Java_com_sun_gluegen_runtime_CPU_getPointerSizeInBits(JNIEnv *env, jclass _unused) { + return sizeof(void *) * 8; +} + |