VirtualBox

Changeset 94546 in vbox


Ignore:
Timestamp:
Apr 11, 2022 12:15:07 AM (2 years ago)
Author:
vboxsync
Message:

include/iprt/stdint.h: Supply [u]int_fast[xx]_t and [u]int_least[xx]_t types for SoftFloat ring-0 useage. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/stdint.h

    r93129 r94546  
    185185typedef uint64_t            uintmax_t;
    186186#   endif
     187
     188    /* smallest minimum-width integer types - assumes to be the same as above! */
     189typedef int8_t              int_least8_t;
     190typedef uint8_t             uint_least8_t;
     191#   define INT_LEAST8_MIN   INT8_MIN
     192#   define INT_LEAST8_MAX   INT8_MAX
     193#   define UINT_LEAST8_MAX  UINT8_MAX
     194typedef int16_t             int_least16_t;
     195typedef uint16_t            uint_least16_t;
     196#   define INT_LEAST16_MIN  INT16_MIN
     197#   define INT_LEAST16_MAX  INT16_MAX
     198#   define UINT_LEAST16_MAX UINT16_MAX
     199typedef int32_t             int_least32_t;
     200typedef uint32_t            uint_least32_t;
     201#   define INT_LEAST32_MIN  INT32_MIN
     202#   define INT_LEAST32_MAX  INT32_MAX
     203#   define UINT_LEAST32_MAX UINT32_MAX
     204typedef int64_t             int_least64_t;
     205typedef uint64_t            uint_least64_t;
     206#   define INT_LEAST64_MIN  INT64_MIN
     207#   define INT_LEAST64_MAX  INT64_MAX
     208#   define UINT_LEAST64_MAX UINT64_MAX
     209
     210    /* fastest minimum-width integer types */
     211typedef signed char         int_fast8_t;
     212typedef unsigned char       uint_fast8_t;
     213#   define INT_FAST8_MIN    INT8_MIN
     214#   define INT_FAST8_MAX    INT8_MAX
     215#   define UINT_FAST8_MAX   UINT8_MAX
     216typedef signed int          int_fast16_t;
     217typedef unsigned int        uint_fast16_t;
     218#   if ARCH_BITS == 16
     219#    define INT_FAST16_MIN  INT16_MIN
     220#    define INT_FAST16_MAX  INT16_MAX
     221#    define UINT_FAST16_MAX UINT16_MAX
     222#   else
     223#    define INT_FAST16_MIN  INT32_MIN
     224#    define INT_FAST16_MAX  INT32_MAX
     225#    define UINT_FAST16_MAX UINT32_MAX
     226#   endif
     227typedef int32_t             int_fast32_t;
     228typedef uint32_t            uint_fast32_t;
     229#   define INT_FAST32_MIN   INT32_MIN
     230#   define INT_FAST32_MAX   INT32_MAX
     231#   define UINT_FAST32_MAX  UINT32_MAX
     232typedef int64_t             int_fast64_t;
     233typedef uint64_t            uint_fast64_t;
     234#   define INT_FAST64_MIN   INT64_MIN
     235#   define INT_FAST64_MAX   INT64_MAX
     236#   define UINT_FAST64_MAX  UINT64_MAX
    187237
    188238#  else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette