/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | point.h | 52 inline PointF& operator/=(scalar divisor); 135 if (fabs(divisor) < FLT_EPSILON) { 138 x_ /= divisor; 139 y_ /= divisor; 165 if (fabs(divisor) < FLT_EPSILON) { 168 return PointF(p.x_ / divisor, p.y_ / divisor); 281 if (divisor == 0) { 284 x_ = static_cast<int>(x_ / divisor); 285 y_ = static_cast<int>(y_ / divisor); 311 if (divisor == 0) { [all …]
|
H A D | point3.h | 44 inline Point3& operator/=(scalar divisor); 50 friend inline const Point3 operator/(const Point3& p, scalar divisor); 122 inline Point3& Point3::operator/=(scalar divisor) 124 if (divisor == 0) { 127 x_ = static_cast<int>(x_ / divisor); 128 y_ = static_cast<int>(y_ / divisor); 129 z_ = static_cast<int>(z_ / divisor); 155 inline const Point3 operator/(const Point3& p, scalar divisor) 157 if (divisor == 0) { 160 return Point3(p.x_ / divisor, p.y_ / divisor, p.z_ / divisor);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/point_fuzzer/ |
H A D | point_fuzzer.cpp | 38 scalar divisor = GetObject<scalar>(); in PointFuzzTest000() local 55 pointf1 /= divisor; in PointFuzzTest000() 67 scalar divisor = GetObject<scalar>(); in PointFuzzTest001() local 77 pointf = pointf1 / divisor; in PointFuzzTest001() 92 scalar divisor = GetObject<scalar>(); in PointFuzzTest002() local 106 pointi1 /= divisor; in PointFuzzTest002() 118 scalar divisor = GetObject<scalar>(); in PointFuzzTest003() local 128 pointi = pointi1 / divisor; in PointFuzzTest003()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/include/ |
H A D | osal_math.h | 38 static inline int64_t OsalDivS64(int64_t dividend, int32_t divisor) in OsalDivS64() argument 40 return ((divisor != 0) ? (dividend / divisor) : 0); in OsalDivS64()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/include/ |
H A D | osal_math.h | 38 static inline int64_t OsalDivS64(int64_t dividend, int32_t divisor) in OsalDivS64() argument 40 return ((divisor != 0) ? (dividend / divisor) : 0); in OsalDivS64()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/point3_fuzzer/ |
H A D | point3_fuzzer.cpp | 39 scalar divisor = GetObject<scalar>(); in Point3FuzzTest000() local 55 point3 /= divisor; in Point3FuzzTest000() 61 point3 = point3_1 / divisor; in Point3FuzzTest000()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/osal/include/ |
H A D | osal_math.h | 29 static inline int64_t OsalDivS64(int64_t dividend, int32_t divisor) in OsalDivS64() argument 31 return (int64_t)div_s64(dividend, divisor); in OsalDivS64()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/shader/ |
H A D | bloom_downscale_threshold.frag | 44 …const float divisor = uPc.factor.y - uPc.factor.x; // cannot be zero -> if equal, should go to fir… 45 const float coeff = 1.0 / divisor;
|
/ohos5.0/foundation/multimedia/av_codec/frameworks/native/avcodeclist/ |
H A D | avcodec_info.cpp | 420 Range VideoCaps::DivRange(const Range &range, const int32_t &divisor) in DivRange() argument 422 if (divisor == 0) { in DivRange() 425 } else if (divisor == 1) { in DivRange() 428 return Range(DivCeil(range.minVal, divisor), range.maxVal / divisor); in DivRange() 431 int32_t VideoCaps::DivCeil(const int32_t ÷nd, const int32_t &divisor) in DivCeil() argument 433 if (divisor == 0) { in DivCeil() 437 return (dividend + divisor - 1) / divisor; in DivCeil()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/computeshader/ |
H A D | bloom_downscale_threshold.comp | 47 …const float divisor = uPc.factor.y - uPc.factor.x; // cannot be zero -> if equal, should go to fir… 48 const float coeff = 1.0 / divisor;
|
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | plural_format_impl.cpp | 290 int divisor = ParseNumber(rule, ruleSize, index); in ParseFormula() local 291 if (divisor == 0) { in ParseFormula() 292 divisor = 1; in ParseFormula() 294 currentNumber = number % divisor; in ParseFormula()
|
/ohos5.0/docs/zh-cn/application-dev/ai/mindspore/ |
H A D | mindspore-lite-train-guidelines.md | 51 const int divisor = 10; 53 input_data[j] = (float)(rand() % divisor) / divisor; // 0--0.9f 277 const int divisor = 10; 279 input_data[j] = (float)(rand() % divisor) / divisor; // 0--0.9f
|
H A D | mindspore-lite-guidelines.md | 77 const int divisor = 10; 79 input_data[j] = (float)(rand() % divisor) / divisor; // 0--0.9f
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/ |
H A D | app_style_manager.cpp | 29 const uint8_t divisor = 2; in AppStyleManager() local 30 flagsLen_ = (KEYWORDS_MAX & 1) ? (KEYWORDS_MAX / divisor) + 1 : (KEYWORDS_MAX / divisor); in AppStyleManager()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/codeclist_test/coverage_unit_test/ |
H A D | avcodec_info_coverage_unit_test.cpp | 529 constexpr int32_t divisor = 0; variable 531 videoCaps_->DivRange(range, divisor); 543 constexpr int32_t divisor = 0; variable 544 auto ret = videoCaps_->DivCeil(dividend, divisor);
|
/ohos5.0/docs/en/application-dev/ai/mindspore/ |
H A D | mindspore-lite-train-guidelines.md | 51 const int divisor = 10; 53 input_data[j] = (float)(rand() % divisor) / divisor; // 0--0.9f 277 const int divisor = 10; 279 input_data[j] = (float)(rand() % divisor) / divisor; // 0--0.9f
|
H A D | mindspore-lite-guidelines.md | 77 const int divisor = 10; 79 input_data[j] = (float)(rand() % divisor) / divisor; // 0--0.9f
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-napi-about-error.md | 236 // Pass in two parameters. Throw an error when the second parameter, that is, the divisor, is 0. 243 // Convert the two parameters to values of the double type as the dividend and divisor. 244 double dividend, divisor; 246 napi_get_value_double(env, argv[1], &divisor); 247 …// If the divisor is 0, throw an error with the error code of DIVIDE_BY_ZERO and the error message… 248 if (divisor == 0) { 260 export const napiThrowError: (dividend: number, divisor: number) => void;
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-napi-about-error.md | 244 double dividend, divisor; 246 napi_get_value_double(env, argv[1], &divisor); 248 if (divisor == 0) { 260 export const napiThrowError: (dividend: number, divisor: number) => void;
|
/ohos5.0/foundation/multimedia/av_codec/interfaces/inner_api/native/ |
H A D | avcodec_info.h | 484 int32_t DivCeil(const int32_t ÷nd, const int32_t &divisor); 485 Range DivRange(const Range &range, const int32_t &divisor);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/ |
H A D | hgm_frame_rate_manager.cpp | 591 int divisor = 1; in GetDrawingFrameRate() local 602 divisor++; in GetDrawingFrameRate() 604 dividedFps = currRefreshRate / static_cast<float>(divisor); in GetDrawingFrameRate() 630 divisor++; in GetDrawingFrameRate() 631 dividedFps = currRefreshRate / static_cast<float>(divisor); in GetDrawingFrameRate()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | device_gles.h | 199 void VertexBindingDivisor(uint32_t slot, uint32_t divisor); 401 uint32_t divisor { 0 };
|
H A D | device_gles.cpp | 2016 void DeviceGLES::VertexBindingDivisor(uint32_t slot, uint32_t divisor) in VertexBindingDivisor() argument 2021 if (vertexBufferBinds[slot].divisor != divisor) { in VertexBindingDivisor() 2022 vertexBufferBinds[slot].divisor = divisor; in VertexBindingDivisor() 2023 glVertexBindingDivisor(slot, divisor); in VertexBindingDivisor()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/qrcode/ |
H A D | qrcode_patch2.patch | 591 result.at(i) ^= reedSolomonMultiply(divisor.at(i), factor); 892 // Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials. 893 …nComputeRemainder(const std::vector<std::uint8_t> &data, const std::vector<std::uint8_t> &divisor); 894 …nComputeRemainder(const std::vector<std::uint8_t> &data, const std::vector<std::uint8_t> &divisor);
|
/ohos5.0/docs/en/application-dev/dfx/ |
H A D | cppcrash-guidelines.md | 17 …ception| An incorrect arithmetic operation is executed, for example, a 0 divisor, floating point o… 55 | 1 | FPE_INTDIV | Invalid integer division| The divisor in an integer division is zero. | 56 | 2 | FPE_INTOVF | Integer overflow| The divisor in an integer division is negative. | 57 | 3 | FPE_FLTDIV | Invalid floating-point division| The divisor in a floating-point division is zer… 58 | 4 | FPE_FLTOVF | Floating-point overflow| The divisor in a floating-point division is negative. | 59 | 5 | FPE_FLTUND | Floating-point underflow| The divisor in a floating-point division is zero. | 60 | 6 | FPE_FLTRES | Invalid floating-point result| The divisor in a floating-point division is posit… 61 | 7 | FPE_FLTINV | Invalid floating-point operation| The divisor in a floating-point division is ne… 62 | 8 | FPE_FLTSUB | Floating-point trap| The divisor in a floating-point division is zero. |
|