Home
last modified time | relevance | path

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

1234567

/external/llvm-project/libc/test/src/math/
Droundf_test.cpp23 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/
Dtest-number.cc146 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 …]
Dhb-ot-color-cbdt-table.hh447 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/
Droundf.rs6 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()
Dmod.rs158 mod roundf; module
272 pub use self::roundf::roundf;
/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/
Dround.ll3 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/
Dresize_nearest_neighbor_op_gpu.cu.cc82 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()
Dcrop_and_resize_op_gpu.cu.cc121 const int closest_x_index = roundf(in_x); in CropAndResizeKernel()
122 const int closest_y_index = roundf(in_y); in CropAndResizeKernel()
216 const int closest_x_index = roundf(in_x); in CropAndResizeBackpropImageKernel()
217 const int closest_y_index = roundf(in_y); in CropAndResizeBackpropImageKernel()
/external/libaom/libaom/av1/encoder/
Dpickcdef.c335 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/
Darm32-round-conv.ll80 %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/
Darm32-round-conv.ll80 %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/
Dst_atom_msaa.c86 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/
Dsimple_features_generator.cc68 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/
Dmath_differential_fuzz.cpp85 SingleInputSingleOutputDiff<float>(&__llvm_libc::roundf, &::roundf, data, in LLVMFuzzerTestOneInput()
/external/llvm/test/Transforms/InstCombine/
Dfloat-shrink-compare.ll73 ; 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
/external/skqp/samplecode/
DSampleRegion.cpp121 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/
Dround-conv.ll248 %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
Darm64-rounding.ll114 %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
/external/llvm/test/CodeGen/AArch64/
Dround-conv.ll248 %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
Darm64-rounding.ll114 %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
/external/llvm-project/libc/src/math/
Droundf.h14 float roundf(float x);
Droundf.cpp14 float LLVM_LIBC_ENTRYPOINT(roundf)(float x) { return fputil::round(x); } in LLVM_LIBC_ENTRYPOINT() argument
/external/llvm/test/CodeGen/PowerPC/
Drounding-ops.ll31 %call = tail call float @roundf(float %x) nounwind readnone
40 declare float @roundf(float) nounwind readnone
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_util.h53 ? roundf(brw->ctx.Line.Width) : brw->ctx.Line.Width, in brw_get_line_width()
/external/llvm-project/llvm/test/CodeGen/PowerPC/
Drounding-ops.ll31 %call = tail call float @roundf(float %x) nounwind readnone
40 declare float @roundf(float) nounwind readnone

1234567