payloads/libpayload: Add fast data types to types.h

libpayload stdint.h only supports typedefs for datatypes of exact
bits. This makes libpayload less flexible to support libraries
that reference different data types.

Add fast data types in types.h.

BUG=b:386913035

Change-Id: Ie9197866ae9b6c27d3f26c11d8409ecb90321c74
Signed-off-by: Masa Nakura <nakura@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86632
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Hsuan-ting Chen <roccochen@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Masa Nakura 2025-02-27 10:02:06 +00:00 committed by Matt DeVillier
commit ae532fe641
4 changed files with 32 additions and 0 deletions

View file

@ -30,23 +30,31 @@
#define _ARCH_TYPES_H
typedef unsigned char uint8_t;
typedef unsigned char uint_fast8_t;
typedef unsigned char u8;
typedef signed char int8_t;
typedef signed char int_fast8_t;
typedef signed char s8;
typedef unsigned short uint16_t;
typedef unsigned short u16;
typedef unsigned short uint_fast16_t;
typedef signed short int16_t;
typedef signed short int_fast16_t;
typedef signed short s16;
typedef unsigned int uint32_t;
typedef unsigned int uint_fast32_t;
typedef unsigned int u32;
typedef signed int int32_t;
typedef signed int int_fast32_t;
typedef signed int s32;
typedef unsigned long long uint64_t;
typedef unsigned long long uint_fast64_t;
typedef unsigned long long u64;
typedef signed long long int64_t;
typedef signed long long int_fast64_t;
typedef signed long long s64;
typedef long time_t;

View file

@ -30,23 +30,31 @@
#define _ARCH_TYPES_H
typedef unsigned char uint8_t;
typedef unsigned char uint_fast8_t;
typedef unsigned char u8;
typedef signed char int8_t;
typedef signed char int_fast8_t;
typedef signed char s8;
typedef unsigned short uint16_t;
typedef unsigned short u16;
typedef unsigned short uint_fast16_t;
typedef signed short int16_t;
typedef signed short int_fast16_t;
typedef signed short s16;
typedef unsigned int uint32_t;
typedef unsigned int uint_fast32_t;
typedef unsigned int u32;
typedef signed int int32_t;
typedef signed int int_fast32_t;
typedef signed int s32;
typedef unsigned long long uint64_t;
typedef unsigned long long uint_fast64_t;
typedef unsigned long long u64;
typedef signed long long int64_t;
typedef signed long long int_fast64_t;
typedef signed long long s64;
typedef long time_t;

View file

@ -4,23 +4,31 @@
#define _ARCH_TYPES_H
typedef unsigned char uint8_t;
typedef unsigned char uint_fast8_t;
typedef unsigned char u8;
typedef signed char int8_t;
typedef signed char int_fast8_t;
typedef signed char s8;
typedef unsigned short uint16_t;
typedef unsigned short u16;
typedef unsigned short uint_fast16_t;
typedef signed short int16_t;
typedef signed short int_fast16_t;
typedef signed short s16;
typedef unsigned int uint32_t;
typedef unsigned int uint_fast32_t;
typedef unsigned int u32;
typedef signed int int32_t;
typedef signed int int_fast32_t;
typedef signed int s32;
typedef unsigned long long uint64_t;
typedef unsigned long long uint_fast64_t;
typedef unsigned long long u64;
typedef signed long long int64_t;
typedef signed long long int_fast64_t;
typedef signed long long s64;
typedef long time_t;

View file

@ -30,23 +30,31 @@
#define _ARCH_TYPES_H
typedef unsigned char uint8_t;
typedef unsigned char uint_fast8_t;
typedef unsigned char u8;
typedef signed char int8_t;
typedef signed char int_fast8_t;
typedef signed char s8;
typedef unsigned short uint16_t;
typedef unsigned short u16;
typedef unsigned short uint_fast16_t;
typedef signed short int16_t;
typedef signed short int_fast16_t;
typedef signed short s16;
typedef unsigned int uint32_t;
typedef unsigned int uint_fast32_t;
typedef unsigned int u32;
typedef signed int int32_t;
typedef signed int int_fast32_t;
typedef signed int s32;
typedef unsigned long long uint64_t;
typedef unsigned long long uint_fast64_t;
typedef unsigned long long u64;
typedef signed long long int64_t;
typedef signed long long int_fast64_t;
typedef signed long long s64;
typedef long time_t;