/external/llvm-project/libc/test/src/math/ |
D | roundf_test.cpp | 23 EXPECT_FP_EQ(zero, __llvm_libc::roundf(zero)); in TEST() 24 EXPECT_FP_EQ(negZero, __llvm_libc::roundf(negZero)); in TEST() 26 EXPECT_FP_EQ(inf, __llvm_libc::roundf(inf)); in TEST() 27 EXPECT_FP_EQ(negInf, __llvm_libc::roundf(negInf)); in TEST() 30 ASSERT_NE(isnan(__llvm_libc::roundf(nan)), 0); in TEST() 34 EXPECT_FP_EQ(1.0f, __llvm_libc::roundf(1.0f)); in TEST() 35 EXPECT_FP_EQ(-1.0f, __llvm_libc::roundf(-1.0f)); in TEST() 36 EXPECT_FP_EQ(10.0f, __llvm_libc::roundf(10.0f)); in TEST() 37 EXPECT_FP_EQ(-10.0f, __llvm_libc::roundf(-10.0f)); in TEST() 38 EXPECT_FP_EQ(1234.0f, __llvm_libc::roundf(1234.0f)); in TEST() [all …]
|
/external/harfbuzz_ng/src/ |
D | test-number.cc | 146 assert ((int) roundf (pv * 1000.) == 123); in main() 152 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main() 163 assert ((int) roundf (pv * 1000.) == 123); in main() 168 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main() 179 assert ((int) roundf (pv * 1000.) == 123); in main() 184 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main() 195 assert ((int) roundf (pv * 1000.) == 123); in main() 200 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main() 211 assert ((int) roundf (pv * 1000.) == 123); in main() 216 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main() [all …]
|
D | hb-ot-color-cbdt-table.hh | 447 extents->x_bearing = roundf (extents->x_bearing * x_scale); in get_extents() 448 extents->y_bearing = roundf (extents->y_bearing * y_scale); in get_extents() 449 extents->width = roundf (extents->width * x_scale); in get_extents() 450 extents->height = roundf (extents->height * y_scale); in get_extents()
|
/external/rust/crates/libm/src/math/ |
D | roundf.rs | 6 pub fn roundf(mut x: f32) -> f32 { in roundf() function 38 use super::roundf; 42 assert_eq!(roundf(-0.0_f32).to_bits(), (-0.0_f32).to_bits()); in negative_zero()
|
D | mod.rs | 158 mod roundf; module 272 pub use self::roundf::roundf;
|
/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/ |
D | round.ll | 3 declare float @roundf(float) #0 11 %x = call float @roundf(float 1.25) #0 25 %x = call float @roundf(float 1.5) #0 39 %x = call float @roundf(float 2.75) #0
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | resize_nearest_neighbor_op_gpu.cu.cc | 82 min((align_corners) ? static_cast<int>(roundf(out_y * height_scale)) in LegacyResizeNearestNeighborNHWC() 86 min((align_corners) ? static_cast<int>(roundf(out_x * width_scale)) in LegacyResizeNearestNeighborNHWC() 142 min((align_corners) ? static_cast<int>(roundf(in_y * height_scale)) in LegacyResizeNearestNeighborBackwardNHWC() 146 min((align_corners) ? static_cast<int>(roundf(in_x * width_scale)) in LegacyResizeNearestNeighborBackwardNHWC()
|
/external/libaom/libaom/av1/encoder/ |
D | pickcdef.c | 335 predicted_y_f1 = clamp((int)roundf(q * q * -0.0000023593946f + in pick_cdef_from_qp() 338 predicted_y_f2 = clamp((int)roundf(q * q * -0.00000057629734f + in pick_cdef_from_qp() 341 predicted_uv_f1 = clamp((int)roundf(q * q * -0.0000007095069f + in pick_cdef_from_qp() 344 predicted_uv_f2 = clamp((int)roundf(q * q * 0.00000023874085f + in pick_cdef_from_qp() 349 (int)roundf(q * q * 0.0000033731974f + q * 0.008070594f + 0.0187634f), in pick_cdef_from_qp() 352 (int)roundf(q * q * 0.0000029167343f + q * 0.0027798624f + 0.0079405f), in pick_cdef_from_qp() 355 (int)roundf(q * q * -0.0000130790995f + q * 0.012892405f - 0.00748388f), in pick_cdef_from_qp() 357 predicted_uv_f2 = clamp((int)roundf(q * q * 0.0000032651783f + in pick_cdef_from_qp()
|
/external/llvm/test/CodeGen/ARM/ |
D | arm32-round-conv.ll | 80 %call = call float @roundf(float %a) nounwind readnone 89 %call = call float @roundf(float %a) nounwind readnone 116 declare float @roundf(float) nounwind readnone
|
/external/llvm-project/llvm/test/CodeGen/ARM/ |
D | arm32-round-conv.ll | 80 %call = call float @roundf(float %a) nounwind readnone 89 %call = call float @roundf(float %a) nounwind readnone 116 declare float @roundf(float) nounwind readnone
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_msaa.c | 86 loc = roundf(CLAMP(x * 16.0f, 0.0f, 15.0f)); in update_sample_locations() 87 loc |= (int)roundf(CLAMP(y * 16.0f, 0.0f, 15.0f)) << 4; in update_sample_locations()
|
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/simple_features/fixed_point/ |
D | simple_features_generator.cc | 68 return static_cast<int32_t>(roundf(input * (1 << 30))); in FloatToFixed_Q2_30() 112 int tmp = static_cast<int32_t>(roundf(real_value * (1 << 15))); in CalculatePeriodicHann()
|
/external/llvm-project/libc/fuzzing/math/ |
D | math_differential_fuzz.cpp | 85 SingleInputSingleOutputDiff<float>(&__llvm_libc::roundf, &::roundf, data, in LLVMFuzzerTestOneInput()
|
/external/llvm/test/Transforms/InstCombine/ |
D | float-shrink-compare.ll | 73 ; CHECK-NEXT: %roundf = call float @roundf(float %x) 74 ; CHECK-NEXT: fcmp oeq float %roundf, %y 157 ; CHECK-NEXT: %roundf = call float @roundf(float %x) 158 ; CHECK-NEXT: fcmp oeq float %roundf, %y
|
D | double-float-shrink-2.ll | 10 ; DO-SIMPLIFY: call float @roundf( 52 ; --> roundf
|
/external/llvm-project/libc/src/math/ |
D | roundf.h | 14 float roundf(float x);
|
D | roundf.cpp | 14 float LLVM_LIBC_ENTRYPOINT(roundf)(float x) { return fputil::round(x); } in LLVM_LIBC_ENTRYPOINT() argument
|
/external/skqp/samplecode/ |
D | SampleRegion.cpp | 121 dst->fLeft = (int)::roundf(src.fLeft * scale); in scale_rect() 122 dst->fTop = (int)::roundf(src.fTop * scale); in scale_rect() 123 dst->fRight = (int)::roundf(src.fRight * scale); in scale_rect() 124 dst->fBottom = (int)::roundf(src.fBottom * scale); in scale_rect()
|
/external/llvm-project/llvm/test/CodeGen/AArch64/ |
D | arm64-rounding.ll | 114 %call = tail call float @roundf(float %a) nounwind readnone 118 declare float @roundf(float %a) nounwind readnone 190 %call = tail call float @roundf(float %a) nounwind readnone
|
D | round-conv.ll | 248 %call = call float @roundf(float %a) nounwind readnone 258 %call = call float @roundf(float %a) nounwind readnone 288 %call = call float @roundf(float %a) nounwind readnone 298 %call = call float @roundf(float %a) nounwind readnone 329 declare float @roundf(float) nounwind readnone
|
/external/llvm/test/CodeGen/AArch64/ |
D | arm64-rounding.ll | 114 %call = tail call float @roundf(float %a) nounwind readnone 118 declare float @roundf(float %a) nounwind readnone 190 %call = tail call float @roundf(float %a) nounwind readnone
|
D | round-conv.ll | 248 %call = call float @roundf(float %a) nounwind readnone 258 %call = call float @roundf(float %a) nounwind readnone 288 %call = call float @roundf(float %a) nounwind readnone 298 %call = call float @roundf(float %a) nounwind readnone 329 declare float @roundf(float) nounwind readnone
|
/external/llvm/test/CodeGen/PowerPC/ |
D | rounding-ops.ll | 31 %call = tail call float @roundf(float %x) nounwind readnone 40 declare float @roundf(float) nounwind readnone
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_util.h | 53 ? roundf(brw->ctx.Line.Width) : brw->ctx.Line.Width, in brw_get_line_width()
|
/external/llvm-project/llvm/test/CodeGen/PowerPC/ |
D | rounding-ops.ll | 31 %call = tail call float @roundf(float %x) nounwind readnone 40 declare float @roundf(float) nounwind readnone
|