openMSX
Macros
vla.hh File Reference
#include <span>
Include dependency graph for vla.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VLA(TYPE, NAME, LENGTH)
 
#define VLA_ALIGNED(TYPE, NAME, LENGTH, ALIGNMENT)    UNABLE_TO_GUARANTEE_VLA_ALIGNMENT_ON_THIS_ARCHITECTURE
 
#define VLA_SSE_ALIGNED(TYPE, NAME, LENGTH)   VLA(TYPE, NAME, LENGTH)
 

Macro Definition Documentation

◆ VLA

#define VLA (   TYPE,
  NAME,
  LENGTH 
)
Value:
TYPE NAME##_storage[(LENGTH)]; \
std::span NAME{NAME##_storage, size_t(LENGTH)}

Definition at line 12 of file vla.hh.

◆ VLA_ALIGNED

#define VLA_ALIGNED (   TYPE,
  NAME,
  LENGTH,
  ALIGNMENT 
)     UNABLE_TO_GUARANTEE_VLA_ALIGNMENT_ON_THIS_ARCHITECTURE

Definition at line 25 of file vla.hh.

◆ VLA_SSE_ALIGNED

#define VLA_SSE_ALIGNED (   TYPE,
  NAME,
  LENGTH 
)    VLA(TYPE, NAME, LENGTH)

Definition at line 50 of file vla.hh.