Home
last modified time | relevance | path

Searched defs:half_caster (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/ComputeLibrary/include/half/
H A Dhalf.hpp2067 …ename U,std::float_round_style R=(std::float_round_style)(HALF_ROUND_STYLE)> struct half_caster {}; struct
2068 template<typename U,std::float_round_style R> struct half_caster<half,U,R> struct
2074 static half cast(U arg) { return cast_impl(arg, is_float<U>()); }; in cast()
2077 static half cast_impl(U arg, true_type) { return half(binary, float2half<R>(arg)); } in cast_impl()
2078 static half cast_impl(U arg, false_type) { return half(binary, int2half<R>(arg)); } in cast_impl()
2080 template<typename T,std::float_round_style R> struct half_caster<T,half,R> struct
2086 static T cast(half arg) { return cast_impl(arg, is_float<T>()); } in cast()
2089 static T cast_impl(half arg, true_type) { return half2float<T>(arg.data_); } in cast_impl()
2090 static T cast_impl(half arg, false_type) { return half2int<R,T>(arg.data_); } in cast_impl()
2092 template<typename T,std::float_round_style R> struct half_caster<T,expr,R> struct
[all …]
/aosp_15_r20/external/armnn/third-party/half/
H A Dhalf.hpp2069 …ename U,std::float_round_style R=(std::float_round_style)(HALF_ROUND_STYLE)> struct half_caster {}; struct
2070 template<typename U,std::float_round_style R> struct half_caster<half,U,R> struct
2076 static half cast(U arg) { return cast_impl(arg, is_float<U>()); }; in cast()
2079 static half cast_impl(U arg, true_type) { return half(binary, float2half<R>(arg)); } in cast_impl()
2080 static half cast_impl(U arg, false_type) { return half(binary, int2half<R>(arg)); } in cast_impl()
2082 template<typename T,std::float_round_style R> struct half_caster<T,half,R> struct
2088 static T cast(half arg) { return cast_impl(arg, is_float<T>()); } in cast()
2091 static T cast_impl(half arg, true_type) { return half2float<T>(arg.data_); } in cast_impl()
2092 static T cast_impl(half arg, false_type) { return half2int<R,T>(arg.data_); } in cast_impl()
2094 template<typename T,std::float_round_style R> struct half_caster<T,expr,R> struct
[all …]