Home
last modified time | relevance | path

Searched refs:roundf (Results 1 – 25 of 41) sorted by relevance

12

/aosp12/frameworks/base/libs/hwui/
H A DPropertyValuesHolder.cpp44 *outColor = SkColorSetARGB((U8CPU)roundf(a * 255.0f), (U8CPU)roundf(OECF_sRGB(r) * 255.0f), in evaluate()
45 (U8CPU)roundf(OECF_sRGB(g) * 255.0f), in evaluate()
46 (U8CPU)roundf(OECF_sRGB(b) * 255.0f)); in evaluate()
H A DLayer.cpp57 return MathUtils::isZero(roundf(x) - x); in isIntegerAligned()
/aosp12/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dnumeric.h68 return vec2i(roundf(v.x()), roundf(v.y())); in Round()
72 return vec2i(roundf(static_cast<float>(v.x()) * scale), in Scale()
73 roundf(static_cast<float>(v.y()) * scale)); in Scale()
/aosp12/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/
H A Dmlmath.h23 #define roundf(x)(((float )((long long)((x)>0?(x)+.5f:(x)-.5f)))) macro
59 #define roundf(x) (((float )((long long)((x)>0?(x)+.5f:(x)-.5f)))) macro
/aosp12/hardware/invensense/6515/libsensors_iio/software/core/driver/include/
H A Dmlmath.h23 #define roundf(x)(((float )((long long)((x)>0?(x)+.5f:(x)-.5f)))) macro
59 #define roundf(x) (((float )((long long)((x)>0?(x)+.5f:(x)-.5f)))) macro
/aosp12/frameworks/base/libs/hwui/jni/
H A DRegion.cpp162 dst->fLeft = (int)::roundf(src.fLeft * scale); in scale_rect()
163 dst->fTop = (int)::roundf(src.fTop * scale); in scale_rect()
164 dst->fRight = (int)::roundf(src.fRight * scale); in scale_rect()
165 dst->fBottom = (int)::roundf(src.fBottom * scale); in scale_rect()
/aosp12/bionic/libm/upstream-freebsd/lib/msun/src/
H A Ds_llroundf.c5 #define roundit roundf
H A Ds_lroundf.c5 #define roundit roundf
H A Ds_roundf.c36 roundf(float x) in roundf() function
/aosp12/hardware/qcom/display/msm8084/libhwcomposer/
H A Dhwc_utils.h214 if(cropF.left - roundf(cropF.left) || in isNonIntegralSourceCrop()
215 cropF.top - roundf(cropF.top) || in isNonIntegralSourceCrop()
216 cropF.right - roundf(cropF.right) || in isNonIntegralSourceCrop()
217 cropF.bottom - roundf(cropF.bottom)) in isNonIntegralSourceCrop()
/aosp12/system/media/audio_utils/include/audio_utils/
H A Dprimitives.h807 return roundf(fmaxf(fminf(f * scale, scale - 1.f), -scale)); in clamp16_from_float()
851 return roundf(fmaxf(fminf(f * 128.f + 128.f, 255.f), 0.f)); in clamp8_from_float()
904 return roundf(fmaxf(fminf(f * scale, scale - 1.f), -scale)); in clamp24_from_float()
/aosp12/hardware/qcom/display/msm8226/libhwcomposer/
H A Dhwc_utils.h239 if(cropF.left - roundf(cropF.left) || in isNonIntegralSourceCrop()
240 cropF.top - roundf(cropF.top) || in isNonIntegralSourceCrop()
241 cropF.right - roundf(cropF.right) || in isNonIntegralSourceCrop()
242 cropF.bottom - roundf(cropF.bottom)) in isNonIntegralSourceCrop()
/aosp12/hardware/qcom/display/msm8994/libhwcomposer/
H A Dhwc_utils.h289 if(cropF.left - roundf(cropF.left) || in isNonIntegralSourceCrop()
290 cropF.top - roundf(cropF.top) || in isNonIntegralSourceCrop()
291 cropF.right - roundf(cropF.right) || in isNonIntegralSourceCrop()
292 cropF.bottom - roundf(cropF.bottom)) in isNonIntegralSourceCrop()
/aosp12/bionic/libm/
H A Dbuiltins.cpp67 float roundf(float x) { return __builtin_roundf(x); } in roundf() function
/aosp12/hardware/qcom/display/msm8909/sdm/libs/hwc2/
H A Dhwc_layers.cpp415 non_integral_source_crop_ = ((crop.left != roundf(crop.left)) || in SetLayerSourceCrop()
416 (crop.top != roundf(crop.top)) || in SetLayerSourceCrop()
417 (crop.right != roundf(crop.right)) || in SetLayerSourceCrop()
418 (crop.bottom != roundf(crop.bottom))); in SetLayerSourceCrop()
/aosp12/bionic/tests/
H A Dmath_test.cpp1212 TEST(MATH_TEST, roundf) { in TEST() argument
1215 ASSERT_FLOAT_EQ(1.0f, roundf(0.5f)); in TEST()
1216 ASSERT_FLOAT_EQ(-1.0f, roundf(-0.5f)); in TEST()
1217 ASSERT_FLOAT_EQ(0.0f, roundf(0.0f)); in TEST()
1218 ASSERT_FLOAT_EQ(-0.0f, roundf(-0.0f)); in TEST()
1219 ASSERT_TRUE(isnanf(roundf(nanf("")))); in TEST()
1220 ASSERT_FLOAT_EQ(HUGE_VALF, roundf(HUGE_VALF)); in TEST()
1221 ASSERT_FLOAT_EQ(-HUGE_VALF, roundf(-HUGE_VALF)); in TEST()
2094 DoMathDataTest<1>(g_roundf_intel_data, roundf); in TEST()
/aosp12/hardware/qcom/display/msm8909/sdm/libs/core/
H A Dresource_default.cpp683 ((src.left - roundf(src.left) != 0.0f) || in ValidateLayerParams()
684 (src.top - roundf(src.top) != 0.0f) || in ValidateLayerParams()
685 (src.right - roundf(src.right) != 0.0f) || in ValidateLayerParams()
686 (src.bottom - roundf(src.bottom) != 0.0f))) { in ValidateLayerParams()
/aosp12/hardware/qcom/display/msm8909w_3100/sdm/libs/core/
H A Dresource_default.cpp683 ((src.left - roundf(src.left) != 0.0f) || in ValidateLayerParams()
684 (src.top - roundf(src.top) != 0.0f) || in ValidateLayerParams()
685 (src.right - roundf(src.right) != 0.0f) || in ValidateLayerParams()
686 (src.bottom - roundf(src.bottom) != 0.0f))) { in ValidateLayerParams()
/aosp12/hardware/qcom/display/msm8996/sdm/libs/core/
H A Dresource_default.cpp646 ((src.left - roundf(src.left) != 0.0f) || in ValidateLayerParams()
647 (src.top - roundf(src.top) != 0.0f) || in ValidateLayerParams()
648 (src.right - roundf(src.right) != 0.0f) || in ValidateLayerParams()
649 (src.bottom - roundf(src.bottom) != 0.0f))) { in ValidateLayerParams()
/aosp12/hardware/qcom/display/msm8998/sdm/libs/core/
H A Dresource_default.cpp683 ((src.left - roundf(src.left) != 0.0f) || in ValidateLayerParams()
684 (src.top - roundf(src.top) != 0.0f) || in ValidateLayerParams()
685 (src.right - roundf(src.right) != 0.0f) || in ValidateLayerParams()
686 (src.bottom - roundf(src.bottom) != 0.0f))) { in ValidateLayerParams()
/aosp12/hardware/qcom/sdm845/display/sdm/libs/core/
H A Dresource_default.cpp684 ((src.left - roundf(src.left) != 0.0f) || in ValidateLayerParams()
685 (src.top - roundf(src.top) != 0.0f) || in ValidateLayerParams()
686 (src.right - roundf(src.right) != 0.0f) || in ValidateLayerParams()
687 (src.bottom - roundf(src.bottom) != 0.0f))) { in ValidateLayerParams()
/aosp12/hardware/qcom/sdm845/display/sdm/libs/hwc2/
H A Dhwc_layers.cpp464 non_integral_source_crop_ = ((crop.left != roundf(crop.left)) || in SetLayerSourceCrop()
465 (crop.top != roundf(crop.top)) || in SetLayerSourceCrop()
466 (crop.right != roundf(crop.right)) || in SetLayerSourceCrop()
467 (crop.bottom != roundf(crop.bottom))); in SetLayerSourceCrop()
/aosp12/hardware/qcom/sm7250/display/sdm/libs/core/
H A Dresource_default.cpp672 ((src.left - roundf(src.left) != 0.0f) || in ValidateLayerParams()
673 (src.top - roundf(src.top) != 0.0f) || in ValidateLayerParams()
674 (src.right - roundf(src.right) != 0.0f) || in ValidateLayerParams()
675 (src.bottom - roundf(src.bottom) != 0.0f))) { in ValidateLayerParams()
/aosp12/hardware/qcom/sm8150/display/sdm/libs/core/
H A Dresource_default.cpp675 ((src.left - roundf(src.left) != 0.0f) || in ValidateLayerParams()
676 (src.top - roundf(src.top) != 0.0f) || in ValidateLayerParams()
677 (src.right - roundf(src.right) != 0.0f) || in ValidateLayerParams()
678 (src.bottom - roundf(src.bottom) != 0.0f))) { in ValidateLayerParams()
/aosp12/packages/modules/NeuralNetworks/common/operations/
H A DResizeImageOps.cpp85 int inY = std::min((alignCorners) ? static_cast<int>(roundf(scaler(y, heightScale))) in resizeNearestNeighbor()
92 int inX = std::min((alignCorners) ? static_cast<int>(roundf(scaler(x, widthScale))) in resizeNearestNeighbor()

12