Changeset 07a984b in rtems


Ignore:
Timestamp:
11/04/04 21:48:12 (18 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9bb5b9d
Parents:
1c3dfb4a
Message:

2004-11-04 Ralf Corsepius <ralf_corsepiu@…>

  • include/sys/_stdint.h: Various changes. Add *leastN_t types. Add INTN_{MIN|MAX} macros. Add doxygen preamble.
  • include/sys/_inttypes.h: Add doxygen preamble. Reflect changes above.
  • libcsupport/include/stdint.h: Add doxygen preamble.
  • libcsupport/include/inttypes.h: Add doxygen preamble.
  • configure.ac: Add doxygen preamble to cpuopts.h.
Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r1c3dfb4a r07a984b  
     12004-11-04      Ralf Corsepius <ralf_corsepiu@rtems.org>
     2
     3        * include/sys/_stdint.h: Various changes.
     4        Add *leastN_t types. Add INTN_{MIN|MAX} macros.
     5        Add doxygen preamble.
     6        * include/sys/_inttypes.h: Add doxygen preamble.
     7        Reflect changes above.
     8        * libcsupport/include/stdint.h: Add doxygen preamble.
     9        * libcsupport/include/inttypes.h: Add doxygen preamble.
     10        * configure.ac: Add doxygen preamble to cpuopts.h.
     11
    1122004-11-02      Joel Sherrill <joel@OARcorp.com>
    213
  • cpukit/configure.ac

    r1c3dfb4a r07a984b  
    128128
    129129cat >>cpuopts.tmp <<\_ACEOF
     130/**
     131 * @file rtems/score/cpuopts.h
     132 */
    130133/* target cpu dependent options file */
    131134/* automatically generated -- DO NOT EDIT!! */
  • cpukit/libcsupport/include/inttypes.h

    r1c3dfb4a r07a984b  
     1/**
     2 * @file inttypes.h
     3 */
     4
    15/*
    2  * inttypes.h
    3  *
    46 * ISO C99 Format conversion of integer types.
    57 *
  • cpukit/libcsupport/include/stdint.h

    r1c3dfb4a r07a984b  
     1/**
     2 * @file stdint.h
     3 */
     4
    15/*
    2  * stdint.h
    3  *
    46 * ISO C99 integer types
    57 *
  • cpukit/libcsupport/include/sys/_inttypes.h

    r1c3dfb4a r07a984b  
     1/**
     2 *  @file  sys/_inttypes.h
     3 */
     4
    15/*
    26 *  COPYRIGHT (c) 2004.
     
    185189#define SCNx64          __SCN64(x)
    186190
    187 
     191#if __int64_t_defined
    188192#define PRIdLEAST64     __PRI64(d)
    189193#define PRIiLEAST64     __PRI64(i)
     
    212216#define SCNuFAST64      __SCN64(u)
    213217#define SCNxFAST64      __SCN64(x)
    214 
     218#endif
    215219
    216220/* max-bit types */
  • cpukit/libcsupport/include/sys/_stdint.h

    r1c3dfb4a r07a984b  
     1/**
     2 *  @file  sys/_stdint.h
     3 */
     4
    15/*
    26 *  COPYRIGHT (c) 2004.
     
    2832typedef signed char int8_t ;
    2933typedef unsigned char uint8_t ;
    30 #define int8_t_defined 1
    31 
     34#define __int8_t_defined 1
     35#endif
     36
     37#if __int8_t_defined
    3238typedef signed char int_least8_t;
    3339typedef unsigned char uint_least8_t;
    34 #define int_least8_t_defined 1
    35 #endif
    36 
    37 #if __EXP(INT_MAX) == 0x7fff
     40#define __int_least8_t_defined 1
     41#endif
     42
     43#if __EXP(SHRT_MAX) == 0x7fff
     44typedef signed short int16_t;
     45typedef unsigned short uint16_t;
     46#define __int16_t_defined 1
     47#elif __EXP(INT_MAX) == 0x7fff
    3848typedef signed int int16_t;
    3949typedef unsigned int uint16_t;
    40 #define int16_t_defined 1
    41 #elif __EXP(SHRT_MAX) == 0x7fff
    42 typedef signed short int16_t;
    43 typedef unsigned short uint16_t;
    44 #define int16_t_defined 1
     50#define __int16_t_defined 1
    4551#elif __EXP(SCHAR_MAX) == 0x7fff
    46 typedef signed char int32_t;
    47 typedef unsigned char uint32_t;
    48 #define int16_t_defined 1
     52typedef signed char int16_t;
     53typedef unsigned char uint16_t;
     54#define __int16_t_defined 1
     55#endif
     56
     57#if __int16_t_defined
     58typedef int16_t         int_least16_t;
     59typedef uint16_t        uint_least16_t;
     60#define __int_least16_t_defined 1
     61
     62#ifndef __int_least8_t_defined
     63typedef int16_t         int_least8_t;
     64typedef uint16_t        uint_least8_t;
     65#define __int_least8_t_defined 1
     66#endif
    4967#endif
    5068
     
    5270typedef signed int int32_t;
    5371typedef unsigned int uint32_t;
    54 #define int32_t_defined 1
     72#define __int32_t_defined 1
    5573#elif __EXP(LONG_MAX) == 0x7fffffffL
    5674typedef signed long int32_t;
    5775typedef unsigned long uint32_t;
    58 #define int32_t_defined 1
     76#define __int32_t_defined 1
    5977#define __rtems_long32 1
    6078#elif __EXP(SHRT_MAX) == 0x7fffffffL
    6179typedef signed short int32_t;
    6280typedef unsigned short uint32_t;
    63 #define int32_t_defined 1
     81#define __int32_t_defined 1
    6482#elif __EXP(SCHAR_MAX) == 0x7fffffffL
    6583typedef signed char int32_t;
    6684typedef unsigned char uint32_t;
    67 #define int32_t_defined 1
     85#define INT32_C(x) x
     86#define __int32_t_defined 1
     87#endif
     88
     89#if __int32_t_defined
     90typedef int32_t         int_least32_t;
     91typedef uint32_t        uint_least32_t;
     92#define __int_least32_t_defined 1
     93
     94#ifndef __int_least8_t_defined
     95typedef int32_t         int_least8_t;
     96typedef uint32_t        uint_least8_t;
     97#define __int_least8_t_defined 1
     98#endif
     99
     100#ifndef __int_least16_t_defined
     101typedef int32_t         int_least16_t;
     102typedef uint32_t        uint_least16_t;
     103#define __int_least16_t_defined 1
     104#endif
    68105#endif
    69106
     
    71108typedef signed long int64_t;
    72109typedef unsigned long uint64_t;
    73 #define int64_t_defined 1
     110#define __int64_t_defined 1
    74111#define __rtems_long64 1
    75112#elif  __EXP(LONG_LONG_MAX) > 0x7fffffff
    76113typedef signed long long int64_t;
    77114typedef unsigned long long uint64_t;
    78 #define int64_t_defined 1
     115#define __int64_t_defined 1
    79116#define __rtems_longlong64 1
    80117#elif  __EXP(INT_MAX) > 0x7fffffff
    81118typedef signed int int64_t;
    82119typedef unsigned int uint64_t;
    83 #define int64_t_defined 1
     120#define __int64_t_defined 1
     121#endif
     122
     123#if __int64_t_defined
     124typedef int64_t         int_least64_t;
     125typedef uint64_t        uint_least64_t;
     126#define __int_least64_t_defined 1
     127
     128#ifndef __int_least8_t_defined
     129typedef int64_t         int_least8_t;
     130typedef uint64_t        uint_least8_t;
     131#define __int_least8_t_defined 1
     132#endif
     133
     134#ifndef __int_least16_t_defined
     135typedef int64_t         int_least16_t;
     136typedef uint64_t        uint_least16_t;
     137#define __int_least16_t_defined 1
     138#endif
     139
     140#ifndef __int_least32_t_defined
     141typedef int64_t         int_least32_t;
     142typedef uint64_t        uint_least32_t;
     143#define __int_least32_t_defined 1
     144#endif
    84145#endif
    85146
     
    95156typedef unsigned long uintptr_t;
    96157
     158/* Limits of Specified-Width Integer Types */
     159
     160#if __int8_t_defined
     161#define INT8_MIN        -128
     162#define INT8_MAX         127
     163#define UINT8_MAX        255
     164#endif
     165
     166#if __int_least8_t_defined
     167#define INTLEAST8_MIN   -128
     168#define INTLEAST8_MAX    127
     169#define UINTLEAST8_MAX   255
     170#else
     171#error required type int_least8_t missing
     172#endif
     173
     174#if __int16_t_defined
     175#define INT16_MIN       -32768
     176#define INT16_MAX        32767
     177#define UINT16_MAX       65535
     178#endif
     179
     180#if __int_least16_t_defined
     181#define INTLEAST16_MIN  -32768
     182#define INTLEAST16_MAX   32767
     183#define UINTLEAST16_MAX  65535
     184#else
     185#error required type int_least16_t missing
     186#endif
     187
     188#if __int32_t_defined
     189#define INT32_MIN       -2147483648
     190#define INT32_MAX        2147483647
     191#define UINT32_MAX       4294967295
     192#endif
     193
     194#if __int_least32_t_defined
     195#define INTLEAST32_MIN  -2147483648
     196#define INTLEAST32_MAX   2147483647
     197#define UINTLEAST32_MAX  4294967295
     198#else
     199#error required type int_least32_t missing
     200#endif
     201
     202#if __int64_t_defined
     203#define INT64_MIN       -9223372036854775808
     204#define INT64_MAX        9223372036854775807
     205#define UINT64_MAX      18446744073709551615
     206#endif
     207
     208#if __int_least64_t_defined
     209#define INTLEAST64_MIN  -9223372036854775808
     210#define INTLEAST64_MAX   9223372036854775807
     211#define UINTLEAST64_MAX 18446744073709551615
     212#endif
     213
    97214#undef __EXP
    98215
Note: See TracChangeset for help on using the changeset viewer.