/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/ |
D | resize_grad.c | 35 …(align_corners) ? (size_t)roundf(in_y * param->height_scale_) : (size_t)floorf(in_y * param->heigh… in ResizeNearestNeighborGrad() 38 …(align_corners) ? (size_t)roundf(in_x * param->width_scale_) : (size_t)floorf(in_x * param->width_… in ResizeNearestNeighborGrad() 53 …MSMIN((align_corners) ? (size_t)roundf(h * param->height_scale_) : (size_t)floorf(h * param->heigh… in ResizeNearestNeighborGrad() 57 …MSMIN((align_corners) ? (size_t)roundf(w * param->width_scale_) : (size_t)floorf(w * param->width_… in ResizeNearestNeighborGrad() 83 size_t top_y_index = MSMAX((size_t)(floorf(in_y)), (size_t)(0)); in ResizeBiLinearGrad() 85 float y_lerp = in_y - floorf(in_y); in ResizeBiLinearGrad() 89 size_t left_x_index = MSMAX((size_t)(floorf(in_x)), (size_t)(0)); in ResizeBiLinearGrad() 91 float x_lerp = in_x - floorf(in_x); in ResizeBiLinearGrad() 123 const size_t top_y_index = MSMAX((size_t)floorf(in_y), 0); in ResizeBiLinearGrad() 125 const float y_lerp = in_y - floorf(in_y); in ResizeBiLinearGrad() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/ |
D | resize_grad.c | 34 …(align_corners) ? (size_t)roundf(in_y * param->height_scale_) : (size_t)floorf(in_y * param->heigh… in ResizeNearestNeighborFp16Grad() 37 …(align_corners) ? (size_t)roundf(in_x * param->width_scale_) : (size_t)floorf(in_x * param->width_… in ResizeNearestNeighborFp16Grad() 52 …MSMIN((align_corners) ? (size_t)roundf(h * param->height_scale_) : (size_t)floorf(h * param->heigh… in ResizeNearestNeighborFp16Grad() 56 …MSMIN((align_corners) ? (size_t)roundf(w * param->width_scale_) : (size_t)floorf(w * param->width_… in ResizeNearestNeighborFp16Grad() 82 size_t top_y_index = MSMAX((size_t)(floorf(in_y)), (size_t)(0)); in ResizeBiLinearFp16Grad() 84 float16_t y_lerp = in_y - floorf(in_y); in ResizeBiLinearFp16Grad() 88 size_t left_x_index = MSMAX((size_t)(floorf(in_x)), (size_t)(0)); in ResizeBiLinearFp16Grad() 90 float16_t x_lerp = in_x - floorf(in_x); in ResizeBiLinearFp16Grad() 120 const size_t top_y_index = MSMAX((size_t)floorf(in_y), 0); in ResizeBiLinearFp16Grad() 122 const float16_t y_lerp = in_y - floorf(in_y); in ResizeBiLinearFp16Grad() [all …]
|
/third_party/musl/src/math/i386/ |
D | floor.s | 1 .global floorf symbol 2 .type floorf,@function 3 floorf: label
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | PointSpritesTest.cpp | 55 maxPointSize = floorf(maxPointSize); in testPointCoordAndPointSizeCompliance() 60 GLint step = static_cast<GLint>(floorf(maxPointSize / 4)); in testPointCoordAndPointSizeCompliance() 105 int xf = static_cast<int>(floorf(s2p(pointX + u * pointWidth))); in testPointCoordAndPointSizeCompliance() 106 int yf = static_cast<int>(floorf(s2p(pointY + v * pointWidth))); in testPointCoordAndPointSizeCompliance() 109 GLubyte color[4] = {static_cast<GLubyte>(floorf(s * 255)), in testPointCoordAndPointSizeCompliance() 110 static_cast<GLubyte>(floorf((1 - t) * 255)), 0, 255}; in testPointCoordAndPointSizeCompliance() 505 GLfloat testPointSize = floorf(maxPointSize * 2.0f); in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | PointSpritesTest.cpp | 54 maxPointSize = floorf(maxPointSize); in testPointCoordAndPointSizeCompliance() 59 GLint step = static_cast<GLint>(floorf(maxPointSize / 4)); in testPointCoordAndPointSizeCompliance() 104 int xf = static_cast<int>(floorf(s2p(pointX + u * pointWidth))); in testPointCoordAndPointSizeCompliance() 105 int yf = static_cast<int>(floorf(s2p(pointY + v * pointWidth))); in testPointCoordAndPointSizeCompliance() 108 GLubyte color[4] = {static_cast<GLubyte>(floorf(s * 255)), in testPointCoordAndPointSizeCompliance() 109 static_cast<GLubyte>(floorf((1 - t) * 255)), 0, 255}; in testPointCoordAndPointSizeCompliance() 490 GLfloat testPointSize = floorf(maxPointSize * 2.0f); in TEST_P()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/sponge/common/ |
D | map_center_of_mass_impl.cu | 28 trans_vec.x = com.x - floorf(com.x / box_length[0].x) * box_length[0].x; in Map_Center_Of_Mass() 29 trans_vec.y = com.y - floorf(com.y / box_length[0].y) * box_length[0].y; in Map_Center_Of_Mass() 30 trans_vec.z = com.z - floorf(com.z / box_length[0].z) * box_length[0].z; in Map_Center_Of_Mass()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/ |
D | resize_bilinear_impl.cu | 32 const int w_low = max(static_cast<int>(floorf(posw_scaled)), 0); // NOLINT in ResizeBilinear() 34 const int h_low = max(static_cast<int>(floorf(posh_scaled)), 0); // NOLINT in ResizeBilinear() 62 const int w_low = max(static_cast<int>(floorf(posw_scaled)), 0); // NOLINT in ResizeBilinearGrad() 64 const int h_low = max(static_cast<int>(floorf(posh_scaled)), 0); // NOLINT in ResizeBilinearGrad() 95 const int w_low = max(static_cast<int>(floorf(posw_scaled)), 0); // NOLINT in ResizeBilinearGrad() 97 const int h_low = max(static_cast<int>(floorf(posh_scaled)), 0); // NOLINT in ResizeBilinearGrad()
|
D | resize_nearest_neighbor_impl.cu | 47 …min((align_corners) ? static_cast<int>(roundf(out_h * h_scale)) : static_cast<int>(floorf(out_h * … in ResizeNearestNeighbor() 50 …min((align_corners) ? static_cast<int>(roundf(out_w * w_scale)) : static_cast<int>(floorf(out_w * … in ResizeNearestNeighbor()
|
D | resize_nearest_neighbor_grad_impl.cu | 57 …min((align_corners) ? static_cast<int>(roundf(in_h * h_scale)) : static_cast<int>(floorf(in_h * h_… in ResizeNearestNeighborGrad() 60 …min((align_corners) ? static_cast<int>(roundf(in_w * w_scale)) : static_cast<int>(floorf(in_w * w_… in ResizeNearestNeighborGrad()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | resize_bilinear_grad_cpu_kernel.cc | 128 … const size_t top_y_index = std::max(static_cast<size_t>(floorf(in_y)), static_cast<size_t>(0)); in LaunchKernel() 130 const float y_lerp = in_y - floorf(in_y); in LaunchKernel() 134 … const size_t left_x_index = std::max(static_cast<size_t>(floorf(in_x)), static_cast<size_t>(0)); in LaunchKernel() 136 const float x_lerp = in_x - floorf(in_x); in LaunchKernel()
|
D | crop_and_resize_cpu_kernel.cc | 147 const int top_y_index = FloatToInt(floorf(target_y)); in Launch() 149 const int left_x_index = FloatToInt(floorf(target_x)); in Launch() 176 int top_y_index = std::min(std::max(0, FloatToInt(floorf(y_point))), h - 1); in Launch() 180 int left_x_index = std::min(std::max(0, FloatToInt(floorf(x_point))), w - 1); in Launch()
|
D | resize_nearest_neighbor_grad_cpu_kernel.cc | 95 … : static_cast<size_t>(floorf(h * height_scale_)), in LaunchKernel() 99 … : static_cast<size_t>(floorf(w * width_scale_)), in LaunchKernel()
|
D | resize_nearest_neighbor_cpu_kernel.cc | 96 … : static_cast<size_t>(floorf(pos2 * height_scale_)), in LaunchKernel() 99 … : static_cast<size_t>(floorf(pos3 * width_scale_)), in LaunchKernel()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_v360.c | 1397 const int u_face = floorf(i / ew); in cube3x2_to_xyz() 1398 const int v_face = floorf(j / eh); in cube3x2_to_xyz() 1454 ui = floorf(uf); in xyz_to_cube3x2() 1455 vi = floorf(vf); in xyz_to_cube3x2() 1525 const int face = floorf(j / eh); in cube1x6_to_xyz() 1558 const int face = floorf(i / ew); in cube6x1_to_xyz() 1607 ui = floorf(uf); in xyz_to_cube1x6() 1608 vi = floorf(vf); in xyz_to_cube1x6() 1687 ui = floorf(uf); in xyz_to_cube6x1() 1688 vi = floorf(vf); in xyz_to_cube6x1() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_setup_line.c | 274 return f - floorf(f); in fracf() 378 x1diff = v1[0][0] - floorf(v1[0][0]) - 0.5f; in try_setup_line() 379 y1diff = v1[0][1] - floorf(v1[0][1]) - 0.5f; in try_setup_line() 380 x2diff = v2[0][0] - floorf(v2[0][0]) - 0.5f; in try_setup_line() 381 y2diff = v2[0][1] - floorf(v2[0][1]) - 0.5f; in try_setup_line() 480 x1diff = v1[0][0] - floorf(v1[0][0]) - 0.5f; in try_setup_line() 481 y1diff = v1[0][1] - floorf(v1[0][1]) - 0.5f; in try_setup_line() 482 x2diff = v2[0][0] - floorf(v2[0][0]) - 0.5f; in try_setup_line() 483 y2diff = v2[0][1] - floorf(v2[0][1]) - 0.5f; in try_setup_line()
|
D | lp_test_arit.c | 260 x -= floorf(x); in fractf() 307 WRAP(floorf) 313 #define floorf wrap_floorf macro 333 {"floor", &lp_build_floor, &floorf, round_values, ARRAY_SIZE(round_values), 24.0 },
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/sponge/ |
D | common_sponge.cuh | 157 dr.x = dr.x - floorf(dr.x / box_length.x + 0.5) * box_length.x; in Get_Periodic_Displacement() 158 dr.y = dr.y - floorf(dr.y / box_length.y + 0.5) * box_length.y; in Get_Periodic_Displacement() 159 dr.z = dr.z - floorf(dr.z / box_length.z + 0.5) * box_length.z; in Get_Periodic_Displacement() 168 dr.x = dr.x - floorf(dr.x * box_length_inverse.x + 0.5) * box_length.x; in Get_Periodic_Displacement() 169 dr.y = dr.y - floorf(dr.y * box_length_inverse.y + 0.5) * box_length.y; in Get_Periodic_Displacement() 170 dr.z = dr.z - floorf(dr.z * box_length_inverse.z + 0.5) * box_length.z; in Get_Periodic_Displacement()
|
/third_party/mesa3d/include/ |
D | c99_math.h | 70 if (f - floorf(f) == 0.5f) { in lrintf() 96 if (f - floorf(f) == 0.5f) { in llrintf()
|
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/ |
D | mixed_bit_weight_quantizer.cc | 47 float dequant = scale * (floorf(weights[i] / scale + 0.5)); in MeasureQuantizationError() 70 float dequant = var_corr_ * (scale * (floorf(weights[i] / scale + 0.5))) + mean_corr_; in MeasureQuantizationError() 173 auto q = static_cast<int>(floorf(weights[i] / scale + 0.5)); in QuantizeByScale()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/ |
D | roi_pooling_fp32.c | 64 int hstart = (int)floorf(ph * bin_size_h); // block xi_1 in ROIPooling() 65 int wstart = (int)floorf(pw * bin_size_w); // block yi_1 in ROIPooling()
|
/third_party/musl/src/math/aarch64/ |
D | floorf.c | 3 float floorf(float x) in floorf() function
|
/third_party/musl/src/math/powerpc64/ |
D | floorf.c | 5 float floorf(float x) in floorf() function
|
/third_party/musl/src/math/s390x/ |
D | floorf.c | 5 float floorf(float x) in floorf() function
|
/third_party/mesa3d/src/mesa/program/ |
D | prog_execute.c | 589 floor_t0 = floorf(t[0]); in _mesa_execute_program() 628 result[0] = floorf(a[0]); in _mesa_execute_program() 629 result[1] = floorf(a[1]); in _mesa_execute_program() 630 result[2] = floorf(a[2]); in _mesa_execute_program() 631 result[3] = floorf(a[3]); in _mesa_execute_program() 639 result[0] = a[0] - floorf(a[0]); in _mesa_execute_program() 640 result[1] = a[1] - floorf(a[1]); in _mesa_execute_program() 641 result[2] = a[2] - floorf(a[2]); in _mesa_execute_program() 642 result[3] = a[3] - floorf(a[3]); in _mesa_execute_program()
|
/third_party/musl/porting/liteos_a/kernel/src/math/ |
D | floorf.c | 3 float floorf(float x) in floorf() function
|