2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>

* include/stdint.h (int_fast8_t): Specify as signed char.
        (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
        (INT32_C, UINT32_C): Remove 'L' type specifier on constant.
This commit is contained in:
Chris Sutcliffe 2009-04-11 12:41:09 +00:00
parent 1b98373a40
commit 370a1171d8
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>
* include/stdint.h (int_fast8_t): Specify as signed char.
(INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int.
(INT32_C, UINT32_C): Remove 'L' type specifier on constant.
2009-03-05 Kai Tietz <kai.tietz@onevision.com>
* pseudo-reloc.c: Rewrite to enable pseudo_reloc version 2.

View File

@ -47,7 +47,7 @@ typedef unsigned long long uint_least64_t;
* Not actually guaranteed to be fastest for all purposes
* Here we use the exact-width types for 8 and 16-bit ints.
*/
typedef char int_fast8_t;
typedef signed char int_fast8_t;
typedef unsigned char uint_fast8_t;
typedef short int_fast16_t;
typedef unsigned short uint_fast16_t;
@ -187,13 +187,13 @@ typedef unsigned long long uintmax_t;
*expression* with *promoted* type."
*/
#define INT8_C(val) ((int8_t) + (val))
#define UINT8_C(val) ((uint8_t) + (val##U))
#define INT16_C(val) ((int16_t) + (val))
#define UINT16_C(val) ((uint16_t) + (val##U))
#define INT8_C(val) val
#define UINT8_C(val) val
#define INT16_C(val) val
#define UINT16_C(val) val
#define INT32_C(val) val##L
#define UINT32_C(val) val##UL
#define INT32_C(val) val
#define UINT32_C(val) val##U
#define INT64_C(val) val##LL
#define UINT64_C(val) val##ULL