/third_party/musl/src/math/ |
H A D | exp2.c | 23 is scale*(1+TMP) without intermediate rounding. The bit representation of 24 scale is in SBITS, however it has a computed exponent that may have 27 adjustment of scale, positive k here means the result may overflow and 31 double_t scale, y; in specialcase() local 34 /* k > 0, the exponent of scale might have overflowed by 1. */ in specialcase() 36 scale = asdouble(sbits); in specialcase() 37 y = 2 * (scale + scale * tmp); in specialcase() 42 scale = asdouble(sbits); in specialcase() 43 y = scale in specialcase() 74 double_t kd, r, r2, scale, tail, tmp; exp2() local [all...] |
H A D | exp.c | 25 is scale*(1+TMP) without intermediate rounding. The bit representation of 26 scale is in SBITS, however it has a computed exponent that may have 29 adjustment of scale, positive k here means the result may overflow and 33 double_t scale, y; in specialcase() local 36 /* k > 0, the exponent of scale might have overflowed by <= 460. */ in specialcase() 38 scale = asdouble(sbits); in specialcase() 39 y = 0x1p1009 * (scale + scale * tmp); in specialcase() 44 scale = asdouble(sbits); in specialcase() 45 y = scale in specialcase() 76 double_t kd, z, r, r2, scale, tail, tmp; exp() local [all...] |
/third_party/musl/porting/liteos_a/kernel/src/math/ |
H A D | exp2.c | 23 is scale*(1+TMP) without intermediate rounding. The bit representation of 24 scale is in SBITS, however it has a computed exponent that may have 27 adjustment of scale, positive k here means the result may overflow and 31 double_t scale, y; in specialcase() local 34 /* k > 0, the exponent of scale might have overflowed by 1. */ in specialcase() 36 scale = asdouble(sbits); in specialcase() 37 y = 2 * (scale + scale * tmp); in specialcase() 42 scale = asdouble(sbits); in specialcase() 43 y = scale in specialcase() 74 double_t kd, r, r2, scale, tail, tmp; exp2() local [all...] |
/third_party/optimized-routines/math/ |
H A D | exp2.c | 24 is scale*(1+TMP) without intermediate rounding. The bit representation of 25 scale is in SBITS, however it has a computed exponent that may have 28 adjustment of scale, positive k here means the result may overflow and 33 double_t scale, y; in specialcase() local 37 /* k > 0, the exponent of scale might have overflowed by 1. */ in specialcase() 39 scale = asdouble (sbits); in specialcase() 40 y = 2 * (scale + scale * tmp); in specialcase() 45 scale = asdouble (sbits); in specialcase() 46 y = scale in specialcase() 81 double_t kd, r, r2, scale, tail, tmp; exp2() local [all...] |
H A D | exp.c | 26 is scale*(1+TMP) without intermediate rounding. The bit representation of 27 scale is in SBITS, however it has a computed exponent that may have 30 adjustment of scale, positive k here means the result may overflow and 35 double_t scale, y; in specialcase() local 39 /* k > 0, the exponent of scale might have overflowed by <= 460. */ in specialcase() 41 scale = asdouble (sbits); in specialcase() 42 y = 0x1p1009 * (scale + scale * tmp); in specialcase() 47 scale = asdouble (sbits); in specialcase() 48 y = scale in specialcase() 85 double_t kd, z, r, r2, scale, tail, tmp; exp_inline() local [all...] |
/third_party/skia/docs/examples/ |
H A D | picture_shader.cpp | 20 const SkScalar scale = 512; in REG_FIDDLE() local 22 c->translate(0.5f * scale, 0.5f * scale); in REG_FIDDLE() 26 c->drawCircle(0.0f, 0.0f, scale * 0.475f, p); in REG_FIDDLE() 34 p.setStrokeWidth(0.05f * scale); in REG_FIDDLE() 36 c->drawCircle(0.0f, 0.0f, 0.475f * scale, p); in REG_FIDDLE() 38 SkFont f(nullptr, 0.28125f * scale); in REG_FIDDLE() 40 draw_centered("R", f, SK_ColorRED, from_polar_deg(0.3f * scale, 90), c); in REG_FIDDLE() 41 draw_centered("G", f, SK_ColorGREEN, from_polar_deg(0.3f * scale, 210), c); in REG_FIDDLE() 42 draw_centered("B", f, SK_ColorBLUE, from_polar_deg(0.3f * scale, 33 in REG_FIDDLE() [all...] |
H A D | blur_alpha_img.cpp | 7 SkScalar scale = 10.0f; in REG_FIDDLE() local 11 path.moveTo(2 * scale, 3 * scale); in REG_FIDDLE() 13 path.lineTo(pts[i] * scale, pts[i + 1] * scale); in REG_FIDDLE() 16 SkMatrix matrix = SkMatrix::Scale(4 * scale, 4 * scale); in REG_FIDDLE() 20 SkRect bounds{-4 * scale, -4 * scale, (float)w, (float)h}; in REG_FIDDLE()
|
H A D | ChromeMDRefreshTab.cpp | 5 SkPath GetBorderPath(float scale, in REG_FIDDLE() argument 10 // const float top = scale - 1; in REG_FIDDLE() 11 const float right = size.fWidth * scale; in REG_FIDDLE() 12 const float bottom = size.fHeight * scale; in REG_FIDDLE() 13 const float scaled_endcap_radius = (endcap_width / 2) * scale; in REG_FIDDLE() 22 // path.rCubicTo(0.75 * scale, 0, 1.625 * scale, -0.5 * scale, 2 * scale, in REG_FIDDLE() 23 // -1.5 * scale); in REG_FIDDLE() 71 GetInteriorPath( float scale, const SkISize& size, float endcap_width, float horizontal_inset = 0) REG_FIDDLE() argument [all...] |
H A D | Color_Wheel.cpp | 5 void draw_color_wheel(SkCanvas* canvas, float scale) { in REG_FIDDLE() argument 6 const float stroke = scale * 3 / 64; in REG_FIDDLE() 7 const float size = scale * 9 / 32; in REG_FIDDLE() 9 canvas->translate(0.5f * scale, 0.5f * scale); in REG_FIDDLE() 11 canvas->drawCircle({0, 0}, (scale - stroke) * 0.5f, SkPaint(SkColors::kWhite)); in REG_FIDDLE() 24 canvas->drawCircle({0, 0}, (scale - stroke) * 0.5f, sweep); in REG_FIDDLE() 41 float x = (float)(0.3 * scale * v.radius * cos(pi_over_180 * v.angle) - bnds.centerX()); in REG_FIDDLE() 42 float y = (float)(0.3 * scale * v.radius * sin(pi_over_180 * v.angle) - bnds.centerY()); in REG_FIDDLE()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_single_version_result_set_test.cpp | 172 double scale = 1; in HWTEST_F() local 174 EXPECT_EQ(resultWindow.Init(g_rawCursor, windoweSize, scale), -E_INVALID_ARGS); in HWTEST_F() 191 double scale = 1; in HWTEST_F() local 193 EXPECT_EQ(resultWindow.Init(g_rawCursor, windowSize, scale), -E_INVALID_ARGS); in HWTEST_F() 210 double scale = 1; in HWTEST_F() local 212 EXPECT_EQ(resultWindow.Init(g_rawCursor, windowSize, scale), -E_INVALID_ARGS); in HWTEST_F() 229 double scale = 1; in HWTEST_F() local 231 EXPECT_EQ(resultWindow.Init(g_rawCursor, windowSize, scale), E_OK); in HWTEST_F() 236 * @tc.desc: CursorWindow Class: Return -E_INVALID_ARGS when the window scale is negative. 244 * @tc.steps:step1. Let the WindowSize be 100, and window scale t in HWTEST_F() 248 double scale = -1; HWTEST_F() local 267 double scale = 2; HWTEST_F() local 286 double scale = 0; HWTEST_F() local 305 double scale = 0.5; HWTEST_F() local 325 double scale = 1; HWTEST_F() local 344 double scale = 1; HWTEST_F() local 370 double scale = 1; HWTEST_F() local 409 double scale = 1; HWTEST_F() local 443 double scale = 1; HWTEST_F() local 478 double scale = 1; HWTEST_F() local 514 double scale = 1; HWTEST_F() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | opus_rc.c | 66 static av_always_inline void opus_rc_dec_update(OpusRangeCoder *rc, uint32_t scale, in opus_rc_dec_update() argument 70 rc->value -= scale * (total - high); in opus_rc_dec_update() 71 rc->range = low ? scale * (high - low) in opus_rc_dec_update() 72 : rc->range - scale * (total - high); in opus_rc_dec_update() 92 unsigned int k, scale, total, symbol, low, high; in ff_opus_rc_dec_cdf() local 96 scale = rc->range / total; in ff_opus_rc_dec_cdf() 97 symbol = rc->value / scale + 1; in ff_opus_rc_dec_cdf() 104 opus_rc_dec_update(rc, scale, low, high, total); in ff_opus_rc_dec_cdf() 116 uint32_t k, scale; in ff_opus_rc_dec_log() local 117 scale in ff_opus_rc_dec_log() 184 uint32_t bits, k, scale, total; ff_opus_rc_dec_uint() local 214 uint32_t k, scale, symbol, total = (k0+1)*3 + k0; ff_opus_rc_dec_uint_step() local 236 uint32_t k, scale, symbol, total, low, center; ff_opus_rc_dec_uint_tri() local 279 uint32_t scale, low = 0, center; ff_opus_rc_dec_laplace() local [all...] |
H A D | msmpeg4.c | 189 static int get_dc(uint8_t *src, int stride, int scale, int block_size) in get_dc() argument 199 return FASTDIV((sum + (scale>>1)), scale); in get_dc() 206 int a, b, c, wrap, pred, scale; in ff_msmpeg4_pred_dc() local 211 scale = s->y_dc_scale; in ff_msmpeg4_pred_dc() 213 scale = s->c_dc_scale; in ff_msmpeg4_pred_dc() 250 : "g" (scale), "S" (ff_inverse[scale]) in ff_msmpeg4_pred_dc() 255 if (scale == 8) { in ff_msmpeg4_pred_dc() 260 a = FASTDIV((a + (scale >> in ff_msmpeg4_pred_dc() [all...] |
/third_party/skia/src/core/ |
H A D | SkScaleToSides.h | 23 static void AdjustRadii(double limit, double scale, SkScalar* a, SkScalar* b) { in AdjustRadii() argument 24 SkASSERTF(scale < 1.0 && scale > 0.0, "scale: %g", scale); in AdjustRadii() 26 *a = (float)((double)*a * scale); in AdjustRadii() 27 *b = (float)((double)*b * scale); in AdjustRadii() 56 SkASSERTF(*a >= 0.0f && *b >= 0.0f, "a: %g, b: %g, limit: %g, scale: %g", *a, *b, limit, in AdjustRadii() 57 scale); in AdjustRadii() 60 "\nlimit: %.17f, sum: %.17f, a: %.10f, b: %.10f, scale in AdjustRadii() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | filltypes.cpp | 40 float scale = param.scale; in showPath() local 54 OH_Drawing_CanvasScale(canvas, scale, scale); in showPath() 65 void FillType::showFour(OH_Drawing_Canvas* canvas, float scale, OH_Drawing_Brush* brush) in showFour() argument 67 showPath(canvas, { 0, 0, OH_Drawing_PathFillType::PATH_FILL_TYPE_WINDING, scale }, brush); // 0, 0 showPath in showFour() 68 showPath(canvas, { 200, 0, OH_Drawing_PathFillType::PATH_FILL_TYPE_EVEN_ODD, scale }, brush); // 200, 0 showPath in showFour() 70 canvas, { 0, 200, OH_Drawing_PathFillType::PATH_FILL_TYPE_INVERSE_WINDING, scale }, brush); // 0, 200 showPath in showFour() 71 showPath(canvas, { 200, 200, OH_Drawing_PathFillType::PATH_FILL_TYPE_INVERSE_EVEN_ODD, scale }, in showFour() 98 const float scale in OnTestFunction() local [all...] |
/third_party/ffmpeg/libavcodec/mips/ |
H A D | aacdec_mips.h | 66 const float *scale) in VMUL2_mips() 77 "lwc1 %[temp2], 0(%[scale]) \n\t" in VMUL2_mips() 89 : [idx]"r"(idx), [scale]"r"(scale), [v]"r"(v), in VMUL2_mips() 97 const float *scale) in VMUL4_mips() 111 "lwc1 %[temp4], 0(%[scale]) \n\t" in VMUL4_mips() 131 : [idx]"r"(idx), [scale]"r"(scale), [v]"r"(v), in VMUL4_mips() 139 unsigned sign, const float *scale) in VMUL2S_mips() 148 "lw %[temp4], 0(%[scale]) \ in VMUL2S_mips() 65 VMUL2_mips(float *dst, const float *v, unsigned idx, const float *scale) VMUL2_mips() argument 96 VMUL4_mips(float *dst, const float *v, unsigned idx, const float *scale) VMUL4_mips() argument 138 VMUL2S_mips(float *dst, const float *v, unsigned idx, unsigned sign, const float *scale) VMUL2S_mips() argument 179 VMUL4S_mips(float *dst, const float *v, unsigned idx, unsigned sign, const float *scale) VMUL4S_mips() argument [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | bmp.mak | 2 fate-bmp-1bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test1.bmp -pix_fmt rgb24 -vf scale 5 fate-bmp-4bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test4.bmp -pix_fmt rgb24 -vf scale 8 fate-bmp-4bit-os2: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test4os2v2.bmp -pix_fmt rgb24 -vf scale 11 fate-bmp-8bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test8.bmp -pix_fmt rgb24 -vf scale 14 fate-bmp-8bit-os2: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test8os2.bmp -pix_fmt rgb24 -vf scale 17 fate-bmp-15bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test16.bmp -pix_fmt rgb555le -vf scale 20 fate-bmp-15bit-mask: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test16bf555.bmp -pix_fmt rgb555le -vf scale 23 fate-bmp-16bit-mask: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test16bf565.bmp -pix_fmt rgb565le -vf scale 29 fate-bmp-32bit: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test32.bmp -pix_fmt bgr24 -vf scale 32 fate-bmp-32bit-mask: CMD = framecrc -i $(TARGET_SAMPLES)/bmp/test32bf.bmp -pix_fmt bgr24 -vf scale [all...] |
H A D | dfa.mak | 2 fate-dfa1: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0000.dfa -pix_fmt rgb24 -vf scale 5 fate-dfa2: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0001.dfa -pix_fmt rgb24 -vf scale 8 fate-dfa3: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0002.dfa -pix_fmt rgb24 -vf scale 11 fate-dfa4: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0003.dfa -pix_fmt rgb24 -vf scale 14 fate-dfa5: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0004.dfa -pix_fmt rgb24 -vf scale 17 fate-dfa6: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0005.dfa -pix_fmt rgb24 -vf scale 20 fate-dfa7: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0006.dfa -pix_fmt rgb24 -vf scale 23 fate-dfa8: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0007.dfa -pix_fmt rgb24 -vf scale 26 fate-dfa9: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0008.dfa -pix_fmt rgb24 -vf scale 29 fate-dfa10: CMD = framecrc -i $(TARGET_SAMPLES)/chronomaster-dfa/0009.dfa -pix_fmt rgb24 -vf scale [all...] |
/third_party/mesa3d/src/util/ |
H A D | format_r11g11b10f.h | 115 const float scale = 1.0 / (1 << 20); in uf11_to_f32() local 116 f32.f = scale * mantissa; in uf11_to_f32() 121 float scale, decimal; in uf11_to_f32() local 124 scale = 1.0f / (1 << -exponent); in uf11_to_f32() 126 scale = (float) (1 << exponent); in uf11_to_f32() 129 f32.f = scale * decimal; in uf11_to_f32() 197 const float scale = 1.0 / (1 << 19); in uf10_to_f32() local 198 f32.f = scale * mantissa; in uf10_to_f32() 203 float scale, decimal; in uf10_to_f32() local 206 scale in uf10_to_f32() [all...] |
/third_party/skia/gm/ |
H A D | filltypespersp.cpp | 51 SkScalar scale, const SkPaint& paint) { in showPath() 60 canvas->scale(scale, scale); in showPath() 66 void showFour(SkCanvas* canvas, SkScalar scale, bool aa) { in showFour() argument 80 scale, paint); in showFour() 82 scale, paint); in showFour() 84 scale, paint); in showFour() 86 scale, paint); in showFour() 123 const SkScalar scale variable 50 showPath(SkCanvas* canvas, int x, int y, SkPathFillType ft, SkScalar scale, const SkPaint& paint) showPath() argument [all...] |
H A D | filltypes.cpp | 47 SkScalar scale, const SkPaint& paint) { in showPath() 56 canvas->scale(scale, scale); in showPath() 62 void showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) { in showFour() argument 64 scale, paint); in showFour() 66 scale, paint); in showFour() 68 scale, paint); in showFour() 70 scale, paint); in showFour() 79 const SkScalar scale variable 46 showPath(SkCanvas* canvas, int x, int y, SkPathFillType ft, SkScalar scale, const SkPaint& paint) showPath() argument [all...] |
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | rescaler_msa.c | 27 #define CALC_MULT_FIX_16(in0, in1, in2, in3, scale, shift, dst) do { \ 33 DOTP_UW2_UD(tmp0, tmp1, scale, scale, out0, out1); \ 34 DOTP_UW2_UD(tmp2, tmp3, scale, scale, out2, out3); \ 39 DOTP_UW2_UD(tmp0, tmp1, scale, scale, out0, out1); \ 40 DOTP_UW2_UD(tmp2, tmp3, scale, scale, out2, out3); \ 47 #define CALC_MULT_FIX_4(in0, scale, shif 120 const v4u32 scale = (v4u32)__msa_fill_w(wrk->fy_scale); ExportRowExpand_0() local 182 const v4u32 scale = (v4u32)__msa_fill_w(wrk->fy_scale); ExportRowExpand_1() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A D | DecimalQuantity_AbstractBCD.java | 26 * object represents the number "3.14", the BCD will be "0x314" and the scale will be -2. 29 * Note that in {@link java.math.BigDecimal}, the scale is defined differently: the number of digits 30 * after the decimal place, which is the negative of our definition of scale. 32 protected int scale; field in DecimalQuantity_AbstractBCD 101 scale = other.scale; in copyFrom() 114 setBcdToZero(); // sets scale, precision, hasDouble, origDouble, origDelta, exponent, and BCD data in clear() 152 if (maxInt <= scale) { in applyMaxInteger() 212 return scale + precision - 1; in getMagnitude() 219 scale in adjustMagnitude() [all...] |
/third_party/ffmpeg/libavcodec/arm/ |
H A D | aac.h | 30 const float *scale) in VMUL2() 42 : "r"(v), "r"(idx), "r"(scale) in VMUL2() 49 const float *scale) in VMUL4() 67 : "r"(v), "r"(idx), "r"(scale) in VMUL4() 74 unsigned sign, const float *scale) in VMUL2S() 92 : "r"(v), "r"(idx), "r"(scale), "r"(sign) in VMUL2S() 99 unsigned sign, const float *scale) in VMUL4S() 136 : "r"(v), "r"(idx), "r"(scale) in VMUL4S() 29 VMUL2(float *dst, const float *v, unsigned idx, const float *scale) VMUL2() argument 48 VMUL4(float *dst, const float *v, unsigned idx, const float *scale) VMUL4() argument 73 VMUL2S(float *dst, const float *v, unsigned idx, unsigned sign, const float *scale) VMUL2S() argument 98 VMUL4S(float *dst, const float *v, unsigned idx, unsigned sign, const float *scale) VMUL4S() argument
|
/third_party/vk-gl-cts/modules/gles2/accuracy/ |
H A D | es2aVaryingInterpolationTests.cpp | 64 static void renderReference (const SurfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) in renderReference() argument 87 float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference() 88 float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference() 89 float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference() 212 tcu::Vec3 scale = 1.0f / (m_max - m_min); in iterate() local 213 tcu::Vec3 bias = -1.0f*m_min*scale; in iterate() 216 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2], in iterate() 217 (0.5f - bias[0])/scale[ in iterate() 264 renderReference(SurfaceAccess(reference, m_context.getRenderTarget().getPixelFormat()), coords, wCoord, scale, bias); iterate() local [all...] |
/third_party/vk-gl-cts/modules/gles3/accuracy/ |
H A D | es3aVaryingInterpolationTests.cpp | 66 static void renderReference (const SurfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) in renderReference() argument 89 float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference() 90 float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference() 91 float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference() 218 tcu::Vec3 scale = 1.0f / (m_max - m_min); in iterate() local 219 tcu::Vec3 bias = -1.0f*m_min*scale; in iterate() 222 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2], in iterate() 223 (0.5f - bias[0])/scale[ in iterate() 270 renderReference(SurfaceAccess(reference, m_context.getRenderTarget().getPixelFormat()), coords, wCoord, scale, bias); iterate() local [all...] |