| 79 | namespace detail { |
| 80 | |
| 81 | inline uint16_t ReorderInteger(const uint16_t& x) { |
| 82 | #ifdef AOBA_NUMPY_BIG_ENDIAN |
| 83 | uint16_t y; |
| 84 | const char* rx = reinterpret_cast<const char*>(&x); |
| 85 | char* ry = reinterpret_cast<char*>(&y); |
| 86 | *ry = *(rx + 1); |
| 87 | *(ry + 1) = *rx; |
| 88 | return y; |
| 89 | #else |
| 90 | return x; |
| 91 | #endif |
| 92 | } |
| 93 | |
| 94 | template<typename Scalar> |
| 95 | struct DescriptorDataType {}; |
no outgoing calls
no test coverage detected