aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java
diff options
context:
space:
mode:
authorsg215889 <[email protected]>2009-07-28 17:23:24 -0700
committersg215889 <[email protected]>2009-07-28 17:23:24 -0700
commitf607cdf272dffbd45e6389c5715a9596e85c2a90 (patch)
treeefb871ce63d67ba4c741c863135cad82fb9a1a7a /src/java/com/sun/gluegen/test/TestPointerBufferEndian.java
parent53b16f758e0db510db420fabe6793e7921a9c407 (diff)
Fix: Add sun.arch.data.model to determine 32bit arch
Diffstat (limited to 'src/java/com/sun/gluegen/test/TestPointerBufferEndian.java')
-rw-r--r--src/java/com/sun/gluegen/test/TestPointerBufferEndian.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java b/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java
index 1c180bd..cd375af 100644
--- a/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java
+++ b/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java
@@ -8,9 +8,10 @@ public class TestPointerBufferEndian {
public static void main (String[] args) {
boolean direct = args.length>0 && args[0].equals("-direct");
boolean ok = true;
+ String bits = System.getProperty("sun.arch.data.model");
String os = System.getProperty("os.name");
String cpu = System.getProperty("os.arch");
- System.out.println("OS: <"+os+"> CPU: <"+cpu+">");
+ System.out.println("OS: <"+os+"> CPU: <"+cpu+"> Bits: <"+bits+">");
System.out.println("CPU is: "+ (CPU.is32Bit()?"32":"64") + " bit");
System.out.println("Buffer is in: "+ (BufferFactory.isLittleEndian()?"little":"big") + " endian");
PointerBuffer ptr = direct ? PointerBuffer.allocateDirect(3) : PointerBuffer.allocate(3);