Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 738) sorted by relevance

12345678910>>...30

/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/katex/contrib/
Drender-a11y-string.min.js1r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("katex"));else if… argument
Dauto-render.min.js1r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.e… function
Dmathtex-script-type.min.js1r="object"==typeof exports?t(require("katex")):t(e.katex);for(var n in r)("object"==typeof exports… function
Dcopy-tex.min.js1r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(… argument
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Dbitset_test.cpp156 BITSET_DECLARE(r, 128); in TEST()
159 BITSET_ZERO(r); in TEST()
163 BITSET_AND(r, a, b); in TEST()
164 EXPECT_EQ(BITSET_TEST_RANGE(r, 0, 31), false); in TEST()
165 EXPECT_EQ(BITSET_TEST_RANGE(r, 32, 63), false); in TEST()
166 EXPECT_EQ(BITSET_TEST_RANGE(r, 64, 95), false); in TEST()
167 EXPECT_EQ(BITSET_TEST_RANGE(r, 96, 127), false); in TEST()
172 BITSET_AND(r, a, b); in TEST()
174 EXPECT_EQ(BITSET_TEST_RANGE(r, 0, 31), false); in TEST()
175 EXPECT_EQ(BITSET_TEST_RANGE(r, 32, 63), false); in TEST()
[all …]
Du_atomic_test.cpp50 TypeParam v, r; in TYPED_TEST() local
56 r = p_atomic_read(&v); in TYPED_TEST()
57 ASSERT_EQ(r, ones) << "p_atomic_read"; in TYPED_TEST()
59 r = p_atomic_read_relaxed(&v); in TYPED_TEST()
60 ASSERT_EQ(r, ones) << "p_atomic_read_relaxed"; in TYPED_TEST()
63 r = p_atomic_cmpxchg(&v, 0, 1); in TYPED_TEST()
65 ASSERT_EQ(r, ones) << "p_atomic_cmpxchg"; in TYPED_TEST()
67 r = p_atomic_cmpxchg(&v, ones, 0); in TYPED_TEST()
69 ASSERT_EQ(r, ones) << "p_atomic_cmpxchg"; in TYPED_TEST()
72 r = p_atomic_xchg(&v, ones); in TYPED_TEST()
[all …]
Dtimespec_test.cpp35 struct timespec a, b, r; in TEST() local
41 timespec_add(&r, &a, &b); in TEST()
42 EXPECT_EQ(r.tv_sec, 3); in TEST()
43 EXPECT_EQ(r.tv_nsec, 1); in TEST()
48 struct timespec a, b, r; in TEST() local
54 timespec_sub(&r, &a, &b); in TEST()
55 EXPECT_EQ(r.tv_sec, 0); in TEST()
56 EXPECT_EQ(r.tv_nsec, NSEC_PER_SEC - 1); in TEST()
134 struct timespec a, r; in TEST() local
138 EXPECT_FALSE(timespec_add_nsec(&r, &a, 1)); in TEST()
[all …]
Dfast_urem_by_const_test.cpp44 uint32_t r; in rand_uint() local
46 r = 1ull << (rand() % 32); in rand_uint()
47 } while (r < min); in rand_uint()
48 return r; in rand_uint()
52 uint32_t r = 0; in rand_uint() local
54 r |= ((uint32_t)rand() & 0xf) << i * 8; in rand_uint()
55 return r >> (31 - (rand() % 32)); in rand_uint()
57 uint64_t r; in rand_uint() local
59 r = rand_uint(0); in rand_uint()
60 } while (r < min); in rand_uint()
[all …]
/hardware/google/gfxstream/guest/android-emu/aemu/base/
Dring_buffer.c53 void ring_buffer_init(struct ring_buffer* r) { in ring_buffer_init() argument
54 r->guest_version = 1; in ring_buffer_init()
55 r->write_pos = 0; in ring_buffer_init()
56 r->read_pos = 0; in ring_buffer_init()
58 r->read_live_count = 0; in ring_buffer_init()
59 r->read_yield_count = 0; in ring_buffer_init()
60 r->read_sleep_us_count = 0; in ring_buffer_init()
62 r->state = 0; in ring_buffer_init()
69 bool ring_buffer_can_write(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_write() argument
71 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_can_write()
[all …]
Dring_buffer.h47 void ring_buffer_init(struct ring_buffer* r);
52 struct ring_buffer* r, const void* data, uint32_t step_size, uint32_t steps);
54 struct ring_buffer* r, void* data, uint32_t step_size, uint32_t steps);
59 struct ring_buffer* r, uint32_t step_size, uint32_t steps);
61 struct ring_buffer* r, uint32_t step_size, uint32_t steps);
89 struct ring_buffer* r,
101 struct ring_buffer* r,
105 struct ring_buffer* r,
117 const struct ring_buffer* r,
121 const struct ring_buffer* r,
[all …]
/hardware/google/aemu/base/
Dring_buffer.cpp39 void ring_buffer_init(struct ring_buffer* r) { in ring_buffer_init() argument
40 r->host_version = 1; in ring_buffer_init()
41 r->write_pos = 0; in ring_buffer_init()
42 r->read_pos = 0; in ring_buffer_init()
44 r->read_live_count = 0; in ring_buffer_init()
45 r->read_yield_count = 0; in ring_buffer_init()
46 r->read_sleep_us_count = 0; in ring_buffer_init()
48 r->state = 0; in ring_buffer_init()
55 bool ring_buffer_can_write(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_write() argument
57 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_can_write()
[all …]
Dring_buffer_unittest.cpp34 ring_buffer r; in TEST() local
35 ring_buffer_init(&r); in TEST()
60 ring_buffer r; in TEST() local
61 ring_buffer_init(&r); in TEST()
79 ring_buffer_write(&r, elements.data() + written, 1, toWrite); in TEST()
88 ring_buffer_read(&r, result.data() + read, 1, toRead); in TEST()
101 static void writeTest(ring_buffer* r, const uint8_t* data, size_t stepSize, size_t numSteps) { in writeTest() argument
117 ring_buffer_write(r, in writeTest()
128 static void readTest(ring_buffer* r, uint8_t* data, size_t stepSize, size_t numSteps) { in readTest() argument
144 ring_buffer_read(r, in readTest()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_cmd_copy.c42 for (uint32_t r = 0; r < regionCount; r++) { in vk_common_CmdCopyBuffer() local
43 region2s[r] = (VkBufferCopy2) { in vk_common_CmdCopyBuffer()
45 .srcOffset = pRegions[r].srcOffset, in vk_common_CmdCopyBuffer()
46 .dstOffset = pRegions[r].dstOffset, in vk_common_CmdCopyBuffer()
47 .size = pRegions[r].size, in vk_common_CmdCopyBuffer()
80 for (uint32_t r = 0; r < regionCount; r++) { in vk_common_CmdCopyImage() local
81 region2s[r] = (VkImageCopy2) { in vk_common_CmdCopyImage()
83 .srcSubresource = pRegions[r].srcSubresource, in vk_common_CmdCopyImage()
84 .srcOffset = pRegions[r].srcOffset, in vk_common_CmdCopyImage()
85 .dstSubresource = pRegions[r].dstSubresource, in vk_common_CmdCopyImage()
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/gtx/
Dorthonormalize.inl9 tmat3x3<T, P> r = m; local
11 r[0] = normalize(r[0]);
13 T d0 = dot(r[0], r[1]);
14 r[1] -= r[0] * d0;
15 r[1] = normalize(r[1]);
17 T d1 = dot(r[1], r[2]);
18 d0 = dot(r[0], r[2]);
19 r[2] -= r[0] * d0 + r[1] * d1;
20 r[2] = normalize(r[2]);
22 return r;
Dtransform2.inl9 tmat3x3<T, P> r(1); local
10 r[1][0] = s;
11 return m * r;
17 tmat3x3<T, P> r(1); local
18 r[0][1] = s;
19 return m * r;
25 tmat4x4<T, P> r(1); local
26 r[0][1] = s;
27 r[0][2] = t;
28 return m * r;
[all …]
/hardware/google/aemu/base/include/aemu/base/
Dring_buffer.h47 void ring_buffer_init(struct ring_buffer* r);
52 struct ring_buffer* r, const void* data, uint32_t step_size, uint32_t steps);
54 struct ring_buffer* r, void* data, uint32_t step_size, uint32_t steps);
59 struct ring_buffer* r, uint32_t step_size, uint32_t steps);
61 struct ring_buffer* r, uint32_t step_size, uint32_t steps);
89 struct ring_buffer* r,
101 struct ring_buffer* r,
105 struct ring_buffer* r,
117 const struct ring_buffer* r,
122 const struct ring_buffer* r,
[all …]
/hardware/google/gfxstream/host/apigen-codec-common/X11/
DXregion.h99 #define EXTENTS(r,idRect){\ argument
100 if((r)->x1 < (idRect)->extents.x1)\
101 (idRect)->extents.x1 = (r)->x1;\
102 if((r)->y1 < (idRect)->extents.y1)\
103 (idRect)->extents.y1 = (r)->y1;\
104 if((r)->x2 > (idRect)->extents.x2)\
105 (idRect)->extents.x2 = (r)->x2;\
106 if((r)->y2 > (idRect)->extents.y2)\
107 (idRect)->extents.y2 = (r)->y2;\
136 #define ADDRECT(reg, r, rx1, ry1, rx2, ry2){\ argument
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/include/GLcommon/
DRangeManip.h26 Range(const Range& r):m_start(r.m_start),m_end(r.m_end),m_size(r.m_size){}; in Range() argument
31 Range& operator=(const Range& r) {
32 m_start = r.m_start;
33 m_end = r.m_end;
34 m_size = r.m_size;
37 bool operator ==(const Range& r) const {
38 return m_start == r.m_start && m_size == r.m_size && m_end == r.m_end;
40 bool operator !=(const Range& r) const {return !((*this) == r);};
41 bool rangeIntersection(const Range& r,Range& rOut) const ;
42 bool rangeUnion(const Range& r,Range& rOut) const ;
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/
Dtimespec.h52 timespec_add(struct timespec *r, 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()
57 if (r->tv_nsec > NSEC_PER_SEC) { in timespec_add()
58 r->tv_sec++; in timespec_add()
59 r->tv_nsec -= NSEC_PER_SEC; in timespec_add()
71 timespec_sub(struct timespec *r, 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()
76 if (r->tv_nsec < 0) { in timespec_sub()
[all …]
Du_atomic.c55 uint64_t r; in __sync_add_and_fetch_8() local
59 r = *ptr; in __sync_add_and_fetch_8()
62 return r; in __sync_add_and_fetch_8()
68 uint64_t r; in __sync_sub_and_fetch_8() local
72 r = *ptr; in __sync_sub_and_fetch_8()
75 return r; in __sync_sub_and_fetch_8()
81 uint64_t r; in __sync_fetch_and_add_8() local
84 r = *ptr; in __sync_fetch_and_add_8()
88 return r; in __sync_fetch_and_add_8()
94 uint64_t r; in __sync_fetch_and_sub_8() local
[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 …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/katex/
Dkatex.min.js1r(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.e… argument
/hardware/google/gfxstream/host/gl/glestranslator/GLcommon/
DRangeManip.cpp19 bool Range::rangeIntersection(const Range& r,Range& rOut) const { in rangeIntersection() argument
20 if(m_start > r.getEnd() || r.getStart() > m_end) return false; in rangeIntersection()
21 int max_start = (m_start > r.getStart())? m_start:r.getStart(); in rangeIntersection()
22 int min_end = (m_end < r.getEnd())?m_end:r.getEnd(); in rangeIntersection()
31 bool Range::rangeUnion(const Range& r,Range& rOut) const { in rangeUnion() argument
32 if(m_start > r.getEnd() || r.getStart() > m_end) return false; in rangeUnion()
33 int min_start = (m_start < r.getStart())?m_start:r.getStart(); in rangeUnion()
34 int max_end = (m_end > r.getEnd())?m_end:r.getEnd(); in rangeUnion()
43 void RangeList::addRange(const Range& r) { in addRange() argument
44 if(r.getSize()) in addRange()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/asciidoctor-chunker/
Dasciidoctor-chunker.js4r=n(2515);t.getDocumentRoot=function(e){for(;e.parent;)e=e.parent;return e},t.groupSelectors=funct… argument
/hardware/google/gfxstream/third-party/astc-encoder/Source/UnitTest/
Dtest_simd.cpp162 vfloat r = change_sign(a, b); in TEST() local
163 EXPECT_EQ(r.lane<0>(), 1.0f); in TEST()
164 EXPECT_EQ(r.lane<1>(), -1.0f); in TEST()
165 EXPECT_EQ(r.lane<2>(), -3.12f); in TEST()
166 EXPECT_EQ(r.lane<3>(), 3.12f); in TEST()
173 vfloat r = atan(a); in TEST() local
174 EXPECT_NEAR(r.lane<0>(), -0.149061f, 0.005f); in TEST()
175 EXPECT_NEAR(r.lane<1>(), 0.000000f, 0.005f); in TEST()
176 EXPECT_NEAR(r.lane<2>(), 0.733616f, 0.005f); in TEST()
177 EXPECT_NEAR(r.lane<3>(), 1.123040f, 0.005f); in TEST()
[all …]

12345678910>>...30