git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@543 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-01 04:25:22 +00:00
parent 0626cb3527
commit 98143415ba
12 changed files with 467 additions and 64 deletions

View File

@@ -19,9 +19,9 @@
* @brief Generic vector type
* @warning Do not try to instantiate this yourself, use the appropriate functions instead.
*/
typedef struct _MwLLVec MwLLVec;
typedef enum _MwLLVecType MwLLVecType;
typedef union _MwLLVecUnion MwLLVecUnion;
// clang-format off
@@ -48,11 +48,11 @@ enum _MwLLVecType {
_MwLLVecType_Max,
};
struct _MwLLVec {
MwLLVecType ty;
int ty;
MwLLVecUnion un;
};
MwLLVec _MwLLVecCreateGeneric(MwLLVecType ty, ...);
MwLLVec _MwLLVecCreateGeneric(int ty, ...);
#define MwLLVecU8x8(a, b, c, d, e, f, g, h) _MwLLVecCreateGeneric(_MwLLVecTypeU8x8, a, b, c, d, e, f, g, h)
#define MwLLVecU16x4(a, b, c, d) _MwLLVecCreateGeneric(_MwLLVecTypeU16x4, a, b, c, d)