/aosp12/frameworks/base/libs/hwui/ |
H A D | PropertyValuesHolder.cpp | 44 *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 D | Layer.cpp | 57 return MathUtils::isZero(roundf(x) - x); in isIntegerAligned()
|
/aosp12/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | numeric.h | 68 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 D | mlmath.h | 23 #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 D | mlmath.h | 23 #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 D | Region.cpp | 162 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 D | s_llroundf.c | 5 #define roundit roundf
|
H A D | s_lroundf.c | 5 #define roundit roundf
|
H A D | s_roundf.c | 36 roundf(float x) in roundf() function
|
/aosp12/hardware/qcom/display/msm8084/libhwcomposer/ |
H A D | hwc_utils.h | 214 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 D | primitives.h | 807 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 D | hwc_utils.h | 239 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 D | hwc_utils.h | 289 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 D | builtins.cpp | 67 float roundf(float x) { return __builtin_roundf(x); } in roundf() function
|
/aosp12/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
H A D | hwc_layers.cpp | 415 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 D | math_test.cpp | 1212 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 D | resource_default.cpp | 683 ((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 D | resource_default.cpp | 683 ((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 D | resource_default.cpp | 646 ((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 D | resource_default.cpp | 683 ((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 D | resource_default.cpp | 684 ((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 D | hwc_layers.cpp | 464 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 D | resource_default.cpp | 672 ((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 D | resource_default.cpp | 675 ((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 D | ResizeImageOps.cpp | 85 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()
|