diff options
author | Sven Gothel <[email protected]> | 2010-03-28 19:26:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-03-28 19:26:16 +0200 |
commit | ca2ccb29bd3cd4d9c73ca96ce02402888ac9e9af (patch) | |
tree | a06c5ea8b8fbf90c4d4a2affdd9afe882caf6baa /src/java/com/sun/gluegen/test/TestPointerBufferEndian.java | |
parent | be3ddc922fda13c0ba344909b3639a2c78c4b809 (diff) |
Merge CPU to Platform
Diffstat (limited to 'src/java/com/sun/gluegen/test/TestPointerBufferEndian.java')
-rw-r--r-- | src/java/com/sun/gluegen/test/TestPointerBufferEndian.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java b/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java index cd9e0cc..9377de7 100644 --- a/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java +++ b/src/java/com/sun/gluegen/test/TestPointerBufferEndian.java @@ -8,12 +8,12 @@ public class TestPointerBufferEndian { public static void main (String[] args) { boolean direct = args.length>0 && args[0].equals("-direct"); boolean ok = true; - int bitsPtr = CPU.getPointerSizeInBits(); + int bitsPtr = Platform.getPointerSizeInBits(); String bitsProp = 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+"> Bits: <"+bitsPtr+"/"+bitsProp+">"); - System.out.println("CPU is: "+ (CPU.is32Bit()?"32":"64") + " bit"); + System.out.println("CPU is: "+ (Platform.is32Bit()?"32":"64") + " bit"); System.out.println("Buffer is in: "+ (BufferFactory.isLittleEndian()?"little":"big") + " endian"); PointerBuffer ptr = direct ? PointerBuffer.allocateDirect(3) : PointerBuffer.allocate(3); ptr.put(0, 0x0123456789ABCDEFL); |