mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 20:36:02 +01:00
include: kernel.h: define SSIZE_MAX
Define SSIZE_MAX, the largest value fitting into a variable of type ssize_t. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
fa63753f86
commit
ed0b10722c
@ -19,6 +19,9 @@
|
|||||||
#ifndef SIZE_MAX
|
#ifndef SIZE_MAX
|
||||||
#define SIZE_MAX (~(size_t)0)
|
#define SIZE_MAX (~(size_t)0)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef SSIZE_MAX
|
||||||
|
#define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define U8_MAX ((u8)~0U)
|
#define U8_MAX ((u8)~0U)
|
||||||
#define S8_MAX ((s8)(U8_MAX>>1))
|
#define S8_MAX ((s8)(U8_MAX>>1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user