libGimbal 0.2.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_platform.h File Reference

Go to the source code of this file.

Macros

#define GBL_INITIALIZER_PREFIX_
 
#define GBL_THREAD_LOCAL_
 
#define GBL_INITIALIZER(f)
 
#define GBL_THREAD_LOCAL
 
#define GBL_PREFETCH(...)
 
#define GBL_ALLOCA
 
#define GBL_QUICK_EXIT(c)
 
#define GBL_STMT_START
 
#define GBL_STMT_END
 
#define GBL_SIZE_TYPE
 
#define GBL_SIZE_BITS
 
#define GBL_VARIANT_CONSTRUCT_GENERIC_PLATFORM_ENTRIES()
 
#define GBL_PMR_VECTOR_ONLY_
 
#define GBL_PMR_STRING_ONLY_
 
#define GBL_LEXICOGRAPHICAL_COMPARE_
 
#define GBL_BIT_FIELDS_ENDIAN_XFORM_(...)
 
#define GBL_ENDIAN_SELECT_
 
#define GBL_FROM_BIG_ENDIAN_U32_(value)
 
#define GBL_TO_LITTLE_ENDIAN_U16_(value)
 
#define GBL_TO_LITTLE_ENDIAN_U32_(value)
 

Functions

static uint32_t gblLoadUnalignedU32_ (const void *pData)
 

Detailed Description

Platform and architecture definitions.

Author
2026 Falco Girgis
2026 Agustín Bellagamba

Definition in file gimbal_platform.h.

Macro Definition Documentation

◆ GBL_INITIALIZER_PREFIX_

#define GBL_INITIALIZER_PREFIX_

Definition at line 130 of file gimbal_platform.h.

◆ GBL_THREAD_LOCAL_

#define GBL_THREAD_LOCAL_

Definition at line 138 of file gimbal_platform.h.

◆ GBL_INITIALIZER

#define GBL_INITIALIZER ( f)

Definition at line 155 of file gimbal_platform.h.

155# define GBL_INITIALIZER(f) \
156 static void f(void) __attribute__((constructor)); \
157 static void f(void)

◆ GBL_THREAD_LOCAL

#define GBL_THREAD_LOCAL

Definition at line 166 of file gimbal_platform.h.

◆ GBL_PREFETCH

#define GBL_PREFETCH ( ...)

Definition at line 200 of file gimbal_platform.h.

◆ GBL_ALLOCA

#define GBL_ALLOCA

Definition at line 220 of file gimbal_platform.h.

◆ GBL_QUICK_EXIT

#define GBL_QUICK_EXIT ( c)

Definition at line 230 of file gimbal_platform.h.

◆ GBL_STMT_START

#define GBL_STMT_START

Definition at line 260 of file gimbal_platform.h.

◆ GBL_STMT_END

#define GBL_STMT_END

Definition at line 261 of file gimbal_platform.h.

◆ GBL_SIZE_TYPE

#define GBL_SIZE_TYPE

Definition at line 269 of file gimbal_platform.h.

◆ GBL_SIZE_BITS

#define GBL_SIZE_BITS

Definition at line 270 of file gimbal_platform.h.

◆ GBL_VARIANT_CONSTRUCT_GENERIC_PLATFORM_ENTRIES

#define GBL_VARIANT_CONSTRUCT_GENERIC_PLATFORM_ENTRIES ( )

Definition at line 279 of file gimbal_platform.h.

◆ GBL_PMR_VECTOR_ONLY_

#define GBL_PMR_VECTOR_ONLY_

Definition at line 332 of file gimbal_platform.h.

◆ GBL_PMR_STRING_ONLY_

#define GBL_PMR_STRING_ONLY_

Definition at line 338 of file gimbal_platform.h.

◆ GBL_LEXICOGRAPHICAL_COMPARE_

#define GBL_LEXICOGRAPHICAL_COMPARE_

Definition at line 344 of file gimbal_platform.h.

◆ GBL_BIT_FIELDS_ENDIAN_XFORM_

#define GBL_BIT_FIELDS_ENDIAN_XFORM_ ( ...)

Definition at line 352 of file gimbal_platform.h.

◆ GBL_ENDIAN_SELECT_

#define GBL_ENDIAN_SELECT_

Definition at line 362 of file gimbal_platform.h.

◆ GBL_FROM_BIG_ENDIAN_U32_

#define GBL_FROM_BIG_ENDIAN_U32_ ( value)

Definition at line 363 of file gimbal_platform.h.

◆ GBL_TO_LITTLE_ENDIAN_U16_

#define GBL_TO_LITTLE_ENDIAN_U16_ ( value)

Definition at line 364 of file gimbal_platform.h.

◆ GBL_TO_LITTLE_ENDIAN_U32_

#define GBL_TO_LITTLE_ENDIAN_U32_ ( value)

Definition at line 365 of file gimbal_platform.h.

Function Documentation

◆ gblLoadUnalignedU32_()

static uint32_t gblLoadUnalignedU32_ ( const void * pData)
inlinestatic

Definition at line 373 of file gimbal_platform.h.

373 {
374 return *(const uint32_t*)pData;
375}