Home
last modified time | relevance | path

Searched refs:FloatType (Results 1 – 13 of 13) sorted by relevance

/frameworks/libs/binary_translation/intrinsics/include/berberis/intrinsics/
Dintrinsics_floating_point_impl.h32 template <typename FloatType,
34 std::tuple<FloatType> FAdd(int8_t rm, int8_t frm, FloatType arg1, FloatType arg2) { in FAdd()
35 return intrinsics::ExecuteFloatOperation<FloatType>( in FAdd()
45 template <typename FloatType, enum PreferredIntrinsicsImplementation>
46 std::tuple<FloatType> FAddHostRounding(FloatType arg1, FloatType arg2) { in FAddHostRounding()
50 template <typename FloatType, enum PreferredIntrinsicsImplementation>
51 std::tuple<uint64_t> FClass(FloatType arg) { in FClass()
52 using IntType = std::make_unsigned_t<typename TypeTraits<FloatType>::Int>; in FClass()
54 __builtin_bit_cast(IntType, std::numeric_limits<FloatType>::quiet_NaN()) & in FClass()
55 ~__builtin_bit_cast(IntType, std::numeric_limits<FloatType>::signaling_NaN()); in FClass()
[all …]
/frameworks/libs/binary_translation/intrinsics/riscv64_to_x86_64/include/berberis/intrinsics/
Dintrinsics_float.h36 template <typename FloatType, typename OperationType, typename... Args>
37 inline FloatType ExecuteFloatOperationRmm(OperationType operation, Args... args) { in ExecuteFloatOperationRmm()
38 using Wide = typename TypeTraits<FloatType>::Wide; in ExecuteFloatOperationRmm()
40 if constexpr (std::is_same_v<FloatType, Float32>) { in ExecuteFloatOperationRmm()
45 return FloatType(wide_result); in ExecuteFloatOperationRmm()
50 } else if constexpr (std::is_same_v<FloatType, Float64>) { in ExecuteFloatOperationRmm()
73 return FloatType(wide_result);
79 template <typename FloatType, typename OperationType, typename... Args>
80 inline FloatType ExecuteFloatOperation(uint8_t requested_rm, in ExecuteFloatOperation()
89 return ExecuteFloatOperationRmm<FloatType>(operation, args...); in ExecuteFloatOperation()
[all …]
Dmacro_assembler_floating_point_impl.h46 template <typename FloatType>
49 Cmpords<FloatType>(result, src); in MacroCanonicalizeNan()
51 Pandn(result, {.disp = constants_pool::kCanonicalNans<FloatType>}); in MacroCanonicalizeNan()
56 template <typename FloatType>
58 Vcmpords<FloatType>(result, src, src); in MacroCanonicalizeNanAVX()
60 Vpandn(result, result, {.disp = constants_pool::kCanonicalNans<FloatType>}); in MacroCanonicalizeNanAVX()
65 template <typename FloatType>
67 Cmpeqs<FloatType>(src1, src2); in MacroFeq()
68 Mov<FloatType>(result, src1); in MacroFeq()
73 template <typename FloatType>
[all …]
Dmacro_assembler_constants_pool.h183 template <typename FloatType>
190 template <typename FloatType>
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleAnimationSession.java279 static class AnimationProperties<FloatType, PaintType> {
280 private final FloatType mProgress;
281 private FloatType mMaxRadius;
282 private final FloatType mNoisePhase;
286 private FloatType mX;
287 private FloatType mY;
289 AnimationProperties(FloatType x, FloatType y, FloatType maxRadius, FloatType noisePhase, in AnimationProperties()
290 PaintType paint, FloatType progress, @ColorInt int color, RippleShader shader) { in AnimationProperties()
301 FloatType getProgress() { in getProgress()
305 void setRadius(FloatType radius) { in setRadius()
[all …]
/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Dsemantics_player.h245 template <typename FloatType>
255 result = listener_->template FCvtIntegerToFloat<FloatType, int32_t>(rm, frm, arg); in FcvtIntegerToFloat()
258 result = listener_->template FCvtIntegerToFloat<FloatType, uint32_t>(rm, frm, arg); in FcvtIntegerToFloat()
261 result = listener_->template FCvtIntegerToFloat<FloatType, int64_t>(rm, frm, arg); in FcvtIntegerToFloat()
264 result = listener_->template FCvtIntegerToFloat<FloatType, uint64_t>(rm, frm, arg); in FcvtIntegerToFloat()
270 NanBoxAndSetFpReg<FloatType>(dst, result); in FcvtIntegerToFloat()
286 template <typename FloatType>
293 FpRegister arg1 = GetFRegAndUnboxNan<FloatType>(src1); in Fma()
294 FpRegister arg2 = GetFRegAndUnboxNan<FloatType>(src2); in Fma()
295 FpRegister arg3 = GetFRegAndUnboxNan<FloatType>(src3); in Fma()
[all …]
/frameworks/libs/binary_translation/interpreter/riscv64/
Dregs.h46 template <typename FloatType>
47 inline FloatType FPRegToFloat(uint64_t arg);
61 template <typename FloatType>
62 inline uint64_t FloatToFPReg(FloatType arg);
Dinterpreter.h4135 template <typename FloatType>
4138 template <typename FloatType>
/frameworks/av/media/utils/include/mediautils/
DMethodStatistics.h42 using FloatType = float;
43 using StatsType = audio_utils::Statistics<FloatType>;
59 void event(C&& code, FloatType executeMs) { in event()
66 FloatType dataArray[1] = { executeMs }; in event()
/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dlite_translator.h247 template <typename FloatType>
252 as_.MacroUnboxNanAVX<FloatType>(unboxed_result, result); in GetFRegAndUnboxNan()
254 as_.MacroUnboxNan<FloatType>(unboxed_result, result); in GetFRegAndUnboxNan()
259 template <typename FloatType>
262 as_.MacroNanBoxAVX<FloatType>(value, value); in NanBoxFpReg()
265 as_.MacroNanBox<FloatType>(value); in NanBoxFpReg()
268 template <typename FloatType>
272 NanBoxFpReg<FloatType>(value); in NanBoxAndSetFpReg()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dfrontend.h235 template <typename FloatType>
251 template <typename FloatType>
260 template <typename FloatType>
264 NanBoxFpReg<FloatType>(value); in NanBoxAndSetFpReg()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h350 template <typename FloatType,
351 typename = std::enable_if_t<!std::numeric_limits<FloatType>::is_exact &&
352 sizeof(BaseType) == sizeof(FloatType)>>
353 [[nodiscard]] constexpr operator intrinsics::WrappedFloatType<FloatType>() const {
355 intrinsics::WrappedFloatType<FloatType> result;
880 using FloatType = decltype(BitCastToFloat(std::declval<T>())); variable
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/
Dmacro_assembler-inl.h74 template <typename FloatType>
75 static constexpr bool kFloatType = kFormatIs<FloatType, Float32, Float64>;