Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 2 additions & 6 deletions float16_t.hpp → include/float16/float16_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,16 +1003,12 @@ namespace std
static constexpr std::float_round_style round_style = round_to_nearest;
};

template<> inline constexpr bool is_floating_point_v<numeric::float16_t> = true;
template<> inline constexpr bool is_arithmetic_v<numeric::float16_t> = true;
template<> inline constexpr bool is_signed_v<numeric::float16_t> = true;

}

#endif

#endif

#ifdef _MSC_VER
#pragma warning( pop )
#endif

#endif
2 changes: 1 addition & 1 deletion tests/test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "../float16_t.hpp"
#include "../include/float16/float16_t.hpp"
#include <cmath>
#include <iostream>
#include <bitset>
Expand Down