rwonce.h: indent; bits.h: remove useless convenience signed types

This commit is contained in:
2022-03-18 18:46:10 +01:00
parent a92a4e04b4
commit 6db9653377
2 changed files with 48 additions and 45 deletions

View File

@@ -29,6 +29,8 @@
#error "Only 64 bits word size supported."
#endif
/* fixed-size types
*/
typedef int64_t s64;
typedef int32_t s32;
typedef int16_t s16;
@@ -39,14 +41,15 @@ typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
/* convenience types
*/
typedef unsigned long int ulong;
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned char uchar;
typedef signed long int slong;
typedef signed int sint;
typedef signed short sshort;
/* char is a special case, as it can be signed or unsigned
*/
typedef signed char schar;
/* count trailing zeroes : 00101000 -> 3

View File

@@ -40,8 +40,8 @@
unsigned type: (unsigned type)0, \
signed type: (signed type)0
#define __unqual_scalar_typeof(x) typeof( \
_Generic((x), \
#define __unqual_scalar_typeof(x) \
typeof(_Generic((x), \
char: (char)0, \
__scalar_type_to_expr_cases(char), \
__scalar_type_to_expr_cases(short), \