blob: 573d5c24b8fdde9ae96ff266fe4fef8e54898edb [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa01c577f2c2018-08-31 09:22:23 +01004//
5
6#pragma once
7
Sadik Armaganb6cce4f2018-10-11 15:26:57 +01008// Set style to round to nearest
9#define HALF_ROUND_STYLE 1
10
telsoa01c577f2c2018-08-31 09:22:23 +010011#include <type_traits>
12#include <half/half.hpp>
13
14namespace armnn
15{
16 using Half = half_float::half; //import half float implementation
17} //namespace armnn
18
19
20namespace std
21{
22
23template<>
24struct is_floating_point<armnn::Half>
25 : integral_constant< bool, true >
26{};
27
28template<>
29struct is_floating_point<const armnn::Half>
30 : integral_constant< bool, true >
31{};
32
33template<>
34struct is_floating_point<volatile armnn::Half>
35 : integral_constant< bool, true >
36{};
37
38} //namespace std