Skip to content

Commit 58e898d

Browse files
committed
using clang-format 14.0.0
1 parent f17fd1c commit 58e898d

File tree

1 file changed

+11
-33
lines changed

1 file changed

+11
-33
lines changed

src/include/sharpy/CppTypes.hpp

+11-33
Original file line numberDiff line numberDiff line change
@@ -63,39 +63,17 @@ enum _RANKS : rank_type {
6363
};
6464

6565
template <typename T> struct DTYPE {};
66-
template <> struct DTYPE<double> {
67-
constexpr static DTypeId value = FLOAT64;
68-
};
69-
template <> struct DTYPE<float> {
70-
constexpr static DTypeId value = FLOAT32;
71-
};
72-
template <> struct DTYPE<int64_t> {
73-
constexpr static DTypeId value = INT64;
74-
};
75-
template <> struct DTYPE<int32_t> {
76-
constexpr static DTypeId value = INT32;
77-
};
78-
template <> struct DTYPE<int16_t> {
79-
constexpr static DTypeId value = INT16;
80-
};
81-
template <> struct DTYPE<int8_t> {
82-
constexpr static DTypeId value = INT8;
83-
};
84-
template <> struct DTYPE<uint64_t> {
85-
constexpr static DTypeId value = UINT64;
86-
};
87-
template <> struct DTYPE<uint32_t> {
88-
constexpr static DTypeId value = UINT32;
89-
};
90-
template <> struct DTYPE<uint16_t> {
91-
constexpr static DTypeId value = UINT16;
92-
};
93-
template <> struct DTYPE<uint8_t> {
94-
constexpr static DTypeId value = UINT8;
95-
};
96-
template <> struct DTYPE<bool> {
97-
constexpr static DTypeId value = BOOL;
98-
};
66+
template <> struct DTYPE<double> { constexpr static DTypeId value = FLOAT64; };
67+
template <> struct DTYPE<float> { constexpr static DTypeId value = FLOAT32; };
68+
template <> struct DTYPE<int64_t> { constexpr static DTypeId value = INT64; };
69+
template <> struct DTYPE<int32_t> { constexpr static DTypeId value = INT32; };
70+
template <> struct DTYPE<int16_t> { constexpr static DTypeId value = INT16; };
71+
template <> struct DTYPE<int8_t> { constexpr static DTypeId value = INT8; };
72+
template <> struct DTYPE<uint64_t> { constexpr static DTypeId value = UINT64; };
73+
template <> struct DTYPE<uint32_t> { constexpr static DTypeId value = UINT32; };
74+
template <> struct DTYPE<uint16_t> { constexpr static DTypeId value = UINT16; };
75+
template <> struct DTYPE<uint8_t> { constexpr static DTypeId value = UINT8; };
76+
template <> struct DTYPE<bool> { constexpr static DTypeId value = BOOL; };
9977

10078
template <DTypeId DT> struct TYPE {};
10179
template <> struct TYPE<FLOAT64> {

0 commit comments

Comments
 (0)