Warning, file /include/highfive/half_float.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #pragma once
0002 #ifdef H5_USE_HALF_FLOAT
0003
0004 #include <half.hpp>
0005
0006 namespace HighFive {
0007 using float16_t = half_float::half;
0008
0009 template <>
0010 inline AtomicType<float16_t>::AtomicType() {
0011 _hid = detail::h5t_copy(H5T_NATIVE_FLOAT);
0012
0013 detail::h5t_set_fields(_hid, 15, 10, 5, 0, 10);
0014
0015 detail::h5t_set_size(_hid, 2);
0016
0017 detail::h5t_set_ebias(_hid, 15);
0018 }
0019 }
0020
0021 #endif