mirror of https://github.com/libAthena/athena.git
Types: Simplify typedefs
These can just be regular structure declarations. This also has the benefit of allowing forward declaring the types.
This commit is contained in:
parent
5da7e7bac3
commit
8471a7e189
|
@ -13,24 +13,24 @@ using atUint64 = uint64_t;
|
||||||
|
|
||||||
// Vector types
|
// Vector types
|
||||||
#include "simd/simd.hpp"
|
#include "simd/simd.hpp"
|
||||||
typedef struct {
|
struct atVec2f {
|
||||||
athena::simd<float> simd;
|
athena::simd<float> simd;
|
||||||
} atVec2f;
|
};
|
||||||
typedef struct {
|
struct atVec3f {
|
||||||
athena::simd<float> simd;
|
athena::simd<float> simd;
|
||||||
} atVec3f;
|
};
|
||||||
typedef struct {
|
struct atVec4f {
|
||||||
athena::simd<float> simd;
|
athena::simd<float> simd;
|
||||||
} atVec4f;
|
};
|
||||||
typedef struct {
|
struct atVec2d {
|
||||||
athena::simd<double> simd;
|
athena::simd<double> simd;
|
||||||
} atVec2d;
|
};
|
||||||
typedef struct {
|
struct atVec3d {
|
||||||
athena::simd<double> simd;
|
athena::simd<double> simd;
|
||||||
} atVec3d;
|
};
|
||||||
typedef struct {
|
struct atVec4d {
|
||||||
athena::simd<double> simd;
|
athena::simd<double> simd;
|
||||||
} atVec4d;
|
};
|
||||||
|
|
||||||
#ifndef UNUSED
|
#ifndef UNUSED
|
||||||
#define UNUSED(x) ((void)x)
|
#define UNUSED(x) ((void)x)
|
||||||
|
|
Loading…
Reference in New Issue