Home
last modified time | relevance | path

Searched refs:lround (Results 1 – 25 of 74) sorted by relevance

123

/external/webrtc/api/test/metrics/
Dstdout_metrics_exporter.cc28 return std::lround(std::floor(std::abs(value))); in IntegralPart()
34 int64_t multiplier = std::lround(std::pow(10, digits_after_comma)); in AppendWithPrecision()
47 int64_t decimal_holder = std::lround((1 + decimal_part) * multiplier); in AppendWithPrecision()
/external/armnn/samples/common/src/CVUtils/
DCvVideoFrameReader.cpp42 return static_cast<int>(lround(m_capture.get(cv::CAP_PROP_FRAME_WIDTH))); in GetSourceWidth()
47 return static_cast<int>(lround(m_capture.get(cv::CAP_PROP_FRAME_HEIGHT))); in GetSourceHeight()
76 return static_cast<int>(lround(m_capture.get(cv::CAP_PROP_FRAME_COUNT))); in GetFrameCount()
/external/ComputeLibrary/support/
DToolchainSupport.h85 inline long lround(T value) in lround() function
87 return ::lround(value); in lround()
200 inline long lround(T value)
202 return std::lround(value);
/external/armnn/samples/ObjectDetection/src/
DSSDResultDecoder.cpp27 const int numDetections = static_cast<int>(std::lround(networkResults[3][0])); in Decode()
39 auto classId = std::lround(networkResults[1][i]); in Decode()
/external/harfbuzz_ng/util/
Dansi-print.hh45 lround (double x) in lround() function
203 (*this)(x, y) = d <= 0 ? 0 : d >= dd ? 255 : lround (d / dd * 255.); in set()
300 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.height); in block_best()
332 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.width); in block_best()
/external/ComputeLibrary/src/cpu/kernels/add/generic/neon/
Dimpl.cpp209 …const auto in0_scale_5p11 = static_cast<int16_t>(support::cpp11::lround(in0_scale * _2pow11)); in add_sub_q8_neon_fixedpoint()
210 …const auto in1_scale_5p11 = static_cast<int16_t>(support::cpp11::lround(in1_scale * _2pow11)); in add_sub_q8_neon_fixedpoint()
211 const auto offset_21p11 = static_cast<int32_t>(support::cpp11::lround(offset * _2pow11)); in add_sub_q8_neon_fixedpoint()
249 …const auto b_scaled_21p11 = static_cast<int32_t>(support::cpp11::lround(b_scaled * _2pow… in add_sub_q8_neon_fixedpoint()
298 …out_ptr[x] = utility::clamp<int, ScalarType>(support::cpp11::lround(float(a_ptr[x]) * a_scale + b_… in add_sub_q8_neon_fixedpoint()
374 …out_ptr[x] = utility::clamp<int, ScalarType>(support::cpp11::lround(float(in0_ptr[x]) * in0_scale … in add_sub_q8_neon_fixedpoint()
477 output_ptr[x] = utility::clamp<int, uint8_t>(support::cpp11::lround(result)); in add_sub_qasymm8_neon()
555 output_ptr[x] = utility::clamp<int, uint8_t>(support::cpp11::lround(result)); in add_sub_qasymm8_neon()
660 output_ptr[x] = utility::clamp<int, int8_t>(support::cpp11::lround(result)); in add_sub_qasymm8_signed_neon()
738 output_ptr[x] = utility::clamp<int, int8_t>(support::cpp11::lround(result)); in add_sub_qasymm8_signed_neon()
/external/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h141 __DEVICE__ long lround(double);
142 __DEVICE__ long lround(float);
237 using ::lround;
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/numerics/c.math/
Dconstexpr-cxx2b-clang.pass.cpp125 ASSERT_NOT_CONSTEXPR_CXX23(std::lround(1.0f) == 1L); in main()
126 ASSERT_NOT_CONSTEXPR_CXX23(std::lround(1.0) == 1L); in main()
127 ASSERT_NOT_CONSTEXPR_CXX23(std::lround(1.0L) == 1L); in main()
Dconstexpr-cxx2b-gcc.pass.cpp122 ASSERT_NOT_CONSTEXPR_CXX23(std::lround(1.0f) == 1L); in main()
123 ASSERT_CONSTEXPR_CXX23(std::lround(1.0) == 1L); in main()
124 ASSERT_NOT_CONSTEXPR_CXX23(std::lround(1.0L) == 1L); in main()
/external/musl/src/math/
Dlround.c3 long lround(double x) in lround() function
/external/musl/src/math/aarch64/
Dlround.c3 long lround(double x) in lround() function
/external/musl/src/math/powerpc64/
Dlround.c5 long lround(double x) in lround() function
/external/openscreen/util/
Dsaturate_cast.h137 if (sizeof(To) <= sizeof(decltype(lround(from)))) { in rounded_saturate_cast()
138 return static_cast<To>(lround(from)); in rounded_saturate_cast()
/external/angle/src/libANGLE/renderer/d3d/d3d11/winrt/
DInspectableNativeWindow.cpp295 return {0, 0, lround(size.Width * mSwapChainScale), lround(size.Height * mSwapChainScale)}; in clientRect()
/external/musl/include/
Dtgmath.h188 #undef lround
251 #define lround(x) __tg_real_nocast(lround, (x)) macro
/external/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
DIntrinsicEnums.inc96 experimental_constrained_lround, // llvm.experimental.constrained.lround
170 lround, // llvm.lround
/external/libcxx/test/std/depr/depr.c.headers/
Dmath_h.pass.cpp88 Ambiguous lround(Ambiguous){ return Ambiguous(); } in lround() function
1221 static_assert((std::is_same<decltype(lround((float)0)), long>::value), ""); in test_lround()
1222 static_assert((std::is_same<decltype(lround((bool)0)), long>::value), ""); in test_lround()
1223 static_assert((std::is_same<decltype(lround((unsigned short)0)), long>::value), ""); in test_lround()
1224 static_assert((std::is_same<decltype(lround((int)0)), long>::value), ""); in test_lround()
1225 static_assert((std::is_same<decltype(lround((unsigned int)0)), long>::value), ""); in test_lround()
1226 static_assert((std::is_same<decltype(lround((long)0)), long>::value), ""); in test_lround()
1227 static_assert((std::is_same<decltype(lround((unsigned long)0)), long>::value), ""); in test_lround()
1228 static_assert((std::is_same<decltype(lround((long long)0)), long>::value), ""); in test_lround()
1229 static_assert((std::is_same<decltype(lround((unsigned long long)0)), long>::value), ""); in test_lround()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/depr/depr.c.headers/
Dmath_h.pass.cpp89 Ambiguous lround(Ambiguous){ return Ambiguous(); } in lround() function
601 ASSERT_SAME_TYPE(decltype(lround(Ambiguous())), Ambiguous); in test_lround()
602 assert(lround(1) == 1L); in test_lround()
806 ASSERT_SAME_TYPE(decltype(::lround(T())), long); in operator ()()
807 (void)::lround(T()); in operator ()()
/external/clang/test/CodeGen/
Dlibcall-declarations.c133 long int lround(double);
288 F(lrint), F(lrintf), F(lrintl), F(lround), F(lroundf),
/external/libcxx/test/std/numerics/c.math/
Dcmath.pass.cpp91 Ambiguous lround(Ambiguous){ return Ambiguous(); } in lround() function
1272 static_assert((std::is_same<decltype(std::lround((float)0)), long>::value), ""); in test_lround()
1273 static_assert((std::is_same<decltype(std::lround((bool)0)), long>::value), ""); in test_lround()
1274 static_assert((std::is_same<decltype(std::lround((unsigned short)0)), long>::value), ""); in test_lround()
1275 static_assert((std::is_same<decltype(std::lround((int)0)), long>::value), ""); in test_lround()
1276 static_assert((std::is_same<decltype(std::lround((unsigned int)0)), long>::value), ""); in test_lround()
1277 static_assert((std::is_same<decltype(std::lround((long)0)), long>::value), ""); in test_lround()
1278 static_assert((std::is_same<decltype(std::lround((unsigned long)0)), long>::value), ""); in test_lround()
1279 static_assert((std::is_same<decltype(std::lround((long long)0)), long>::value), ""); in test_lround()
1280 static_assert((std::is_same<decltype(std::lround((unsigned long long)0)), long>::value), ""); in test_lround()
[all …]
/external/iptables/extensions/
Dlibxt_statistic.c69 info->u.random.probability = lround(0x80000000 * cb->val.dbl); in statistic_parse()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/numerics/c.math/
Dcmath.pass.cpp91 Ambiguous lround(Ambiguous){ return Ambiguous(); } in lround() function
1332 static_assert((std::is_same<decltype(std::lround((float)0)), long>::value), ""); in test_lround()
1333 static_assert((std::is_same<decltype(std::lround((bool)0)), long>::value), ""); in test_lround()
1334 static_assert((std::is_same<decltype(std::lround((unsigned short)0)), long>::value), ""); in test_lround()
1335 static_assert((std::is_same<decltype(std::lround((int)0)), long>::value), ""); in test_lround()
1336 static_assert((std::is_same<decltype(std::lround((unsigned int)0)), long>::value), ""); in test_lround()
1337 static_assert((std::is_same<decltype(std::lround((long)0)), long>::value), ""); in test_lround()
1338 static_assert((std::is_same<decltype(std::lround((unsigned long)0)), long>::value), ""); in test_lround()
1339 static_assert((std::is_same<decltype(std::lround((long long)0)), long>::value), ""); in test_lround()
1340 static_assert((std::is_same<decltype(std::lround((unsigned long long)0)), long>::value), ""); in test_lround()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstrainedOps.def69 FUNCTION(lround, 1, 0, experimental_constrained_lround, LROUND)
/external/flac/src/libFLAC/
DCMakeLists.txt7 check_function_exists(lround HAVE_LROUND)
/external/drm_hwcomposer/hwc2_device/
DHwcLayer.cpp112 layer_data_.pi.alpha = std::lround(alpha * UINT16_MAX); in SetLayerPlaneAlpha()

123