| /third_party/elfutils/libcpu/ |
| D | i386_data.h | 1 /* Helper routines for disassembler for x86/x86-64. 91 if (*d->prefixes & has_cs) in data_prefix() 94 *d->prefixes &= ~has_cs; in data_prefix() 96 else if (*d->prefixes & has_ds) in data_prefix() 99 *d->prefixes &= ~has_ds; in data_prefix() 101 else if (*d->prefixes & has_es) in data_prefix() 104 *d->prefixes &= ~has_es; in data_prefix() 106 else if (*d->prefixes & has_fs) in data_prefix() 109 *d->prefixes &= ~has_fs; in data_prefix() 111 else if (*d->prefixes & has_gs) in data_prefix() [all …]
|
| /third_party/rust/crates/nom/src/bytes/ |
| D | streaming.rs | 5 use crate::internal::{Err, IResult, Needed, Parser}; 19 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult}; 22 /// fn parser(s: &str) -> IResult<&str, &str> { 29 /// assert_eq!(parser("H"), Err(Err::Incomplete(Needed::new(4)))); 33 ) -> impl Fn(Input) -> IResult<Input, Input, Error> in tag() 44 CompareResult::Incomplete => Err(Err::Incomplete(Needed::new(tag_len - i.input_len()))), in tag() 60 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult}; 63 /// fn parser(s: &str) -> IResult<&str, &str> { 71 /// assert_eq!(parser(""), Err(Err::Incomplete(Needed::new(5)))); 75 ) -> impl Fn(Input) -> IResult<Input, Input, Error> in tag_no_case() [all …]
|
| D | tests.rs | 7 use crate::internal::{Err, IResult, Needed}; 21 fn a_or_b(i: &[u8]) -> IResult<&[u8], &[u8]> { in is_a() 45 fn a_or_b(i: &[u8]) -> IResult<&[u8], &[u8]> { in is_not() 65 assert_eq!(a_or_b(e), Err(Err::Incomplete(Needed::new(1)))); in is_not() 74 fn esc(i: &[u8]) -> IResult<&[u8], &[u8]> { in escaping() 98 fn esc2(i: &[u8]) -> IResult<&[u8], &[u8]> { in escaping() 109 fn esc(i: &str) -> IResult<&str, &str> { 130 fn esc2(i: &str) -> IResult<&str, &str> { 135 fn esc3(i: &str) -> IResult<&str, &str> { 142 fn to_s(i: Vec<u8>) -> String { in to_s() [all …]
|
| /third_party/rust/crates/nom/src/number/ |
| D | streaming.rs | 19 /// # use nom::{Err, error::ErrorKind, Needed}; 27 /// assert_eq!(parser(&b""[..]), Err(Err::Incomplete(Needed::new(1)))); 30 pub fn be_u8<I, E: ParseError<I>>(input: I) -> IResult<I, u8, E> in be_u8() 36 Err(Err::Incomplete(Needed::new(1))) in be_u8() 49 /// # use nom::{Err, error::ErrorKind, Needed}; 57 /// assert_eq!(parser(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(1)))); 60 pub fn be_u16<I, E: ParseError<I>>(input: I) -> IResult<I, u16, E> in be_u16() 66 Err(Err::Incomplete(Needed::new(bound - input.input_len()))) in be_u16() 82 /// # use nom::{Err, error::ErrorKind, Needed}; 90 /// assert_eq!(parser(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(2)))); [all …]
|
| D | complete.rs | 20 /// # use nom::{Err, error::ErrorKind, Needed}; 21 /// # use nom::Needed::Size; 32 pub fn be_u8<I, E: ParseError<I>>(input: I) -> IResult<I, u8, E> in be_u8() 50 /// # use nom::{Err, error::ErrorKind, Needed}; 51 /// # use nom::Needed::Size; 62 pub fn be_u16<I, E: ParseError<I>>(input: I) -> IResult<I, u16, E> in be_u16() 83 /// # use nom::{Err, error::ErrorKind, Needed}; 84 /// # use nom::Needed::Size; 95 pub fn be_u24<I, E: ParseError<I>>(input: I) -> IResult<I, u32, E> in be_u24() 116 /// # use nom::{Err, error::ErrorKind, Needed}; [all …]
|
| /third_party/rust/crates/nom/src/character/ |
| D | streaming.rs | 9 use crate::internal::{Err, IResult, Needed}; 22 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult}; 24 /// fn parser(i: &str) -> IResult<&str, char> { 29 /// assert_eq!(parser(""), Err(Err::Incomplete(Needed::new(1)))); 31 pub fn char<I, Error: ParseError<I>>(c: char) -> impl Fn(I) -> IResult<I, char, Error> in char() 40 None => Err(Err::Incomplete(Needed::new(c.len() - i.input_len()))), in char() 52 /// # use nom::{Err, error::{ErrorKind, Error}, Needed, IResult}; 54 /// fn parser(i: &str) -> IResult<&str, char> { 59 /// assert_eq!(parser(""), Err(Err::Incomplete(Needed::Unknown))); 61 pub fn satisfy<F, I, Error: ParseError<I>>(cond: F) -> impl Fn(I) -> IResult<I, char, Error> in satisfy() [all …]
|
| /third_party/skia/third_party/externals/tint/docs/ |
| D | spirv-ptr-ref.md | 1 # SPIR-V translation of WGSL pointers and references 12 * Let-declared constants can be of pointer type, but not reference 20 * The right-hand side evaluates to a non-reference type (atomic-free 22 * The left-hand side evaluates to a reference type, whose store 24 * The address-of (unary `&`) operator converts a reference to a 30 done by "handler value", or by pointer-to-handle. 32 ## Writing SPIR-V from WGSL 35 at the SPIR-V level. Both types map into pointer types in SPIR-V. 37 To translate a valid WGSL program to SPIR-V: 40 * The address-of operator (unary `&`) is the identity operation. [all …]
|
| /third_party/node/deps/openssl/openssl/crypto/property/ |
| D | property_parse.c | 2 * Copyright 2019-2023 The OpenSSL Project Authors. All Rights Reserved. 42 #define MATCH(s, m) match(s, m, sizeof(m) - 1) 67 "HERE-->%s", *t); in parse_name() 71 if (i < sizeof(name) - 1) in parse_name() 79 if (i < sizeof(name) - 1) in parse_name() 87 ERR_raise_data(ERR_LIB_PROP, PROP_R_NAME_TOO_LONG, "HERE-->%s", *t); in parse_name() 103 "HERE-->%s", *t); in parse_number() 107 if (v > ((INT64_MAX - (*s - '0')) / 10)) { in parse_number() 112 v = v * 10 + (*s++ - '0'); in parse_number() 116 "HERE-->%s", *t); in parse_number() [all …]
|
| /third_party/rust/crates/nom/tests/ |
| D | overflow.rs | 1 #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] 10 use nom::{Err, IResult, Needed}; 15 fn parser02(i: &[u8]) -> IResult<&[u8], (&[u8], &[u8])> { in parser02() 23 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_tuple() 30 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_length_bytes() 37 Err(Err::Incomplete(Needed::new(18446744073709551615))) in overflow_incomplete_length_bytes() 44 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_many0() 51 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many0() 60 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in overflow_incomplete_many1() 67 Err(Err::Incomplete(Needed::new(18446744073709551599))) in overflow_incomplete_many1() [all …]
|
| /third_party/rust/crates/nom/doc/archive/ |
| D | upgrading_to_nom_4.md | 10 fn parser(input: I) -> IResult<I,O> { ... } 21 …/// Incomplete contains a Needed, an enum that can represent a known quantity of input data, or un… 22 Incomplete(Needed) 25 pub enum Needed { 32 // if the "verbose-errors" feature is not active 35 // if the "verbose-errors" feature is active 55 Incomplete(Needed), 62 pub enum Needed { 69 // if the "verbose-errors" feature is inactive 74 // if the "verbose-errors" feature is active [all …]
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/tests/ |
| D | htest.c | 1 //% gcc -c -Wall -I. -I../include htest.c 3 // Copyright 2019-2024 The Khronos Group Inc. 4 // SPDX-License-Identifier: Apache-2.0 18 #define VK_USE_PLATFORM_ANDROID_KHR // No headers needed 21 #define VK_USE_PLATFORM_IOS_MVK // No headers needed 22 #define VK_USE_PLATFORM_MACOS_MVK // No headers needed 23 #define VK_USE_PLATFORM_METAL_EXT // No headers needed 24 #define VK_USE_PLATFORM_VI_NN // No headers needed 25 #define VK_USE_PLATFORM_WAYLAND_KHR // <wayland-client.h> 31 #define VK_ENABLE_BETA_EXTENSIONS // No headers needed
|
| D | htest_sc.c | 1 //% gcc -c -Wall -I. -I../include htest.c 3 // Copyright 2019-2024 The Khronos Group Inc. 5 // SPDX-License-Identifier: Apache-2.0 19 #define VK_USE_PLATFORM_ANDROID_KHR // No headers needed 22 #define VK_USE_PLATFORM_IOS_MVK // No headers needed 23 #define VK_USE_PLATFORM_MACOS_MVK // No headers needed 24 #define VK_USE_PLATFORM_METAL_EXT // No headers needed 25 #define VK_USE_PLATFORM_VI_NN // No headers needed 26 #define VK_USE_PLATFORM_WAYLAND_KHR // <wayland-client.h> 33 #define VK_ENABLE_BETA_EXTENSIONS // No headers needed
|
| /third_party/openssl/crypto/property/ |
| D | property_parse.c | 2 * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved. 42 #define MATCH(s, m) match(s, m, sizeof(m) - 1) 67 "HERE-->%s", *t); in parse_name() 71 if (i < sizeof(name) - 1) in parse_name() 79 if (i < sizeof(name) - 1) in parse_name() 87 ERR_raise_data(ERR_LIB_PROP, PROP_R_NAME_TOO_LONG, "HERE-->%s", *t); in parse_name() 103 v = v * 10 + (*s++ - '0'); in parse_number() 107 "HERE-->%s", *t); in parse_number() 111 res->type = OSSL_PROPERTY_TYPE_NUMBER; in parse_number() 112 res->v.int_val = v; in parse_number() [all …]
|
| /third_party/musl/src/malloc/mallocng/ |
| D | realloc.c | 15 unsigned char *start = g->mem->storage + stride*idx; in realloc() 16 unsigned char *end = start + stride - IB; in realloc() 18 size_t avail_size = end-(unsigned char *)p; in realloc() 21 // only resize in-place if size class matches in realloc() 23 && size_to_class(n)+1 >= g->sizeclass) { in realloc() 28 // use mremap if old and new size are both mmap-worthy in realloc() 29 if (g->sizeclass>=48 && n>=MMAP_THRESHOLD) { in realloc() 30 assert(g->sizeclass==63); in realloc() 31 size_t base = (unsigned char *)p-start; in realloc() 32 size_t needed = (n + base + UNIT + IB + 4095) & -4096; in realloc() local [all …]
|
| D | malloc.c | 57 cmask = ~((2u << (last_idx - r)) - 1); in get_randomIdx() 60 idx = 31 - a_clz_32(mask & cmask); in get_randomIdx() 117 if (!ctx.avail_meta_area_count && ctx.brk!=-1) { in alloc_meta() 125 ctx.brk += -ctx.brk & (pagesize-1); in alloc_meta() 129 ctx.brk = -1; in alloc_meta() 132 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ctx.brk, new - ctx.brk, "native_heap:meta"); in alloc_meta() 135 PROT_NONE, MAP_ANON|MAP_PRIVATE|MAP_FIXED, -1, 0); in alloc_meta() 137 ctx.avail_meta_areas = (void *)(new - pagesize); in alloc_meta() 145 MAP_PRIVATE|MAP_ANON, -1, 0); in alloc_meta() 148 ctx.avail_meta_area_count = (n-1)*(pagesize>>12); in alloc_meta() [all …]
|
| /third_party/node/lib/internal/bootstrap/switches/ |
| D | is_main_thread.js | 16 // https://github.com/nodejs/node/pull/34010 for why these are no-ops. 42 // ---- keep the attachment of the wrappers above so that it's easier to ---- 43 // ---- compare the setups side-by-side ----- 49 // Note stream._type is used for test-module-load-list.js 92 // Provide a dummy black-hole output for e.g. non-console 118 // The 'close' event is needed so that finished and 231 // Make sure the stdin can't be `.end()`-ed 237 // Provide a dummy contentless input for e.g. non-console 250 // not-reading state. 290 // Needed by the module loader and generally needed everywhere. [all …]
|
| /third_party/protobuf/csharp/src/Google.Protobuf/ |
| D | CodedOutputStream.ComputeSize.cs | 2 // Protocol Buffers - Google's data interchange format 4 // https://developers.google.com/protocol-buffers/ 50 /// Computes the number of bytes that would be needed to encode a 59 /// Computes the number of bytes that would be needed to encode a 68 /// Computes the number of bytes that would be needed to encode a 77 /// Computes the number of bytes that would be needed to encode an 86 /// Computes the number of bytes that would be needed to encode an 97 // Must sign-extend. in ComputeInt32Size() 103 /// Computes the number of bytes that would be needed to encode a 112 /// Computes the number of bytes that would be needed to encode a [all …]
|
| /third_party/rust/crates/nom/src/ |
| D | internal.rs | 3 use self::Needed::*; 27 /// - "complete" parsers: It will not be an issue, `Incomplete` is never used 28 /// - "streaming" parsers: `Incomplete` will be returned if there's not enough data 32 fn finish(self) -> Result<(I, O), E>; in finish() 36 fn finish(self) -> Result<(I, O), E> { in finish() 47 /// Contains information on needed data if a parser returned `Incomplete` 50 pub enum Needed { enum 57 impl Needed { impl 58 /// Creates `Needed` instance, returns `Needed::Unknown` if the argument is zero 59 pub fn new(s: usize) -> Self { in new() [all …]
|
| /third_party/python/Lib/idlelib/idle_test/ |
| D | README.txt | 8 python -m test.test_idle 10 Human-mediated tests were added later in 3.4. 12 python -m idlelib.idle_test.htest 23 Remove the imports of requires and tkinter if not needed. Otherwise, 24 add to the tkinter imports as needed. 27 contains code needed or possibly needed for gui tests. See the next 28 section if doing gui tests. If not, and not needed for further classes, 38 The ', exit=False' is only needed if an htest follows. 79 The update_idletasks call is sometimes needed to prevent the following 81 (#27196). It should not hurt if not needed. [all …]
|
| /third_party/rust/crates/cxx/src/ |
| D | sip.rs | 2 // https://github.com/rust-lang/rust/blob/1.57.0/library/core/src/hash/sip.rs 14 /// An implementation of SipHash 1-3. 87 unsafe fn u8to64_le(buf: &[u8], start: usize, len: usize) -> u64 { in u8to64_le() 113 pub fn new() -> Self { in new() 118 fn new_with_keys(key0: u64, key1: u64) -> Self { in new_with_keys() 158 let mut needed = 0; in write() localVariable 161 needed = 8 - self.ntail; in write() 162 // SAFETY: `cmp::min(length, needed)` is guaranteed to not be over `length` in write() 163 self.tail |= unsafe { u8to64_le(msg, 0, cmp::min(length, needed)) } << (8 * self.ntail); in write() 164 if length < needed { in write() [all …]
|
| /third_party/rust/crates/nom/src/multi/ |
| D | tests.rs | 6 internal::{Err, IResult, Needed}, 23 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 26 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 29 fn empty_sep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 32 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 64 assert_eq!(multi(f), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test() 65 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test() 66 assert_eq!(multi(h), Err(Err::Incomplete(Needed::new(1)))); in separated_list0_test() 72 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test() 75 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test() [all …]
|
| /third_party/ffmpeg/doc/ |
| D | swresample.txt | 5 --------------------------------- 16 | Rematrix | resample <---->| Buffers | 22 | Rematrix | resample <---->| Buffers | 34 Planar/Packed conversion is done when needed during sample format conversion. 35 Every step can be skipped without memcpy when it is not needed. 38 The Buffers are needed for resampling due to resamplng being a process that 45 If only sample format and/or packed/planar conversion is needed, it
|
| /third_party/musl/porting/linux/user/src/malloc/mallocng/ |
| D | malloc.c | 55 cmask = ~((2u << (last_idx - r)) - 1); in get_randomIdx() 58 idx = 31 - a_clz_32(mask & cmask); in get_randomIdx() 115 if (!ctx.avail_meta_area_count && ctx.brk!=-1) { in alloc_meta() 123 ctx.brk += -ctx.brk & (pagesize-1); in alloc_meta() 127 ctx.brk = -1; in alloc_meta() 129 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ctx.brk, new - ctx.brk, "native_heap:meta"); in alloc_meta() 131 PROT_NONE, MAP_ANON|MAP_PRIVATE|MAP_FIXED, -1, 0); in alloc_meta() 133 ctx.avail_meta_areas = (void *)(new - pagesize); in alloc_meta() 141 MAP_PRIVATE|MAP_ANON, -1, 0); in alloc_meta() 144 ctx.avail_meta_area_count = (n-1)*(pagesize>>12); in alloc_meta() [all …]
|
| /third_party/node/lib/internal/ |
| D | cli_table.js | 15 // The use of Unicode characters below is the only non-comment use of non-ASCII 16 // Unicode characters in Node.js built-in modules. If they are ever removed or 17 // rewritten with \u escapes, then a test will need to be (re-)added to Node.js 18 // core to verify that Unicode characters work in built-ins. 21 /* eslint-disable node-core/non-ascii-character */ 35 /* eslint-enable node-core/non-ascii-character */ 43 const needed = (columnWidths[i] - len) / 2; constant 44 // round(needed) + ceil(needed) will always add up to the amount 46 out += StringPrototypeRepeat(' ', needed) + cell + 47 StringPrototypeRepeat(' ', MathCeil(needed)); [all …]
|
| /third_party/rust/crates/nom/src/sequence/ |
| D | tests.rs | 4 use crate::internal::{Err, IResult, Needed}; 37 fn error_to_string<P: Clone + PartialEq>(e: &Context<P, u32>) -> &'static str { 58 //fn error_to_string(e:Err) -> String 74 fn err_test(i: &[u8]) -> IResult<&[u8], &[u8]> { in complete() 89 fn pair_abc_def(i: &[u8]) -> IResult<&[u8], (&[u8], &[u8])> { in pair_test() 99 Err(Err::Incomplete(Needed::new(1))) in pair_test() 103 Err(Err::Incomplete(Needed::new(2))) in pair_test() 121 fn sep_pair_abc_def(i: &[u8]) -> IResult<&[u8], (&[u8], &[u8])> { in separated_pair_test() 131 Err(Err::Incomplete(Needed::new(1))) in separated_pair_test() 135 Err(Err::Incomplete(Needed::new(2))) in separated_pair_test() [all …]
|