Files
cAI/cKit/Memory/c_Alignment.h
T
2026-08-10 01:21:15 +08:00

30 lines
561 B
C

#ifndef INCLUDED_C_ALIGNMENT_H
#define INCLUDED_C_ALIGNMENT_H
#ifndef INCLUDED_C_BASE_H
#include <c_Base.h>
#endif /*INCLUDED_C_BASE_H*/
/* ------------------------------------------------------------------------------------------------------------------ */
/* */
typedef union {
#ifdef C_ALIGN_MAX_SIZE
char pad[C_ALIGN_MAX_SIZE];
#else
int i;
long l;
long *lp;
void *p;
void (*fp)(void);
float f;
double d;
long double ld;
#endif
} c_align_t;
#define C_ALIGN_SIZE sizeof(c_align_t)
#endif /*INCLUDED_C_ALIGNMENT_H*/