rwonce.h: indent; bits.h: remove useless convenience signed types
This commit is contained in:
9
c/bits.h
9
c/bits.h
@@ -29,6 +29,8 @@
|
|||||||
#error "Only 64 bits word size supported."
|
#error "Only 64 bits word size supported."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* fixed-size types
|
||||||
|
*/
|
||||||
typedef int64_t s64;
|
typedef int64_t s64;
|
||||||
typedef int32_t s32;
|
typedef int32_t s32;
|
||||||
typedef int16_t s16;
|
typedef int16_t s16;
|
||||||
@@ -39,14 +41,15 @@ typedef uint32_t u32;
|
|||||||
typedef uint16_t u16;
|
typedef uint16_t u16;
|
||||||
typedef uint8_t u8;
|
typedef uint8_t u8;
|
||||||
|
|
||||||
|
/* convenience types
|
||||||
|
*/
|
||||||
typedef unsigned long int ulong;
|
typedef unsigned long int ulong;
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
typedef unsigned short ushort;
|
typedef unsigned short ushort;
|
||||||
typedef unsigned char uchar;
|
typedef unsigned char uchar;
|
||||||
|
|
||||||
typedef signed long int slong;
|
/* char is a special case, as it can be signed or unsigned
|
||||||
typedef signed int sint;
|
*/
|
||||||
typedef signed short sshort;
|
|
||||||
typedef signed char schar;
|
typedef signed char schar;
|
||||||
|
|
||||||
/* count trailing zeroes : 00101000 -> 3
|
/* count trailing zeroes : 00101000 -> 3
|
||||||
|
@@ -40,8 +40,8 @@
|
|||||||
unsigned type: (unsigned type)0, \
|
unsigned type: (unsigned type)0, \
|
||||||
signed type: (signed type)0
|
signed type: (signed type)0
|
||||||
|
|
||||||
#define __unqual_scalar_typeof(x) typeof( \
|
#define __unqual_scalar_typeof(x) \
|
||||||
_Generic((x), \
|
typeof(_Generic((x), \
|
||||||
char: (char)0, \
|
char: (char)0, \
|
||||||
__scalar_type_to_expr_cases(char), \
|
__scalar_type_to_expr_cases(char), \
|
||||||
__scalar_type_to_expr_cases(short), \
|
__scalar_type_to_expr_cases(short), \
|
||||||
|
Reference in New Issue
Block a user