1 package jdk.internal.nicl.types; 2 3 public class Types { 4 public final static Type BYTE = new Scalar('o'); 5 public final static Type SHORT = new Scalar('s'); 6 public final static Type INT = new Scalar('i'); 7 public final static Type LONG = new Scalar('l'); 8 public final static Type LONG_LONG = new Scalar('q'); 9 public final static Type FLOAT = new Scalar('f'); 10 public final static Type DOUBLE = new Scalar('d'); 11 public final static Type LONG_DOUBLE = new Scalar('e'); 12 public final static Type VOID = new Scalar('V'); 13 public final static Type CHAR = new Scalar('c'); 14 public final static Type BOOLEAN = new Scalar('B'); 15 public final static Type POINTER = new Pointer(null); 16 public final static Type INT8 = new Scalar('i', Type.Endianness.NATIVE, 8); 17 public final static Type INT16 = new Scalar('i', Type.Endianness.NATIVE, 16); 18 public final static Type INT32 = new Scalar('i', Type.Endianness.NATIVE, 32); 19 public final static Type INT64 = new Scalar('i', Type.Endianness.NATIVE, 64); 20 public final static Type M64 = new Scalar('v', Type.Endianness.NATIVE, 64); | 1 /* 2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package jdk.internal.nicl.types; 25 26 public class Types { 27 public final static Type BYTE = new Scalar('o'); 28 public final static Type SHORT = new Scalar('s'); 29 public final static Type INT = new Scalar('i'); 30 public final static Type LONG = new Scalar('l'); 31 public final static Type LONG_LONG = new Scalar('q'); 32 public final static Type FLOAT = new Scalar('f'); 33 public final static Type DOUBLE = new Scalar('d'); 34 public final static Type LONG_DOUBLE = new Scalar('e'); 35 public final static Type VOID = new Scalar('V'); 36 public final static Type CHAR = new Scalar('c'); 37 public final static Type BOOLEAN = new Scalar('B'); 38 public final static Type POINTER = new Pointer(null); 39 public final static Type INT8 = new Scalar('i', Type.Endianness.NATIVE, 8); 40 public final static Type INT16 = new Scalar('i', Type.Endianness.NATIVE, 16); 41 public final static Type INT32 = new Scalar('i', Type.Endianness.NATIVE, 32); 42 public final static Type INT64 = new Scalar('i', Type.Endianness.NATIVE, 64); 43 public final static Type M64 = new Scalar('v', Type.Endianness.NATIVE, 64); |