Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions encoder/basisu_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ namespace bu_math
{
public:
typedef T scalar_type;
enum
{
num_elements = N
};
static constexpr uint32_t num_elements = N;

inline vec()
{
Expand Down Expand Up @@ -1186,11 +1183,8 @@ namespace bu_math
{
public:
typedef T scalar_type;
enum
{
num_rows = R,
num_cols = C
};
static constexpr uint32_t num_rows = R;
static constexpr uint32_t num_cols = C;

typedef vec<R, T> col_vec;
typedef vec < (R > 1) ? (R - 1) : 0, T > subcol_vec;
Expand Down