Home
last modified time | relevance | path

Searched refs:half (Results 1 - 25 of 198) sorted by relevance

12345678

/third_party/skia/third_party/externals/swiftshader/src/Common/
H A DHalf.hpp20 class half class
23 half() = default;
24 half(const half& h) = default;
25 explicit half(float f);
29 half &operator=(const half& h) = default;
30 half &operator=(float f);
36 inline half shortAsHalf(short s) in shortAsHalf()
40 half in shortAsHalf()
[all...]
H A DHalf.cpp19 half::half(float fp32) in half() function in sw::half
51 half::operator float() const in operator float()
88 half &half::operator=(float f) in operator =()
90 *this = half(f); in operator =()
/third_party/ffmpeg/libavcodec/x86/
H A Dqpeldsp_init.c103 uint8_t *const half = (uint8_t *) temp; \
104 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(half, src, 8, \
106 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, src, half, \
123 uint8_t *const half = (uint8_t *) temp; \
124 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(half, src, 8, \
126 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, src + 1, half, stride, \
135 uint8_t *const half = (uint8_t *) temp; \
136 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(half, src, \
138 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, src, half, \
155 uint8_t *const half
[all...]
/third_party/skia/third_party/externals/swiftshader/src/System/
H A DHalf.hpp25 class half class
28 half() = default;
29 explicit half(float f);
33 half &operator=(float f);
39 inline half shortAsHalf(short s) in shortAsHalf()
43 half h; in shortAsHalf()
91 constexpr int half = 1 << (23 - g_sharedexp_mantissabits); in RGB9E5() local
92 const float red_r = bit_cast<float>(bit_cast<int>(red_c) + half); in RGB9E5()
93 const float green_r = bit_cast<float>(bit_cast<int>(green_c) + half); in RGB9E5()
94 const float blue_r = bit_cast<float>(bit_cast<int>(blue_c) + half); in RGB9E5()
[all...]
H A DHalf.cpp19 half::half(float fp32) in half() function in sw::half
51 half::operator float() const in operator float()
88 half &half::operator=(float f) in operator =()
90 *this = half(f); in operator =()
/third_party/ffmpeg/tests/fate/
H A Dimage.mak124 FATE_EXR += fate-exr-rgba-multiscanline-half-b44
125 fate-exr-rgba-multiscanline-half-b44: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_multiscanline_half_b44.exr -pix_fmt gbrapf32le
130 FATE_EXR += fate-exr-rgb-scanline-half-b44-12x8
131 fate-exr-rgb-scanline-half-b44-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_b44_12x8.exr -pix_fmt gbrpf32le
133 FATE_EXR += fate-exr-rgb-scanline-half-b44-13x9
134 fate-exr-rgb-scanline-half-b44-13x9: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_b44_13x9.exr -pix_fmt gbrpf32le
142 FATE_EXR += fate-exr-rgb-tile-half-raw-12x8
143 fate-exr-rgb-tile-half-raw-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_half_raw_12x8.exr -pix_fmt gbrpf32le
145 FATE_EXR += fate-exr-rgba-scanline-float-half-b44-13x9-l1
146 fate-exr-rgba-scanline-float-half
[all...]
/third_party/jerryscript/jerry-libm/
H A Dcosh.c53 #define half 0.5 macro
89 return half * t + half / t; in cosh()
92 /* |x| in [22, log(maxdouble)] return half * exp(|x|) */ in cosh()
95 return half * exp (fabs (x)); in cosh()
102 w = exp (half * fabs (x)); in cosh()
103 t = half * w; in cosh()
112 #undef half macro
/third_party/mesa3d/src/panfrost/midgard/
H A Dmidgard_print_constant.c34 midgard_reg_mode reg_mode, bool half, in mir_print_constant_component()
63 if (half) in mir_print_constant_component()
88 if (half && mod == midgard_int_zero_extend) in mir_print_constant_component()
90 else if (half && mod == midgard_int_left_shift) in mir_print_constant_component()
99 if (half && mod == midgard_int_left_shift) in mir_print_constant_component()
119 if (half && mod == midgard_int_zero_extend) in mir_print_constant_component()
121 else if (half && mod == midgard_int_left_shift) in mir_print_constant_component()
130 if (half && mod == midgard_int_left_shift) in mir_print_constant_component()
152 assert(!half); /* No 4-bit */ in mir_print_constant_component()
33 mir_print_constant_component(FILE *fp, const midgard_constants *consts, unsigned c, midgard_reg_mode reg_mode, bool half, unsigned mod, midgard_alu_op op) mir_print_constant_component() argument
/third_party/ffmpeg/libavfilter/
H A Dvf_premultiply.c45 int half, depth, offset, max; member
53 int half, int shift, int offset);
98 int half, int shift, int offset) in premultiply8()
118 int half, int shift, int offset) in premultiply8yuv()
138 int half, int shift, int offset) in premultiply8offset()
158 int half, int shift, int offset) in premultiply16()
167 dst[x] = ((msrc[x] * (((asrc[x] >> 1) & 1) + asrc[x])) + half) >> shift; in premultiply16()
181 int half, int shift, int offset) in premultiply16yuv()
190 dst[x] = ((((msrc[x] - half) * (int64_t)(((asrc[x] >> 1) & 1) + asrc[x]))) >> shift) + half; in premultiply16yuv()
93 premultiply8(const uint8_t *msrc, const uint8_t *asrc, uint8_t *dst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiply8() argument
113 premultiply8yuv(const uint8_t *msrc, const uint8_t *asrc, uint8_t *dst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiply8yuv() argument
133 premultiply8offset(const uint8_t *msrc, const uint8_t *asrc, uint8_t *dst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiply8offset() argument
153 premultiply16(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiply16() argument
176 premultiply16yuv(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiply16yuv() argument
199 premultiply16offset(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiply16offset() argument
222 premultiplyf32(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiplyf32() argument
245 premultiplyf32offset(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int shift, int offset) premultiplyf32offset() argument
270 unpremultiply8(const uint8_t *msrc, const uint8_t *asrc, uint8_t *dst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiply8() argument
293 unpremultiply8yuv(const uint8_t *msrc, const uint8_t *asrc, uint8_t *dst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiply8yuv() argument
316 unpremultiply8offset(const uint8_t *msrc, const uint8_t *asrc, uint8_t *dst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiply8offset() argument
339 unpremultiply16(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiply16() argument
365 unpremultiply16yuv(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiply16yuv() argument
391 unpremultiply16offset(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiply16offset() argument
417 unpremultiplyf32(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiplyf32() argument
444 unpremultiplyf32offset(const uint8_t *mmsrc, const uint8_t *aasrc, uint8_t *ddst, ptrdiff_t mlinesize, ptrdiff_t alinesize, ptrdiff_t dlinesize, int w, int h, int half, int max, int offset) unpremultiplyf32offset() argument
[all...]
H A Dvf_hsvkey.c40 float half; member
62 const float half = s->half; in do_hsvkey_pixel() local
63 const float uf = u - half; in do_hsvkey_pixel()
64 const float vf = v - half; in do_hsvkey_pixel()
66 const float sat = sat_key < 0.f ? -sat_key : sqrtf((uf * uf + vf * vf) / (half * half * 2.f)); in do_hsvkey_pixel()
187 const float half = s->half; in do_hsvhold16_slice() local
204 dstu[x] = half in do_hsvhold16_slice()
[all...]
/third_party/ffmpeg/libavcodec/mips/
H A Dh264qpel_mmi.c2159 uint8_t half[16]; in ff_put_h264_qpel4_mc10_mmi() local
2160 put_h264_qpel4_h_lowpass_mmi(half, src, 4, stride); in ff_put_h264_qpel4_mc10_mmi()
2161 ff_put_pixels4_l2_8_mmi(dst, src, half, stride, stride, 4, 4); in ff_put_h264_qpel4_mc10_mmi()
2173 uint8_t half[16]; in ff_put_h264_qpel4_mc30_mmi() local
2174 put_h264_qpel4_h_lowpass_mmi(half, src, 4, stride); in ff_put_h264_qpel4_mc30_mmi()
2175 ff_put_pixels4_l2_8_mmi(dst, src+1, half, stride, stride, 4, 4); in ff_put_h264_qpel4_mc30_mmi()
2183 uint8_t half[16]; in ff_put_h264_qpel4_mc01_mmi() local
2185 put_h264_qpel4_v_lowpass_mmi(half, full_mid, 4, 4); in ff_put_h264_qpel4_mc01_mmi()
2186 ff_put_pixels4_l2_8_mmi(dst, full_mid, half, stride, 4, 4, 4); in ff_put_h264_qpel4_mc01_mmi()
2203 uint8_t half[1 in ff_put_h264_qpel4_mc03_mmi() local
2323 uint8_t half[16]; ff_avg_h264_qpel4_mc10_mmi() local
2337 uint8_t half[16]; ff_avg_h264_qpel4_mc30_mmi() local
2347 uint8_t half[16]; ff_avg_h264_qpel4_mc01_mmi() local
2367 uint8_t half[16]; ff_avg_h264_qpel4_mc03_mmi() local
2487 uint8_t half[64]; ff_put_h264_qpel8_mc10_mmi() local
2501 uint8_t half[64]; ff_put_h264_qpel8_mc30_mmi() local
2511 uint8_t half[64]; ff_put_h264_qpel8_mc01_mmi() local
2531 uint8_t half[64]; ff_put_h264_qpel8_mc03_mmi() local
2651 uint8_t half[64]; ff_avg_h264_qpel8_mc10_mmi() local
2665 uint8_t half[64]; ff_avg_h264_qpel8_mc30_mmi() local
2675 uint8_t half[64]; ff_avg_h264_qpel8_mc01_mmi() local
2695 uint8_t half[64]; ff_avg_h264_qpel8_mc03_mmi() local
2815 uint8_t half[256]; ff_put_h264_qpel16_mc10_mmi() local
2829 uint8_t half[256]; ff_put_h264_qpel16_mc30_mmi() local
2839 uint8_t half[256]; ff_put_h264_qpel16_mc01_mmi() local
2859 uint8_t half[256]; ff_put_h264_qpel16_mc03_mmi() local
2979 uint8_t half[256]; ff_avg_h264_qpel16_mc10_mmi() local
2993 uint8_t half[256]; ff_avg_h264_qpel16_mc30_mmi() local
3003 uint8_t half[256]; ff_avg_h264_qpel16_mc01_mmi() local
3023 uint8_t half[256]; ff_avg_h264_qpel16_mc03_mmi() local
[all...]
/third_party/mesa3d/src/freedreno/computerator/examples/
H A Dtest-opcodes.sh3 # Test various instructions to check whether half<->full widening/narrowing
12 # edge cases, while still not loosing precision in a full->half->full
110 echo '; control, half->half:'
112 echo '; test, full->half:'
117 echo '; test, half->full:'
144 stib.untyped.1d.u32.1 r2.y, r3.y, 0 ; test: half->full
145 stib.untyped.1d.u32.1 r2.z, r3.z, 0 ; control: half->half
146 stib.untyped.1d.u32.1 r2.w, r3.w, 0 ; test: full->half
[all...]
/third_party/node/deps/v8/src/bigint/
H A Dmul-fft.cc460 void FFT_Recurse(int start, int half, int omega, digit_t* temp);
527 // This version of Start is optimized for the case where ~half of the
566 int half = len / 2; in FFT_ReturnShuffledThreadsafe() local
567 SumDiff(part_[start], part_[start + half], part_[start], part_[start + half], in FFT_ReturnShuffledThreadsafe()
569 for (int k = 1; k < half; k++) { in FFT_ReturnShuffledThreadsafe()
570 SumDiff(part_[start + k], temp, part_[start + k], part_[start + half + k], in FFT_ReturnShuffledThreadsafe()
573 ShiftModFn(part_[start + half + k], temp, w, K_); in FFT_ReturnShuffledThreadsafe()
575 FFT_Recurse(start, half, omega, temp); in FFT_ReturnShuffledThreadsafe()
579 void FFTContainer::FFT_Recurse(int start, int half, in argument
596 int half = len / 2; BackwardFFT_Threadsafe() local
[all...]
/third_party/skia/docs/examples/
H A Dradial_gradient_test.cpp7 SkScalar half = SIZE * 0.5f; in REG_FIDDLE() local
16 auto s = SkGradientShader::MakeRadial({half, half}, half - 10, cs, pos, 4, in REG_FIDDLE()
H A Dpong.cpp8 double half = period / 2.0; in REG_FIDDLE_ANIMATED() local
9 double diff = ::fabs(value - half); in REG_FIDDLE_ANIMATED()
10 return SkDoubleToScalar(ends + (1.0 - diff / half) * (mid - ends)); in REG_FIDDLE_ANIMATED()
H A Dpong2.cpp8 double half = period / 2.0; in REG_FIDDLE_ANIMATED() local
9 double diff = ::fabs(value - half); in REG_FIDDLE_ANIMATED()
10 return SkDoubleToScalar(ends + (1.0 - diff / half) * (mid - ends)); in REG_FIDDLE_ANIMATED()
/third_party/skia/experimental/lowp-basic/
H A Dlerp-study.cpp42 const int16_t half = 1 << (logPixelScale - 1); in saturating_lerp() local
48 return (answer[0] + half) >> logPixelScale; in saturating_lerp()
53 const int16_t half = 1 << (logPixelScale - 1); in ssse3_lerp() local
59 return (answer[0] + half) >> logPixelScale; in ssse3_lerp()
70 // Change of parameters on t from [0, 1) to [-1, 1). This cuts the number if differences in half.
73 const int16_t half = 1 << logPixelScale; in balanced_lerp() local
81 return (answer[0] + half) >> (logPixelScale + 1); in balanced_lerp()
/third_party/ffmpeg/libavcodec/loongarch/
H A Dh264qpel_lasx.c357 * put_pixels8_l2_8_lsx: dst = avg(src, half) , half stride is 8.
358 * avg_pixels8_l2_8_lsx: dst = avg(avg(src, half), dst) , half stride is 8.*/
422 * put_pixels8_l2_8_lsx: dst = avg(src, half) , half stride is 8.
423 * avg_pixels8_l2_8_lsx: dst = avg(avg(src, half), dst) , half stride is 8.*/
425 put_pixels8_l2_8_lsx(uint8_t *dst, const uint8_t *src, const uint8_t *half, in put_pixels8_l2_8_lsx() argument
444 "vld $vr8, %[half], in put_pixels8_l2_8_lsx()
489 avg_pixels8_l2_8_lsx(uint8_t *dst, const uint8_t *src, const uint8_t *half, ptrdiff_t dstStride, ptrdiff_t srcStride) avg_pixels8_l2_8_lsx() argument
736 put_pixels16_l2_8_lsx(uint8_t *dst, const uint8_t *src, uint8_t *half, ptrdiff_t dstStride, ptrdiff_t srcStride) put_pixels16_l2_8_lsx() argument
840 avg_pixels16_l2_8_lsx(uint8_t *dst, const uint8_t *src, uint8_t *half, ptrdiff_t dstStride, ptrdiff_t srcStride) avg_pixels16_l2_8_lsx() argument
1480 uint8_t half[64]; ff_put_h264_qpel8_mc10_lasx() local
1496 uint8_t half[64]; ff_put_h264_qpel8_mc30_lasx() local
1505 uint8_t half[64]; ff_put_h264_qpel8_mc01_lasx() local
1584 uint8_t half[64]; ff_put_h264_qpel8_mc03_lasx() local
1635 uint8_t half[64]; ff_avg_h264_qpel8_mc10_lasx() local
1650 uint8_t half[64]; ff_avg_h264_qpel8_mc30_lasx() local
1771 uint8_t half[256]; ff_put_h264_qpel16_mc10_lasx() local
1786 uint8_t half[256]; ff_put_h264_qpel16_mc30_lasx() local
1795 uint8_t half[256]; ff_put_h264_qpel16_mc01_lasx() local
1866 uint8_t half[256]; ff_put_h264_qpel16_mc03_lasx() local
1909 uint8_t half[256]; ff_avg_h264_qpel16_mc10_lasx() local
1924 uint8_t half[256]; ff_avg_h264_qpel16_mc30_lasx() local
1933 uint8_t half[256]; ff_avg_h264_qpel16_mc01_lasx() local
2006 uint8_t half[256]; ff_avg_h264_qpel16_mc03_lasx() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dqpeldsp.c175 uint8_t half[64]; \
177 put ## RND ## mpeg4_qpel8_h_lowpass(half, src, 8, stride, 8); \
178 OPNAME ## pixels8_l2_8(dst, src, half, stride, stride, 8, 8); \
190 uint8_t half[64]; \
192 put ## RND ## mpeg4_qpel8_h_lowpass(half, src, 8, stride, 8); \
193 OPNAME ## pixels8_l2_8(dst, src + 1, half, stride, stride, 8, 8); \
200 uint8_t half[64]; \
203 put ## RND ## mpeg4_qpel8_v_lowpass(half, full, 8, 16); \
204 OPNAME ## pixels8_l2_8(dst, full, half, stride, 16, 8, 8); \
220 uint8_t half[6
[all...]
/third_party/glslang/glslang/MachineIndependent/
H A Dglslang_tab.cpp5339 parseContext.float16Check((yyvsp[0].lex).loc, "half float literal");
7986 parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
7997 parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
8008 parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
8505 parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
8516 parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
8527 parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
8538 parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
8549 parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
8560 parseContext.float16Check((yyvsp[0].lex).loc, "half floa
[all...]
/third_party/ffmpeg/libavcodec/ppc/
H A Dh264qpel.c79 DECLARE_ALIGNED(16, uint8_t, half)[SIZE*SIZE];\
80 put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\
81 OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\
91 DECLARE_ALIGNED(16, uint8_t, half)[SIZE*SIZE];\
92 put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\
93 OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src+1, half, stride, stride, SIZE);\
98 DECLARE_ALIGNED(16, uint8_t, half)[SIZE*SIZE];\
99 put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(half, src, SIZE, stride);\
100 OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\
110 DECLARE_ALIGNED(16, uint8_t, half)[SIZ
[all...]
/third_party/node/deps/v8/src/heap/cppgc/
H A Dheap-object-header.h339 const uint16_t& half = in LoadEncoded() local
341 if (mode == AccessMode::kNonAtomic) return half; in LoadEncoded()
342 return v8::base::AsAtomicPtr(&half)->load(memory_order); in LoadEncoded()
354 uint16_t& half = part == EncodedHalf::kLow ? encoded_low_ : encoded_high_; in StoreEncoded() local
356 half = (half & ~mask) | bits; in StoreEncoded()
361 auto* atomic_encoded = v8::base::AsAtomicPtr(&half); in StoreEncoded()
/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_nir_lower_load_barycentric_at_sample.c59 nir_ssa_def *half = nir_imm_float(b, 0.5); in lower_load_sample_pos() local
60 return nir_fadd(b, pos, nir_vec2(b, half, half)); in lower_load_sample_pos()
/third_party/skia/tools/timer/
H A DTimeUtils.h43 double half = period / 2.0; in PingPong() local
44 double diff = ::fabs(value - half); in PingPong()
45 return (float)(ends + (1.0 - diff / half) * (mid - ends)); in PingPong()
/third_party/node/test/parallel/
H A Dtest-double-tls-server.js46 const half = Buffer.alloc(serverReplaySize / 2, 0);
47 serverTlsSock.write(half, common.mustSucceed());
48 serverTlsSock.write(half, common.mustSucceed());

Completed in 33 milliseconds

12345678