/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_ir_common.c | 41 func_ctx(struct lp_exec_mask *mask) in func_ctx() argument 43 assert(mask->function_stack_size > 0); in func_ctx() 44 assert(mask->function_stack_size <= LP_MAX_NUM_FUNCS); in func_ctx() 45 return &mask->function_stack[mask->function_stack_size - 1]; in func_ctx() 55 mask_has_loop(struct lp_exec_mask *mask) in mask_has_loop() argument 58 for (i = mask->function_stack_size - 1; i >= 0; --i) { in mask_has_loop() 59 const struct function_ctx *ctx = &mask->function_stack[i]; in mask_has_loop() 73 mask_has_switch(struct lp_exec_mask *mask) in mask_has_switch() argument 76 for (i = mask->function_stack_size - 1; i >= 0; --i) { in mask_has_switch() 77 const struct function_ctx *ctx = &mask->function_stack[i]; in mask_has_switch() [all …]
|
/third_party/alsa-lib/src/pcm/ |
D | mask_inline.h | 72 MASK_INLINE void snd_mask_none(snd_mask_t *mask) in snd_mask_none() argument 74 memset(mask, 0, sizeof(*mask)); in snd_mask_none() 77 MASK_INLINE void snd_mask_any(snd_mask_t *mask) in snd_mask_any() argument 79 memset(mask, 0xff, MASK_SIZE * sizeof(uint32_t)); in snd_mask_any() 82 MASK_INLINE int snd_mask_empty(const snd_mask_t *mask) in snd_mask_empty() argument 86 if (mask->bits[i]) in snd_mask_empty() 91 MASK_INLINE int snd_mask_full(const snd_mask_t *mask) in snd_mask_full() argument 95 if (mask->bits[i] != 0xffffffff) in snd_mask_full() 100 MASK_INLINE unsigned int snd_mask_count(const snd_mask_t *mask) in snd_mask_count() argument 104 w += hweight32(mask->bits[i]); in snd_mask_count() [all …]
|
D | mask.h | 29 void snd_mask_none(snd_mask_t *mask); 30 void snd_mask_any(snd_mask_t *mask); 31 void snd_mask_load(snd_mask_t *mask, unsigned int msk); 32 int snd_mask_empty(const snd_mask_t *mask); 33 int snd_mask_full(const snd_mask_t *mask); 34 void snd_mask_set(snd_mask_t *mask, unsigned int val); 35 void snd_mask_reset(snd_mask_t *mask, unsigned int val); 36 void snd_mask_copy(snd_mask_t *mask, const snd_mask_t *v); 37 int snd_mask_test(const snd_mask_t *mask, unsigned int val); 38 void snd_mask_intersect(snd_mask_t *mask, const snd_mask_t *v); [all …]
|
/third_party/boost/boost/multiprecision/detail/ |
D | bitscan.hpp | 21 inline BOOST_MP_CXX14_CONSTEXPR unsigned find_lsb_default(Unsigned mask) in find_lsb_default() argument 24 while (!(mask & 1u)) in find_lsb_default() 26 mask >>= 1; in find_lsb_default() 33 inline BOOST_MP_CXX14_CONSTEXPR unsigned find_msb_default(Unsigned mask) in find_msb_default() argument 36 while (mask) in find_msb_default() 39 mask >>= 1; in find_msb_default() 45 inline BOOST_MP_CXX14_CONSTEXPR unsigned find_lsb(Unsigned mask, const mpl::int_<0>&) in find_lsb() argument 47 return find_lsb_default(mask); in find_lsb() 51 inline BOOST_MP_CXX14_CONSTEXPR unsigned find_msb(Unsigned mask, const mpl::int_<0>&) in find_msb() argument 53 return find_msb_default(mask); in find_msb() [all …]
|
/third_party/protobuf/src/google/protobuf/util/ |
D | field_mask_util_test.cc | 124 FieldMask mask; in TEST() local 125 EXPECT_EQ("", FieldMaskUtil::ToString(mask)); in TEST() 126 mask.add_paths("foo_bar"); in TEST() 127 EXPECT_EQ("foo_bar", FieldMaskUtil::ToString(mask)); in TEST() 128 mask.add_paths("baz_quz"); in TEST() 129 EXPECT_EQ("foo_bar,baz_quz", FieldMaskUtil::ToString(mask)); in TEST() 131 FieldMaskUtil::FromString("", &mask); in TEST() 132 EXPECT_EQ(0, mask.paths_size()); in TEST() 133 FieldMaskUtil::FromString("fooBar", &mask); in TEST() 134 EXPECT_EQ(1, mask.paths_size()); in TEST() [all …]
|
/third_party/mesa3d/src/mesa/math/ |
D | m_clip_tmp.h | 65 GLuint mask; in TAG() local 66 mask = (((cw < cx) << CLIP_RIGHT_SHIFT)); in TAG() 67 mask |= (((cw < -cx) << CLIP_LEFT_SHIFT)); in TAG() 68 mask |= (((cw < cy) << CLIP_TOP_SHIFT)); in TAG() 69 mask |= (((cw < -cy) << CLIP_BOTTOM_SHIFT)); in TAG() 71 mask |= (((cw < cz) << CLIP_FAR_SHIFT)); in TAG() 72 mask |= (((cw < -cz) << CLIP_NEAR_SHIFT)); in TAG() 75 GLubyte mask = 0; in TAG() local 76 if (-cx + cw < 0) mask |= CLIP_RIGHT_BIT; in TAG() 77 if ( cx + cw < 0) mask |= CLIP_LEFT_BIT; in TAG() [all …]
|
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | FieldMaskUtilTest.java | 81 FieldMask mask = FieldMask.newBuilder().addPaths("foo").build(); in testToString() local 82 assertEquals("foo", FieldMaskUtil.toString(mask)); in testToString() 83 mask = FieldMask.newBuilder().addPaths("foo").addPaths("bar").build(); in testToString() 84 assertEquals("foo,bar", FieldMaskUtil.toString(mask)); in testToString() 87 mask = in testToString() 95 assertEquals("foo,bar", FieldMaskUtil.toString(mask)); in testToString() 99 FieldMask mask = FieldMaskUtil.fromString(""); in testFromString() local 100 assertEquals(0, mask.getPathsCount()); in testFromString() 101 mask = FieldMaskUtil.fromString("foo"); in testFromString() 102 assertEquals(1, mask.getPathsCount()); in testFromString() [all …]
|
/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
D | ht_affinity.c | 43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, m… argument 44 #define sched_getaffinity(pid, cpusetsize, mask) syscall(__NR_sched_getaffinity, pid, cpusetsize, m… argument 51 unsigned int mask; in HT_SetAffinity() local 66 for (i = 0, mask = 0x1; i < cpu_count; i++, mask = mask << 1) { in HT_SetAffinity() 68 printf("mask: %x\n", mask); in HT_SetAffinity() 70 sched_setaffinity(pid, sizeof(unsigned long), &mask); in HT_SetAffinity() 94 for (i = 0, mask = 0x3; i < cpu_count - 1; i++, mask = mask << 1) { in HT_SetAffinity() 96 printf("mask: %x\n", mask); in HT_SetAffinity() 98 sched_setaffinity(pid, sizeof(unsigned long), &mask); in HT_SetAffinity() 150 unsigned int mask[2], mask1[2]; in HT_GetAffinity() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/ |
D | BlockVerifier.cpp | 15 constexpr unsigned long long mask(BlockVerifier::State S) { in mask() function 65 {mask(State::BufferExtents) | mask(State::NewBuffer)}}, in transition() 67 {State::BufferExtents, {mask(State::NewBuffer)}}, in transition() 69 {State::NewBuffer, {mask(State::WallClockTime)}}, in transition() 72 {mask(State::PIDEntry) | mask(State::NewCPUId)}}, in transition() 74 {State::PIDEntry, {mask(State::NewCPUId)}}, in transition() 77 {mask(State::NewCPUId) | mask(State::TSCWrap) | in transition() 78 mask(State::CustomEvent) | mask(State::Function) | in transition() 79 mask(State::EndOfBuffer) | mask(State::TypedEvent)}}, in transition() 82 {mask(State::TSCWrap) | mask(State::NewCPUId) | in transition() [all …]
|
/third_party/glib/gio/ |
D | ginetaddressmask.c | 78 GInetAddressMask *mask = G_INET_ADDRESS_MASK (object); in g_inet_address_mask_set_property() local 83 if (mask->priv->addr) in g_inet_address_mask_set_property() 84 g_object_unref (mask->priv->addr); in g_inet_address_mask_set_property() 85 mask->priv->addr = g_value_dup_object (value); in g_inet_address_mask_set_property() 89 mask->priv->length = g_value_get_uint (value); in g_inet_address_mask_set_property() 105 GInetAddressMask *mask = G_INET_ADDRESS_MASK (object); in g_inet_address_mask_get_property() local 110 g_value_set_enum (value, g_inet_address_get_family (mask->priv->addr)); in g_inet_address_mask_get_property() 114 g_value_set_object (value, mask->priv->addr); in g_inet_address_mask_get_property() 118 g_value_set_uint (value, mask->priv->length); in g_inet_address_mask_get_property() 129 GInetAddressMask *mask = G_INET_ADDRESS_MASK (object); in g_inet_address_mask_dispose() local [all …]
|
/third_party/mesa3d/src/compiler/glsl/ |
D | opt_swizzle.cpp | 72 if (swiz2->mask.num_components >= 1) in handle_rvalue() 73 mask2[0] = swiz2->mask.x; in handle_rvalue() 74 if (swiz2->mask.num_components >= 2) in handle_rvalue() 75 mask2[1] = swiz2->mask.y; in handle_rvalue() 76 if (swiz2->mask.num_components >= 3) in handle_rvalue() 77 mask2[2] = swiz2->mask.z; in handle_rvalue() 78 if (swiz2->mask.num_components >= 4) in handle_rvalue() 79 mask2[3] = swiz2->mask.w; in handle_rvalue() 81 if (swiz->mask.num_components >= 1) in handle_rvalue() 82 swiz->mask.x = mask2[swiz->mask.x]; in handle_rvalue() [all …]
|
/third_party/mesa3d/src/mesa/swrast/ |
D | s_bitmap.c | 83 GLubyte mask = 1U << (unpack->SkipPixels & 0x7); in _swrast_Bitmap() local 85 if (*src & mask) { in _swrast_Bitmap() 90 if (mask == 128U) { in _swrast_Bitmap() 92 mask = 1U; in _swrast_Bitmap() 95 mask = mask << 1; in _swrast_Bitmap() 100 if (mask != 1) in _swrast_Bitmap() 105 GLubyte mask = 128U >> (unpack->SkipPixels & 0x7); in _swrast_Bitmap() local 107 if (*src & mask) { in _swrast_Bitmap() 112 if (mask == 1U) { in _swrast_Bitmap() 114 mask = 128U; in _swrast_Bitmap() [all …]
|
/third_party/boost/boost/xpressive/traits/detail/ |
D | c_ctype.hpp | 134 static bool isctype(char ch, char_class_type mask) in isctype() 137 if(0 != (_Getchrtype((unsigned char)ch) & mask)) in isctype() 144 case '_': return 0 != (mask & char_class_underscore); in isctype() 145 case '\n': case '\r': case '\f': return 0 != (mask & char_class_newline); in isctype() 199 static bool isctype(wchar_t ch, char_class_type mask) in isctype() 202 return ((char_class_alpha & mask) && iswalpha(ch)) in isctype() 203 || ((char_class_blank & mask) && (L' ' == ch || L'\t' == ch)) // BUGBUG in isctype() 204 || ((char_class_cntrl & mask) && iswcntrl(ch)) in isctype() 205 || ((char_class_digit & mask) && iswdigit(ch)) in isctype() 206 || ((char_class_lower & mask) && iswlower(ch)) in isctype() [all …]
|
/third_party/mindspore/tests/st/networks/models/deeplabv3/src/utils/ |
D | custom_transforms.py | 33 def __call__(self, img, mask): argument 35 mask = np.array(mask).astype(np.float32) 38 return img, mask 43 def __call__(self, img, mask): argument 46 mask = mask.transpose(Image.FLIP_LEFT_RIGHT) 48 return img, mask 61 def __call__(self, img, mask): argument 64 mask = mask.rotate(rotate_degree, Image.NEAREST) 66 return img, mask 71 def __call__(self, img, mask): argument [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/deqp_support/ |
D | deqp_khr_gles31_test_expectations.txt | 128 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_0 = SKIP 129 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_1 = SKIP 130 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_2 = SKIP 131 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_3 = SKIP 132 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_4 = SKIP 133 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_5 = SKIP 134 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_6 = SKIP 135 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_7 = SKIP 136 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_0.mask_zero = SKIP 137 5990 PIXEL4ORXL VULKAN : KHR-GLES31.core.sample_variables.mask.rgba32f.samples_1.mask_0 = SKIP [all …]
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | bitops.c | 36 int mask, retval; in ext2fs_set_bit() local 40 mask = 1 << (nr & 0x07); in ext2fs_set_bit() 41 retval = mask & *ADDR; in ext2fs_set_bit() 42 *ADDR |= mask; in ext2fs_set_bit() 48 int mask, retval; in ext2fs_clear_bit() local 52 mask = 1 << (nr & 0x07); in ext2fs_clear_bit() 53 retval = mask & *ADDR; in ext2fs_clear_bit() 54 *ADDR &= ~mask; in ext2fs_clear_bit() 60 int mask; in ext2fs_test_bit() local 64 mask = 1 << (nr & 0x07); in ext2fs_test_bit() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | inotify.c | 27 uint32_t mask; member 36 static int inotify_add_watch_test(int fd, uint32_t mask) in inotify_add_watch_test() argument 39 return inotify_add_watch(fd, "/data", mask); in inotify_add_watch_test() 57 struct inotify_test data[TEST_DATA_COUNT] = {{.fd = fd, .wd = -1, .mask = IN_ACCESS}, in inotify_test() 58 {.fd = fd, .wd = -1, .mask = IN_MODIFY}, in inotify_test() 59 {.fd = fd, .wd = -1, .mask = IN_ATTRIB}, in inotify_test() 60 {.fd = fd, .wd = -1, .mask = IN_CLOSE_WRITE}, in inotify_test() 61 {.fd = fd, .wd = -1, .mask = IN_CLOSE_NOWRITE}, in inotify_test() 62 {.fd = fd, .wd = -1, .mask = IN_OPEN}, in inotify_test() 63 {.fd = fd, .wd = -1, .mask = IN_MOVED_FROM}, in inotify_test() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/smpte/ |
D | gstmask.c | 76 GstMask *mask = NULL; in gst_mask_factory_new() local 80 mask = g_new0 (GstMask, 1); in gst_mask_factory_new() 82 mask->type = definition->type; in gst_mask_factory_new() 83 mask->bpp = bpp; in gst_mask_factory_new() 84 mask->width = width; in gst_mask_factory_new() 85 mask->height = height; in gst_mask_factory_new() 86 mask->destroy_func = definition->destroy_func; in gst_mask_factory_new() 87 mask->user_data = definition->user_data; in gst_mask_factory_new() 91 g_free (mask); in gst_mask_factory_new() 95 mask->data = g_malloc (width * height * sizeof (guint32)); in gst_mask_factory_new() [all …]
|
/third_party/e2fsprogs/lib/e2p/ |
D | feature.c | 25 unsigned int mask; member 140 void e2p_feature_to_string(int compat, unsigned int mask, char *buf, in e2p_feature_to_string() argument 149 (mask == f->mask)) { in e2p_feature_to_string() 169 for (fnum = 0; mask >>= 1; fnum++); in e2p_feature_to_string() 173 const char *e2p_feature2string(int compat, unsigned int mask) in e2p_feature2string() argument 177 e2p_feature_to_string(compat, mask, buf, sizeof(buf) / sizeof(buf[0])); in e2p_feature2string() 181 int e2p_string2feature(char *string, int *compat_type, unsigned int *mask) in e2p_string2feature() argument 190 *mask = f->mask; in e2p_string2feature() 220 *mask = 1 << num; in e2p_string2feature() 224 const char *e2p_jrnl_feature2string(int compat, unsigned int mask) in e2p_jrnl_feature2string() argument [all …]
|
/third_party/skia/tests/sksl/errors/ |
D | SwizzleDomain.glsl | 3 error: 5: invalid swizzle mask 'xyra' 4 error: 6: invalid swizzle mask 'zxtq' 5 error: 7: invalid swizzle mask 'wwRB' 6 error: 9: invalid swizzle mask 'rgxy' 7 error: 10: invalid swizzle mask 'bast' 8 error: 11: invalid swizzle mask 'gbLT' 9 error: 13: invalid swizzle mask 'sxyz' 10 error: 14: invalid swizzle mask 'tpbb' 11 error: 15: invalid swizzle mask 'qsTR' 12 error: 17: invalid swizzle mask 'LTxy' [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_blit.h | 135 const unsigned mask = info->mask; in nv50_blit_derive_color_mask() local 143 if (mask & PIPE_MASK_S) in nv50_blit_derive_color_mask() 145 if (mask & PIPE_MASK_Z) in nv50_blit_derive_color_mask() 151 if (mask & PIPE_MASK_S) in nv50_blit_derive_color_mask() 153 if (mask & PIPE_MASK_Z) in nv50_blit_derive_color_mask() 157 if (mask & (PIPE_MASK_R | PIPE_MASK_Z)) color_mask |= 0x0001; in nv50_blit_derive_color_mask() 158 if (mask & (PIPE_MASK_G | PIPE_MASK_S)) color_mask |= 0x0010; in nv50_blit_derive_color_mask() 159 if (mask & PIPE_MASK_B) color_mask |= 0x0100; in nv50_blit_derive_color_mask() 160 if (mask & PIPE_MASK_A) color_mask |= 0x1000; in nv50_blit_derive_color_mask() 170 uint32_t mask = 0; in nv50_blit_eng2d_get_mask() local [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | apev2mux.c | 47 test_taglib_apev2mux_create_tags (guint32 mask) in test_taglib_apev2mux_create_tags() argument 53 if (mask & (1 << 0)) { in test_taglib_apev2mux_create_tags() 57 if (mask & (1 << 1)) { in test_taglib_apev2mux_create_tags() 61 if (mask & (1 << 2)) { in test_taglib_apev2mux_create_tags() 65 if (mask & (1 << 3)) { in test_taglib_apev2mux_create_tags() 72 if (mask & (1 << 4)) { in test_taglib_apev2mux_create_tags() 76 if (mask & (1 << 5)) { in test_taglib_apev2mux_create_tags() 80 if (mask & (1 << 6)) { in test_taglib_apev2mux_create_tags() 84 if (mask & (1 << 7)) { in test_taglib_apev2mux_create_tags() 88 if (mask & (1 << 8)) { in test_taglib_apev2mux_create_tags() [all …]
|
/third_party/flutter/skia/tests/ |
D | MaskCacheTest.cpp | 39 SkMask mask; in DEF_TEST() local 41 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST() 47 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST() 48 mask.fRowBytes = 100; in DEF_TEST() 49 mask.fFormat = SkMask::kBW_Format; in DEF_TEST() 50 SkMaskCache::Add(sigma, style, rrect, mask, data, &cache); in DEF_TEST() 56 sk_bzero(&mask, sizeof(mask)); in DEF_TEST() 57 data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST() 60 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST() 61 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST() [all …]
|
/third_party/skia/tests/ |
D | MaskCacheTest.cpp | 39 SkMask mask; in DEF_TEST() local 41 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST() 47 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST() 48 mask.fRowBytes = 100; in DEF_TEST() 49 mask.fFormat = SkMask::kBW_Format; in DEF_TEST() 50 SkMaskCache::Add(sigma, style, rrect, mask, data, &cache); in DEF_TEST() 56 sk_bzero(&mask, sizeof(mask)); in DEF_TEST() 57 data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST() 60 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST() 61 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST() [all …]
|
/third_party/mesa3d/src/panfrost/util/ |
D | pan_ir.c | 33 pan_to_bytemask(unsigned bytes, unsigned mask) in pan_to_bytemask() argument 37 assert(mask == 0); in pan_to_bytemask() 41 return mask; in pan_to_bytemask() 45 (mask & 0x1) | in pan_to_bytemask() 46 ((mask & 0x2) << (2 - 1)) | in pan_to_bytemask() 47 ((mask & 0x4) << (4 - 2)) | in pan_to_bytemask() 48 ((mask & 0x8) << (6 - 3)) | in pan_to_bytemask() 49 ((mask & 0x10) << (8 - 4)) | in pan_to_bytemask() 50 ((mask & 0x20) << (10 - 5)) | in pan_to_bytemask() 51 ((mask & 0x40) << (12 - 6)) | in pan_to_bytemask() [all …]
|