Home | History | Annotate | Download | only in machine
      1 /** @file
      2     Minimum and Greatest Width Integer types.
      3 
      4     Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
      5     This program and the accompanying materials are licensed and made available under
      6     the terms and conditions of the BSD License that accompanies this distribution.
      7     The full text of the license may be found at
      8     http://opensource.org/licenses/bsd-license.php.
      9 
     10     THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     11     WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     12 
     13     Portions Copyright (c) 2001 The NetBSD Foundation, Inc.
     14     All rights reserved.
     15 
     16     This code is derived from software contributed to The NetBSD Foundation
     17     by Klaus Klein.
     18 
     19     Redistribution and use in source and binary forms, with or without
     20     modification, are permitted provided that the following conditions
     21     are met:
     22       1.  Redistributions of source code must retain the above copyright
     23           notice, this list of conditions and the following disclaimer.
     24       2.  Redistributions in binary form must reproduce the above copyright
     25           notice, this list of conditions and the following disclaimer in the
     26           documentation and/or other materials provided with the distribution.
     27       3.  All advertising materials mentioning features or use of this software
     28           must display the following acknowledgement:
     29             This product includes software developed by the NetBSD
     30             Foundation, Inc. and its contributors.
     31       4.  Neither the name of The NetBSD Foundation nor the names of its
     32           contributors may be used to endorse or promote products derived
     33           from this software without specific prior written permission.
     34 
     35     THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     36     ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     37     TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     38     PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     39     BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     40     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     41     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     42     INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     43     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     44     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     45     POSSIBILITY OF SUCH DAMAGE.
     46 
     47     NetBSD: int_mwgwtypes.h,v 1.5 2005/12/24 20:06:47 perry Exp
     48 **/
     49 #ifndef _ARM_INT_MWGWTYPES_H_
     50 #define _ARM_INT_MWGWTYPES_H_
     51 
     52 /*
     53  * 7.18.1 Integer types
     54  */
     55 
     56 /* 7.18.1.2 Minimum-width integer types */
     57 
     58 typedef CHAR8     int_least8_t;
     59 typedef UINT8     uint_least8_t;
     60 typedef INT16     int_least16_t;
     61 typedef UINT16    uint_least16_t;
     62 typedef INT32     int_least32_t;
     63 typedef UINT32    uint_least32_t;
     64 typedef INT64     int_least64_t;
     65 typedef UINT64    uint_least64_t;
     66 
     67 /* 7.18.1.3 Fastest minimum-width integer types */
     68 typedef INT32     int_fast8_t;
     69 typedef UINT32    uint_fast8_t;
     70 typedef INT32     int_fast16_t;
     71 typedef UINT32    uint_fast16_t;
     72 typedef INT32     int_fast32_t;
     73 typedef UINT32    uint_fast32_t;
     74 typedef INT64     int_fast64_t;
     75 typedef UINT64    uint_fast64_t;
     76 
     77 /* 7.18.1.5 Greatest-width integer types */
     78 
     79 typedef INT64     intmax_t;
     80 typedef UINT64    uintmax_t;
     81 
     82 #endif /* !_ARM_INT_MWGWTYPES_H_ */
     83