Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 515) sorted by relevance

12345678910>>...21

/hardware/google/gfxstream/guest/mesa/src/util/
Dfast_idiv_by_const.h135 util_fast_udiv32(uint32_t n, struct util_fast_udiv_info info) in util_fast_udiv32() argument
137 n = n >> info.pre_shift; in util_fast_udiv32()
145 n = (((uint64_t)n + info.increment) * info.multiplier) >> 32; in util_fast_udiv32()
146 n = n >> info.post_shift; in util_fast_udiv32()
147 return n; in util_fast_udiv32()
154 util_fast_udiv32_nuw(uint32_t n, struct util_fast_udiv_info info) in util_fast_udiv32_nuw() argument
156 assert(n != UINT32_MAX); in util_fast_udiv32_nuw()
157 n = n >> info.pre_shift; in util_fast_udiv32_nuw()
158 n = n + info.increment; in util_fast_udiv32_nuw()
159 n = ((uint64_t)n * info.multiplier) >> 32; in util_fast_udiv32_nuw()
[all …]
Du_math.h386 util_logbase2(unsigned n) in util_logbase2() argument
389 return ((sizeof(unsigned) * 8 - 1) - __builtin_clz(n | 1)); in util_logbase2()
392 if (n >= 1<<16) { n >>= 16; pos += 16; } in util_logbase2()
393 if (n >= 1<< 8) { n >>= 8; pos += 8; } in util_logbase2()
394 if (n >= 1<< 4) { n >>= 4; pos += 4; } in util_logbase2()
395 if (n >= 1<< 2) { n >>= 2; pos += 2; } in util_logbase2()
396 if (n >= 1<< 1) { pos += 1; } in util_logbase2()
402 util_logbase2_64(uint64_t n) in util_logbase2_64() argument
405 return ((sizeof(uint64_t) * 8 - 1) - __builtin_clzll(n | 1)); in util_logbase2_64()
408 if (n >= 1ull<<32) { n >>= 32; pos += 32; } in util_logbase2_64()
[all …]
/hardware/interfaces/confirmationui/support/src/
DConfirmationUITranslations.c1080 for (int n = 0; haystack[n] != NULL; n++) { in ConfirmationUITranslations_find_str() local
1081 if (strcmp(needle, haystack[n]) == 0) { in ConfirmationUITranslations_find_str()
1082 return n; in ConfirmationUITranslations_find_str()
1094 size_t n; in ConfirmationUITranslations_lang_id_match() local
1102 for (n = 0; lang_id[n] != '\0' && n < MAX_LANG_ID_SIZE; n++) { in ConfirmationUITranslations_lang_id_match()
1103 lang_id_buf[n] = lang_id[n]; in ConfirmationUITranslations_lang_id_match()
1105 lang_id_buf[n] = '\0'; in ConfirmationUITranslations_lang_id_match()
1107 while (n >= 1) { in ConfirmationUITranslations_lang_id_match()
1109 while (n >= 1 && lang_id_buf[n - 1] != '-') { in ConfirmationUITranslations_lang_id_match()
1110 n--; in ConfirmationUITranslations_lang_id_match()
[all …]
/hardware/google/aemu/base/
DWin32UnicodeString_unittest.cpp43 for (size_t n = 0; n < kDataSize; ++n) { in TEST() local
44 Win32UnicodeString str1(kData[n].utf8); in TEST()
45 EXPECT_EQ(wcslen(kData[n].utf16), str1.size()); in TEST()
46 EXPECT_STREQ(kData[n].utf16, str1.c_str()); in TEST()
48 Win32UnicodeString str2(kData[n].utf8, strlen(kData[n].utf8)); in TEST()
49 EXPECT_EQ(wcslen(kData[n].utf16), str2.size()); in TEST()
50 EXPECT_STREQ(kData[n].utf16, str2.c_str()); in TEST()
52 std::string baseStr(kData[n].utf8); in TEST()
54 EXPECT_EQ(wcslen(kData[n].utf16), str3.size()); in TEST()
55 EXPECT_STREQ(kData[n].utf16, str3.c_str()); in TEST()
[all …]
/hardware/qcom/sm7250/display/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
/hardware/qcom/display/msm8998/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
/hardware/qcom/sm8150/display/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
/hardware/qcom/display/msm8909/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/asciidoctor-chunker/
Dasciidoctor-chunker.js4n={1073:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},9125:(e,t,n)… argument
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Drb_tree_test.cpp57 rb_test_node_cmp_void(const struct rb_node *n, const void *v) in rb_test_node_cmp_void() argument
59 struct rb_test_node *tn = rb_node_data(struct rb_test_node, n, node); in rb_test_node_cmp_void()
78 rb_tree_foreach(struct rb_test_node, n, tree, node) { in validate_tree_order()
80 assert(n->key >= max_val); in validate_tree_order()
81 if (n->key > max_val) { in validate_tree_order()
82 max_val = n->key; in validate_tree_order()
88 assert(prev == NULL || prev < n); in validate_tree_order()
91 prev = n; in validate_tree_order()
99 rb_tree_foreach_safe(struct rb_test_node, n, tree, node) { in validate_tree_order()
101 assert(n->key >= max_val); in validate_tree_order()
[all …]
Dfast_idiv_by_const_test.cpp142 fast_udiv_add_sat(uint64_t n, struct util_fast_udiv_info m, unsigned num_bits) in fast_udiv_add_sat() argument
144 assert(uint_is_in_range(n, num_bits)); in fast_udiv_add_sat()
147 n = n >> m.pre_shift; in fast_udiv_add_sat()
148 n = uadd_sat(n, m.increment, num_bits); in fast_udiv_add_sat()
149 n = umul_add_high(n, m.multiplier, 0, num_bits); in fast_udiv_add_sat()
150 n = n >> m.post_shift; in fast_udiv_add_sat()
152 return n; in fast_udiv_add_sat()
156 fast_udiv_mul_add(uint64_t n, struct util_fast_udiv_info m, unsigned num_bits) in fast_udiv_mul_add() argument
158 assert(uint_is_in_range(n, num_bits)); in fast_udiv_mul_add()
161 n = n >> m.pre_shift; in fast_udiv_mul_add()
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/katex/contrib/
Dcopy-tex.min.js1n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:… argument
Dauto-render.min.js1n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exp… argument
Dmhchem.min.js1n="object"==typeof exports?e(require("katex")):e(t.katex);for(var o in n)("object"==typeof exports… argument
/hardware/st/secure_element2/secure_element/esehal/src/
Diso7816_t1.c53 t1_init_recv_window(struct t1_state *t1, void *buf, size_t n) in t1_init_recv_window() argument
56 t1->recv.size = n; in t1_init_recv_window()
66 t1_recv_window_append(struct t1_state *t1, const void *buf, int n) in t1_recv_window_append() argument
69 if (n > free) in t1_recv_window_append()
70 n = (int)free; in t1_recv_window_append()
71 if (n > 0) { in t1_recv_window_append()
72 memcpy(t1->recv.end, buf, (size_t)n); in t1_recv_window_append()
73 t1->recv.end += n; in t1_recv_window_append()
91 t1_init_send_window(struct t1_state *t1, const void *buf, size_t n) in t1_init_send_window() argument
94 t1->send.end = t1->send.start + n; in t1_init_send_window()
[all …]
/hardware/google/gfxstream/codegen/generic-apigen/
DParser_unittest.cpp32 for (size_t n = 0; n < kDataSize; ++n) { in TEST() local
35 text += kData[n].input; in TEST()
38 result = normalizeTypeDeclaration(kData[n].input); in TEST()
39 EXPECT_STREQ(kData[n].expected, result.c_str()) << text; in TEST()
63 for (size_t n = 0; n < kDataSize; ++n) { in TEST() local
66 text += kData[n].input; in TEST()
69 EXPECT_EQ(kData[n].expected, in TEST()
70 parseTypeDeclaration(kData[n].input, in TEST()
73 if (kData[n].expected) { in TEST()
74 EXPECT_STREQ(kData[n].expectedType, vartype.c_str()) << text; in TEST()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_mixer.c99 static const char *elem_iface_name(snd_ctl_elem_iface_t n) in elem_iface_name() argument
101 switch (n) { in elem_iface_name()
113 static const char *elem_type_name(snd_ctl_elem_type_t n) in elem_type_name() argument
115 switch (n) { in elem_type_name()
129 unsigned n,m; in mixer_close() local
135 for (n = 0; n < mixer->count; n++) { in mixer_close()
136 if (mixer->ctl[n].ename) { in mixer_close()
137 unsigned max = mixer->ctl[n].info->value.enumerated.items; in mixer_close()
139 free(mixer->ctl[n].ename[m]); in mixer_close()
140 free(mixer->ctl[n].ename); in mixer_close()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/EGL/
DEglGlobalInfo.cpp87 for (size_t n = 0; n < m_displays.size(); ++n) { in ~EglGlobalInfo() local
88 delete m_displays[n]; in ~EglGlobalInfo()
96 for (size_t n = 0; n < m_displays.size(); ++n) { in addDisplay() local
97 if (m_displays[n]->getEglOsEngineDisplay() == dpy) { in addDisplay()
98 return m_displays[n]; in addDisplay()
112 for (size_t n = 0; n < m_displays.size(); ++n) { in removeDisplay() local
113 if (m_displays[n] == static_cast<EglDisplay*>(dpy)) { in removeDisplay()
114 delete m_displays[n]; in removeDisplay()
115 m_displays.erase(m_displays.begin() + n); in removeDisplay()
124 for (size_t n = 0; n < m_displays.size(); ++n) { in getDisplayFromDisplayType() local
[all …]
/hardware/google/gfxstream/guest/qemupipe/
Dqemu_pipe_common.cpp21 int n = QEMU_PIPE_RETRY(qemu_pipe_read(pipe, p, size)); in qemu_pipe_read_fully() local
22 if (n < 0) return n; in qemu_pipe_read_fully()
24 p += n; in qemu_pipe_read_fully()
25 size -= n; in qemu_pipe_read_fully()
35 int n = QEMU_PIPE_RETRY(qemu_pipe_write(pipe, p, size)); in qemu_pipe_write_fully() local
36 if (n < 0) return n; in qemu_pipe_write_fully()
38 p += n; in qemu_pipe_write_fully()
39 size -= n; in qemu_pipe_write_fully()

12345678910>>...21