Home
last modified time | relevance | path

Searched full:float (Results 1 – 25 of 177) sorted by relevance

12345678

/arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch32/
Dlib_helpers.inl25 extern "C" float __aeabi_l2f(int64_t data); // NOLINT(misc-definitions-in-headers)
26 extern "C" float __aeabi_ul2f(uint64_t data); // NOLINT(misc-definitions-in-headers)
30 extern "C" int64_t __aeabi_f2lz(float data); // NOLINT(misc-definitions-in-headers)
31 extern "C" uint64_t __aeabi_f2ulz(float data); // NOLINT(misc-definitions-in-headers)
90 float __aeabi_l2f(int64_t data)
92 return static_cast<float>(data);
96 float __aeabi_ul2f(uint64_t data)
98 return static_cast<float>(data);
114 int64_t __aeabi_f2lz(float data)
120 uint64_t __aeabi_f2ulz(float data)
[all …]
/arkcompiler/runtime_core/runtime/
Dintrinsics.cpp46 uint8_t IsInfF32(float v) in IsInfF32()
61 float AbsF32(float v) in AbsF32()
71 float SinF32(float v) in SinF32()
81 float CosF32(float v) in CosF32()
91 float PowF32(float base, float exp) in PowF32()
101 float SqrtF32(float v) in SqrtF32()
121 float MinF32(float a, float b) in MinF32()
141 float MaxF32(float a, float b) in MaxF32()
192 void PrintF32(float v) in PrintF32()
322 float ConvertStringToF32(coretypes::String *s) in ConvertStringToF32()
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dfldai.64.yaml32 properties: [acc_write, float]
39 description: Check fldai.64 with various positive values (float and HEX literal).
85 properties: [acc_write, float]
93 description: Check fldai.64 with various negative values (float and HEX literal).
135 properties: [acc_write, float]
166 properties: [acc_write, float]
Dfmovi.64.yaml32 properties: [acc_none, float]
92 properties: [acc_none, float]
149 properties: [acc_none, float]
191 properties: [acc_none, float]
216 properties: [acc_none, float]
247 properties: [acc_none, float]
Dldai.yaml74 description: Check ldai with incorrect positive values (float).
79 description: Check ldai with incorrect positive values (float).
134 description: Check ldai with incorrect negative values (float).
139 description: Check ldai with incorrect negative values (float).
Dldai.64.yaml66 description: Check ldai.64 with incorrect positive values (float).
71 description: Check ldai.64 with incorrect positive values (float).
110 description: Check ldai.64 with incorrect negative values (float).
115 description: Check ldai.64 with incorrect negative values (float).
Dfldarr.32.yaml43 properties: [acc_read, acc_write, float]
65 properties: [acc_read, acc_write, float]
187 properties: [acc_read, acc_write, float]
233 properties: [acc_read, acc_write, float]
280 properties: [acc_read, acc_write, float]
339 properties: [acc_read, acc_write, float]
417 properties: [acc_read, acc_write, float]
491 properties: [acc_read, acc_write, float]
620 properties: [acc_read, acc_write, float]
644 properties: [acc_read, acc_write, float]
[all …]
Dfldarr.64.yaml43 properties: [acc_read, acc_write, float]
65 properties: [acc_read, acc_write, float]
187 properties: [acc_read, acc_write, float]
232 properties: [acc_read, acc_write, float]
279 properties: [acc_read, acc_write, float]
338 properties: [acc_read, acc_write, float]
416 properties: [acc_read, acc_write, float]
491 properties: [acc_read, acc_write, float]
620 properties: [acc_read, acc_write, float]
644 properties: [acc_read, acc_write, float]
[all …]
/arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch64/
Dlib_helpers.inl16 extern "C" float fmodf(float a, float b); // NOLINT(misc-definitions-in-headers,readability-identi…
/arkcompiler/runtime_core/compiler/optimizer/code_generator/target/amd64/
Dlib_helpers.inl17 extern "C" float fmodf(float a, float b); // NOLINT(misc-definitions-in-headers,readability-identi…
/arkcompiler/runtime_core/tests/cts-assembly/
Darrays-04.pa26 # properties: [acc_read, acc_write, float]
36 # properties: [acc_read, float]
40 #for(i=0; i<7; i++) array[i]=(float)i;
41 #for(i=6; i>=0; i--) assert_eq((float)i, array[i]);
/arkcompiler/runtime_core/libpandabase/tests/
Dmath_helpers_test.cpp75 ASSERT_EQ(0.0, panda::helpers::math::min<float>(0.0, 0.0));
76 ASSERT_EQ(1.0, panda::helpers::math::min<float>(1.0, 2.0));
78 ASSERT_EQ(0.0, panda::helpers::math::max<float>(0.0, 0.0));
79 ASSERT_EQ(2.0, panda::helpers::math::max<float>(2.0, 1.0));
/arkcompiler/ets_runtime/ecmascript/mem/
Dgc_stats.h60 float PrintTimeMilliseconds(uint64_t ms) in PrintTimeMilliseconds()
62 return (float)ms / THOUSAND; in PrintTimeMilliseconds()
65 float sizeToMB(size_t size) in sizeToMB()
67 return (float)size / 1_MB; in sizeToMB()
Dc_string.cpp52 float CStringToF(const CString &str) in CStringToF()
55 float result = std::strtof(str.c_str(), &endPtr); in CStringToF()
56 ASSERT(result != HUGE_VALF && "CString argument is not float"); in CStringToF()
57 ASSERT(!(result == 0 && str.c_str() == endPtr) && "CString argument is not float"); in CStringToF()
/arkcompiler/runtime_core/runtime/interpreter/
Dvregister.h115 ALWAYS_INLINE inline void Set(float value) in Set()
139 ALWAYS_INLINE inline float GetFloat() const in GetFloat()
141 return GetAs<float>(); in GetFloat()
168 template <typename M, std::enable_if_t<std::is_same_v<float, M>> * = nullptr>
169 ALWAYS_INLINE inline float GetAs() const in GetAs()
171 return bit_cast<float>(Get()); in GetAs()
227 // It can contain int/uint 8/16/32/64, float, double and ObjectHeader *.
278 ALWAYS_INLINE inline void SetPrimitive(float value) in SetPrimitive()
318 ALWAYS_INLINE inline void Set(float value) in Set()
343 ALWAYS_INLINE inline float GetFloat() const in GetFloat()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/code_generator/
Doperands.h56 // Constants for cast from float to int64:
57 // The number of the bit from which exponential part starts in float
59 // Size exponential part in float
61 // The maximum exponential part of float that can be loaded in int64
63 // Mask say that float number is NaN by IEEE 754
143 } else if constexpr (std::is_same<T, float>()) { in TypeInfo()
427 * Immediate class may hold only int or float values (maybe vectors in future).
454 // Immediate could be only signed (int/float) in CheckVariantID()
469 if constexpr (std::is_same<T, float>()) { in CheckVariantID()
534 value_ = static_cast<float>(std::get<float>(value_) + value); in Inc()
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dinst_generator_test.cpp200 if constexpr (std::is_same_v<T, float> || std::is_same_v<T, double>) { in FixParams()
213 if constexpr (std::is_same_v<T, float> || std::is_same_v<T, double>) { in FixParams()
230 if constexpr (std::is_same_v<T, float> || std::is_same_v<T, double>) { in FixParams()
251 if constexpr (std::is_same_v<T, float> || std::is_same_v<T, double>) { in FixParams()
268 if constexpr (std::is_same_v<T, float> || std::is_same_v<T, double>) { in FixParams()
455 … (std::is_same_v<param_type, float> || std::is_same_v<param_type, double>)) { in GenCast()
689 gen.GenCast<int8_t, float>(gen.GetRandValue()); in OneTestCast()
700 gen.GenCast<int16_t, float>(gen.GetRandValue()); in OneTestCast()
711 gen.GenCast<int32_t, float>(gen.GetRandValue()); in OneTestCast()
722 gen.GenCast<int64_t, float>(gen.GetRandValue()); in OneTestCast()
[all …]
/arkcompiler/ets_frontend/merge_abc/
DHowToWriteProtoForAssemblyStuff.md58 |float |float | 32位浮点数
231 std::variant<uint64_t, float, double, std::string, pandasm::Type, AnnotationData> value_;
238 float valueFloat = 3;
/arkcompiler/runtime_core/runtime/mem/
Dpanda_string.cpp44 float PandaStringToF(const PandaString &str) in PandaStringToF()
47 float result = std::strtof(str.c_str(), &end_ptr); in PandaStringToF()
48 ASSERT(result != HUGE_VALF && "PandaString argument is not float"); in PandaStringToF()
49 ASSERT(!(result == 0 && str.c_str() == end_ptr) && "PandaString argument is not float"); in PandaStringToF()
/arkcompiler/runtime_core/scripts/
Dmemusage.py181 entry.size = int(float(entry.size) / float(count))
182 entry.rss = int(float(entry.rss) / float(count))
183 entry.pss = int(float(entry.pss) / float(count))
/arkcompiler/runtime_core/runtime/tests/
Dmock_queue_thread_pool.cpp174 void TestThreadPool(size_t initial_number_of_threads, size_t scaled_number_of_threads, float scale_… in TestThreadPool()
192 …size_t rate = static_cast<size_t>((static_cast<float>(solved_tasks) / MockThreadPoolTest::TASK_NUM… in TestThreadPool()
213 constexpr float SCALE_THRESHOLD = 0.0; in TEST_F()
221 constexpr float SCALE_THRESHOLD = 0.25; in TEST_F()
229 constexpr float SCALE_THRESHOLD = 0.25; in TEST_F()
237 constexpr float SCALE_THRESHOLD = 1.0; in TEST_F()
299 …size_t rate = static_cast<size_t>((static_cast<float>(solved_tasks) / MockThreadPoolTest::TASK_NUM… in TestThreadPoolWithControllers()
/arkcompiler/runtime_core/runtime/bridge/arch/aarch64/
Dinterpreter_to_compiled_code_bridge_aarch64.S66 1: // it is a float arg
67 // determine whether there are free float regs
71 // there are free float regs
87 // 3. the part for the arguments passed via the float registers
131 // w4 - float arg counter, x5 - stack pointer, w11 - temp
147 cinc w4, w4, ls // inc FP regs counter if it's float
148 cinc w3, w3, hi // inc GP regs counter if it's not float
233 // x4 - float arg ptr, x5 - insn, x6 - insn_ptr, x7 - frame.vregs, x9 - arg base ptr
312 // store float value and tag into the acc
394 // x4 - float arg ptr, x6 - arg_ptr, x9 - arg base ptr, x10 - gpr arg ptr,
/arkcompiler/runtime_core/runtime/bridge/arch/amd64/
Dcompiled_code_to_interpreter_bridge_amd64.S122 // %rdx - gpr args, %rsi - float args, %rdi - stack args, %r8d - gpr arg counter,
123 // %r9d - float arg counter, %rcx, %r15 - temp, %r13 - iframe, %rbx - method,
184 // it is a float value
188 // the arg in a float reg
236 // result is a float value
Dinterpreter_to_compiled_code_bridge_amd64.S135 // it is a float arg
136 // determine whether there are free float regs
142 // there are free float regs
161 // 3. the part for the arguments passed via the float registers
205 // %edi - float arg counter, %rdx - stack pointer, %r9 - temp
238 // it is a float value
242 // there are free float registers
335 // %rdi - float arg ptr, %rbx - insn_ptr, %r12 - frame.vregs, %r8 - arg base ptr
397 jbe 1f // float
413 // store float value into acc
[all …]
/arkcompiler/runtime_core/runtime/include/
Dvalue-inl.h29 inline float Value::GetAs() const in GetAs()
31 return bit_cast<float>(GetAs<uint32_t>()); in GetAs()

12345678