-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update numio/std.hpp to reflect changes to FloatIO and add half-preci…
…sion preset. Additionally add some popular non-IEEE 754 floating-point formats in numio/fp_extra.hpp
- Loading branch information
1 parent
d451542
commit 64cebf0
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef FP_EXTRA_H | ||
#define FP_EXTRA_H | ||
|
||
// **************************************************************************** | ||
|
||
#include "../numio.hpp" | ||
#include <cstdint> | ||
|
||
namespace NumIO | ||
{ | ||
/// @brief Google Brain bfloat16 (brain floating point) | ||
using bfloat16_IO = FloatIO<float, std::uint16_t, 8, 7>; | ||
|
||
/// @brief NVidia TensorFloat | ||
using nv_tf32_IO = FloatIO<float, std::uint32_t, 8, 10>; | ||
|
||
/// @brief AMD fp24 | ||
using amd_fp24_IO = FloatIO<float, std::uint32_t, 7, 16>; | ||
|
||
/// @brief Pixar PXR24 | ||
using pxr24_IO = FloatIO<float, std::uint32_t, 8, 15>; | ||
} | ||
|
||
// **************************************************************************** | ||
|
||
#endif /* FP_EXTRA_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters