Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 800) sorted by relevance

12345678910>>...32

/hardware/google/gfxstream/guest/mesa/src/util/sha1/
Dsha1.c57 uint32_t a, b, c, d, e; in SHA1Transform() local
65 b = state[1]; in SHA1Transform()
71 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform()
72 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform()
73 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform()
74 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform()
75 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform()
76 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform()
77 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform()
78 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform()
[all …]
/hardware/google/aemu/base/
DStream.cpp34 uint8_t b[2] = { (uint8_t)(value >> 8), (uint8_t)value }; in putBe16() local
35 write(b, 2U); in putBe16()
39 uint8_t b[2] = { 0, 0 }; in getBe16() local
40 read(b, 2U); in getBe16()
41 return ((uint16_t)b[0] << 8) | (uint16_t)b[1]; in getBe16()
45 uint8_t b[4] = { in putBe32() local
50 write(b, 4U); in putBe32()
54 uint8_t b[4] = { 0, 0, 0, 0 }; in getBe32() local
55 read(b, 4U); in getBe32()
56 return ((uint32_t)b[0] << 24) | in getBe32()
[all …]
/hardware/google/gfxstream/guest/android-emu/aemu/base/files/
DStream.cpp34 uint8_t b[2] = { (uint8_t)(value >> 8), (uint8_t)value }; in putBe16() local
35 write(b, 2U); in putBe16()
39 uint8_t b[2] = { 0, 0 }; in getBe16() local
40 read(b, 2U); in getBe16()
41 return ((uint16_t)b[0] << 8) | (uint16_t)b[1]; in getBe16()
45 uint8_t b[4] = { in putBe32() local
50 write(b, 4U); in putBe32()
54 uint8_t b[4] = { 0, 0, 0, 0 }; in getBe32() local
55 read(b, 4U); in getBe32()
56 return ((uint32_t)b[0] << 24) | in getBe32()
[all …]
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenc_vecmathlib_none_4.h94 ASTCENC_SIMD_INLINE explicit vfloat4(float a, float b, float c, float d) in vfloat4()
97 m[1] = b; in vfloat4()
224 ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d) in vint4()
227 m[1] = b; in vint4()
336 ASTCENC_SIMD_INLINE explicit vmask4(bool a, bool b, bool c, bool d) in vmask4()
339 m[1] = b == false ? 0 : -1; in vmask4()
358 ASTCENC_SIMD_INLINE vmask4 operator|(vmask4 a, vmask4 b)
360 return vmask4(a.m[0] | b.m[0],
361 a.m[1] | b.m[1],
362 a.m[2] | b.m[2],
[all …]
Dastcenc_vecmathlib_common_4.h62 ASTCENC_SIMD_INLINE vint4 operator+(vint4 a, int b)
64 return a + vint4(b);
70 ASTCENC_SIMD_INLINE vint4& operator+=(vint4& a, const vint4& b)
72 a = a + b;
79 ASTCENC_SIMD_INLINE vint4 operator-(vint4 a, int b)
81 return a - vint4(b);
87 ASTCENC_SIMD_INLINE vint4 operator*(vint4 a, int b)
89 return a * vint4(b);
95 ASTCENC_SIMD_INLINE vint4 operator|(vint4 a, int b)
97 return a | vint4(b);
[all …]
Dastcenc_vecmathlib_avx2_8.h83 float a, float b, float c, float d, in vfloat8()
86 m = _mm256_set_ps(h, g, f, e, d, c, b, a); in vfloat8()
199 int a, int b, int c, int d, in vint8()
202 m = _mm256_set_epi32(h, g, f, e, d, c, b, a); in vint8()
313 ASTCENC_SIMD_INLINE vmask8 operator|(vmask8 a, vmask8 b)
315 return vmask8(_mm256_or_ps(a.m, b.m));
321 ASTCENC_SIMD_INLINE vmask8 operator&(vmask8 a, vmask8 b)
323 return vmask8(_mm256_and_ps(a.m, b.m));
329 ASTCENC_SIMD_INLINE vmask8 operator^(vmask8 a, vmask8 b)
331 return vmask8(_mm256_xor_ps(a.m, b.m));
[all …]
Dastcenc_vecmathlib_neon_4.h82 ASTCENC_SIMD_INLINE explicit vfloat4(float a, float b, float c, float d) in vfloat4()
84 float v[4] { a, b, c, d }; in vfloat4()
227 ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d) in vint4()
229 int v[4] { a, b, c, d }; in vint4()
336 ASTCENC_SIMD_INLINE explicit vmask4(bool a, bool b, bool c, bool d) in vmask4()
340 b == true ? -1 : 0, in vmask4()
370 ASTCENC_SIMD_INLINE vmask4 operator|(vmask4 a, vmask4 b)
372 return vmask4(vorrq_u32(a.m, b.m));
378 ASTCENC_SIMD_INLINE vmask4 operator&(vmask4 a, vmask4 b)
380 return vmask4(vandq_u32(a.m, b.m));
[all …]
Dastcenc_vecmathlib_sse_4.h83 ASTCENC_SIMD_INLINE explicit vfloat4(float a, float b, float c, float d) in vfloat4()
85 m = _mm_set_ps(d, c, b, a); in vfloat4()
243 ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d) in vint4()
245 m = _mm_set_epi32(d, c, b, a); in vint4()
356 ASTCENC_SIMD_INLINE explicit vmask4(bool a, bool b, bool c, bool d) in vmask4()
359 b == false ? 0 : -1, in vmask4()
387 ASTCENC_SIMD_INLINE vmask4 operator|(vmask4 a, vmask4 b)
389 return vmask4(_mm_or_ps(a.m, b.m));
395 ASTCENC_SIMD_INLINE vmask4 operator&(vmask4 a, vmask4 b)
397 return vmask4(_mm_and_ps(a.m, b.m));
[all …]
/hardware/google/gfxstream/host/apigen-codec-common/X11/extensions/
Dsyncconst.h88 #define _XSyncValueGreaterThan(a, b)\ argument
89 ((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>(b).lo))
90 #define _XSyncValueLessThan(a, b)\ argument
91 ((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<(b).lo))
92 #define _XSyncValueGreaterOrEqual(a, b)\ argument
93 ((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>=(b).lo))
94 #define _XSyncValueLessOrEqual(a, b)\ argument
95 ((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<=(b).lo))
96 #define _XSyncValueEqual(a, b) ((a).lo==(b).lo && (a).hi==(b).hi) argument
102 #define _XSyncValueAdd(presult,a,b,poverflow) {\ argument
[all …]
/hardware/interfaces/wifi/1.2/
DREADME-NAN.md46 * Hard-coded values are in <b>bold</b>, e.g. <b>true</b> or <b>5</b>
59 * Index [NanBandIndex.NAN_BAND_24GHZ] = <b>true</b>
61 * uint8_t hopCountMax = <b>2</b>
67 * bool includePublishServiceIdsInBeacon = <b>true</b>
68 * uint8_t numberOfPublishServiceIdsInBeacon = <b>0</b>
69 * bool includeSubscribeServiceIdsInBeacon = <b>true</b>
70 * uint8_t numberOfSubscribeServiceIdsInBeacon = <b>0</b>
71 * uint16_t rssiWindowSize = <b>8</b>
73 * Normal run-time: set to <b>1800</b> (30 minutes)
74 * Tests: set to <b>120</b> (2 minutes)
[all …]
/hardware/interfaces/wifi/1.0/
DREADME-NAN.md43 * Hard-coded values are in <b>bold</b>, e.g. <b>true</b> or <b>5</b>
56 * Index [NanBandIndex.NAN_BAND_24GHZ] = <b>true</b>
58 * uint8_t hopCountMax = <b>2</b>
64 * bool includePublishServiceIdsInBeacon = <b>true</b>
65 * uint8_t numberOfPublishServiceIdsInBeacon = <b>0</b>
66 * bool includeSubscribeServiceIdsInBeacon = <b>true</b>
67 * uint8_t numberOfSubscribeServiceIdsInBeacon = <b>0</b>
68 * uint16_t rssiWindowSize = <b>8</b>
70 * Normal run-time: set to <b>1800</b> (30 minutes)
71 * Tests: set to <b>120</b> (2 minutes)
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/
Dtimespec.h53 const struct timespec *a, const struct timespec *b) in timespec_add() argument
55 r->tv_sec = a->tv_sec + b->tv_sec; in timespec_add()
56 r->tv_nsec = a->tv_nsec + b->tv_nsec; in timespec_add()
72 const struct timespec *a, const struct timespec *b) in timespec_sub() argument
74 r->tv_sec = a->tv_sec - b->tv_sec; in timespec_sub()
75 r->tv_nsec = a->tv_nsec - b->tv_nsec; in timespec_sub()
95 timespec_add_nsec(struct timespec *r, const struct timespec *a, uint64_t b) in timespec_add_nsec() argument
97 uint64_t b_sec = b / NSEC_PER_SEC; in timespec_add_nsec()
98 long b_nsec = b % NSEC_PER_SEC; in timespec_add_nsec()
128 timespec_add_msec(struct timespec *r, const struct timespec *a, uint64_t b) in timespec_add_msec() argument
[all …]
Dbitset.h57 #define BITSET_BITWORD(b) ((b) / BITSET_WORDBITS) argument
58 #define BITSET_BIT(b) (1u << ((b) % BITSET_WORDBITS)) argument
62 #define BITSET_TEST(x, b) (((x)[BITSET_BITWORD(b)] & BITSET_BIT(b)) != 0) argument
63 #define BITSET_SET(x, b) ((x)[BITSET_BITWORD(b)] |= BITSET_BIT(b)) argument
64 #define BITSET_CLEAR(x, b) ((x)[BITSET_BITWORD(b)] &= ~BITSET_BIT(b)) argument
66 #define BITSET_MASK(b) (((b) % BITSET_WORDBITS == 0) ? ~0 : BITSET_BIT(b) - 1) argument
67 #define BITSET_RANGE(b, e) ((BITSET_MASK((e) + 1)) & ~(BITSET_BIT(b) - 1)) argument
210 #define BITSET_TEST_RANGE_INSIDE_WORD(x, b, e) \ argument
211 (BITSET_BITWORD(b) == BITSET_BITWORD(e) ? \
212 (((x)[BITSET_BITWORD(b)] & BITSET_RANGE(b, e)) != 0) : \
[all …]
Du_pack_color.h63 util_pack_color_ub(uint8_t r, uint8_t g, uint8_t b, uint8_t a, in util_pack_color_ub() argument
69 uc->ui[0] = (r << 24) | (g << 16) | (b << 8) | a; in util_pack_color_ub()
74 uc->ui[0] = (r << 24) | (g << 16) | (b << 8) | 0xff; in util_pack_color_ub()
79 uc->ui[0] = (a << 24) | (r << 16) | (g << 8) | b; in util_pack_color_ub()
84 uc->ui[0] = (0xff << 24) | (r << 16) | (g << 8) | b; in util_pack_color_ub()
89 uc->ui[0] = (b << 24) | (g << 16) | (r << 8) | a; in util_pack_color_ub()
94 uc->ui[0] = (b << 24) | (g << 16) | (r << 8) | 0xff; in util_pack_color_ub()
99 uc->us = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); in util_pack_color_ub()
104 uc->us = ((0x80) << 8) | ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | (b >> 3); in util_pack_color_ub()
109 uc->us = ((a & 0x80) << 8) | ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | (b >> 3); in util_pack_color_ub()
[all …]
Dmacros.h39 #define access(a, b) _access(a, b) argument
107 # define __same_type(a, b) \ argument
108 __builtin_types_compatible_p(__typeof__(a), __typeof__(b))
382 #define BITFIELD_BIT(b) (1u << (b)) argument
384 #define BITFIELD_MASK(b) \ argument
385 ((b) == 32 ? (~0u) : BITFIELD_BIT((b) % 32) - 1)
387 #define BITFIELD_RANGE(b, count) \ argument
388 (BITFIELD_MASK((b) + (count)) & ~BITFIELD_MASK(b))
391 #define BITFIELD64_BIT(b) (1ull << (b)) argument
393 #define BITFIELD64_MASK(b) \ argument
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/
DTriStateTest.cpp45 tri_uint32_t b; in TEST() local
46 b = a; in TEST()
47 EXPECT_FALSE(b.isSet()); in TEST()
52 b = a; in TEST()
53 EXPECT_TRUE(b.isSet()); in TEST()
57 EXPECT_TRUE(b.isSet()); in TEST()
59 tri_uint32_t c(b); in TEST()
80 tri_uint32_t b; in TEST() local
81 EXPECT_EQ(static_cast<uint32_t>(100), (++b).get(100)); in TEST()
82 EXPECT_EQ(static_cast<uint32_t>(101), (b++).get(101)); in TEST()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_nir_convert_ycbcr.c32 y_range(nir_builder *b, in y_range() argument
41 return nir_fmul_imm(b, in y_range()
42 nir_fadd_imm(b, in y_range()
43 nir_fmul_imm(b, y_channel, in y_range()
55 chroma_range(nir_builder *b, in chroma_range() argument
62 return nir_fadd(b, chroma_channel, in chroma_range()
63 nir_imm_float(b, -pow(2, bpc - 1) / (pow(2, bpc) - 1.0f))); in chroma_range()
65 return nir_fmul_imm(b, in chroma_range()
66 nir_fadd_imm(b, in chroma_range()
67 nir_fmul_imm(b, chroma_channel, in chroma_range()
[all …]
/hardware/qcom/sm7250/display/sdm/libs/utils/
Dutils.cpp41 float gcd(float a, float b) { in gcd() argument
42 if (a < b) { in gcd()
43 std::swap(a, b); in gcd()
46 while (b != 0) { in gcd()
47 float tmp = b; in gcd()
48 b = fmodf(a, b); in gcd()
55 float lcm(float a, float b) { in lcm() argument
56 return (a * b) / gcd(a, b); in lcm()
/hardware/qcom/sm8150/display/sdm/libs/utils/
Dutils.cpp41 float gcd(float a, float b) { in gcd() argument
42 if (a < b) { in gcd()
43 std::swap(a, b); in gcd()
46 while (b != 0) { in gcd()
47 float tmp = b; in gcd()
48 b = fmodf(a, b); in gcd()
55 float lcm(float a, float b) { in lcm() argument
56 return (a * b) / gcd(a, b); in lcm()
/hardware/qcom/display/msm8998/sdm/libs/utils/
Dutils.cpp41 float gcd(float a, float b) { in gcd() argument
42 if (a < b) { in gcd()
43 std::swap(a, b); in gcd()
46 while (b != 0) { in gcd()
47 float tmp = b; in gcd()
48 b = fmodf(a, b); in gcd()
55 float lcm(float a, float b) { in lcm() argument
56 return (a * b) / gcd(a, b); in lcm()
/hardware/qcom/display/msm8909w_3100/sdm/libs/utils/
Dutils.cpp41 float gcd(float a, float b) { in gcd() argument
42 if (a < b) { in gcd()
43 std::swap(a, b); in gcd()
46 while (b != 0) { in gcd()
47 float tmp = b; in gcd()
48 b = fmodf(a, b); in gcd()
55 float lcm(float a, float b) { in lcm() argument
56 return (a * b) / gcd(a, b); in lcm()
/hardware/qcom/display/msm8909/sdm/libs/utils/
Dutils.cpp41 float gcd(float a, float b) { in gcd() argument
42 if (a < b) { in gcd()
43 std::swap(a, b); in gcd()
46 while (b != 0) { in gcd()
47 float tmp = b; in gcd()
48 b = fmodf(a, b); in gcd()
55 float lcm(float a, float b) { in lcm() argument
56 return (a * b) / gcd(a, b); in lcm()
/hardware/google/gfxstream/third-party/glm/include/glm/detail/
D_vectorize.hpp59 …ALIFIER static tvec1<T, P> call(T (*Func) (T x, T y), tvec1<T, P> const & a, tvec1<T, P> const & b) in call()
61 return tvec1<T, P>(Func(a.x, b.x)); in call()
68 …ALIFIER static tvec2<T, P> call(T (*Func) (T x, T y), tvec2<T, P> const & a, tvec2<T, P> const & b) in call()
70 return tvec2<T, P>(Func(a.x, b.x), Func(a.y, b.y)); in call()
77 …ALIFIER static tvec3<T, P> call(T (*Func) (T x, T y), tvec3<T, P> const & a, tvec3<T, P> const & b) in call()
79 return tvec3<T, P>(Func(a.x, b.x), Func(a.y, b.y), Func(a.z, b.z)); in call()
86 …ALIFIER static tvec4<T, P> call(T (*Func) (T x, T y), tvec4<T, P> const & a, tvec4<T, P> const & b) in call()
88 return tvec4<T, P>(Func(a.x, b.x), Func(a.y, b.y), Func(a.z, b.z), Func(a.w, b.w)); in call()
98 GLM_FUNC_QUALIFIER static tvec1<T, P> call(T (*Func) (T x, T y), tvec1<T, P> const & a, T b) in call()
100 return tvec1<T, P>(Func(a.x, b)); in call()
[all …]
/hardware/google/gfxstream/guest/mesa/include/D3D9/
Dd3d9.h467 #define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) argument
473 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) argument
474 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b) argument
475 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d) argument
476 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) argument
477 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) argument
478 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f) argument
479 …efine IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType… argument
480 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,… argument
481 …define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(… argument
[all …]
/hardware/interfaces/broadcastradio/common/utils1x/
DUtils.cpp36 auto b = static_cast<ProgramType>(ib); in isCompatibleProgramType() local
38 if (a == b) return true; in isCompatibleProgramType()
39 if (a == ProgramType::AM && b == ProgramType::AM_HD) return true; in isCompatibleProgramType()
40 if (a == ProgramType::AM_HD && b == ProgramType::AM) return true; in isCompatibleProgramType()
41 if (a == ProgramType::FM && b == ProgramType::FM_HD) return true; in isCompatibleProgramType()
42 if (a == ProgramType::FM_HD && b == ProgramType::FM) return true; in isCompatibleProgramType()
46 static bool bothHaveId(const ProgramSelector& a, const ProgramSelector& b, in bothHaveId() argument
48 return hasId(a, type) && hasId(b, type); in bothHaveId()
51 static bool anyHaveId(const ProgramSelector& a, const ProgramSelector& b, in anyHaveId() argument
53 return hasId(a, type) || hasId(b, type); in anyHaveId()
[all …]

12345678910>>...32