Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9539be6 in mainline for boot/generic/include/stdint.h


Ignore:
Timestamp:
2010-06-22T14:13:55Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
851f33a
Parents:
402eda5
Message:

autotool now also detects values of UINT_MAX and friends

File:
1 moved

Legend:

Unmodified
Added
Removed
  • boot/generic/include/stdint.h

    r402eda5 r9539be6  
    2727 */
    2828
    29 /** @addtogroup libcia64
    30  * @{
    31  */
    3229/** @file
    3330 */
    3431
    35 #ifndef LIBC_ia64_LIMITS_H_
    36 #define LIBC_ia64_LIMITS_H_
     32#ifndef BOOT_STDINT_H_
     33#define BOOT_STDINT_H_
    3734
    38 #define LONG_MIN MIN_INT64
    39 #define LONG_MAX MAX_INT64
    40 #define ULONG_MIN MIN_UINT64
    41 #define ULONG_MAX MAX_UINT64
     35#define INT8_MIN  (0x80)
     36#define INT8_MAX  (0x7F)
    4237
    43 #define SIZE_MIN MIN_UINT64
    44 #define SIZE_MAX MAX_UINT64
    45 #define SSIZE_MIN MIN_INT64
    46 #define SSIZE_MAX MAX_INT64
     38#define UINT8_MIN  (0u)
     39#define UINT8_MAX  (0xFFu)
     40
     41#define INT16_MIN  (0x8000)
     42#define INT16_MAX  (0x7FFF)
     43
     44#define UINT16_MIN  (0u)
     45#define UINT16_MAX  (0xFFFFu)
     46
     47#define INT32_MIN  (0x80000000l)
     48#define INT32_MAX  (0x7FFFFFFFl)
     49
     50#define UINT32_MIN  (0ul)
     51#define UINT32_MAX  (0xFFFFFFFFul)
     52
     53#define INT64_MIN  (0x8000000000000000ll)
     54#define INT64_MAX  (0x7FFFFFFFFFFFFFFFll)
     55
     56#define UINT64_MIN  (0ull)
     57#define UINT64_MAX  (0xFFFFFFFFFFFFFFFFull)
    4758
    4859#endif
Note: See TracChangeset for help on using the changeset viewer.