/external/rust/cxx/syntax/ |
D | discriminant.rs | 39 let (discriminant, repr) = expr_to_discriminant(expr)?; in insert() 62 insert(self, discriminant) in insert() 66 let discriminant = match self.previous { in insert_next() localVariable 68 Some(mut discriminant) => match discriminant.sign { in insert_next() 70 discriminant.magnitude -= 1; in insert_next() 71 if discriminant.magnitude == 0 { in insert_next() 72 discriminant.sign = Sign::Positive; in insert_next() 74 discriminant in insert_next() 77 if discriminant.magnitude == u64::MAX { in insert_next() 81 discriminant.magnitude += 1; in insert_next() [all …]
|
D | mod.rs | 7 mod discriminant; module 33 use self::discriminant::Discriminant; 196 pub discriminant: Discriminant, field
|
D | parse.rs | 2 use crate::syntax::discriminant::DiscriminantSet; 289 let expr = variant.discriminant.as_ref().map(|(_, expr)| expr); in parse_variant() 294 let discriminant = match try_discriminant { in parse_variant() localVariable 295 Ok(discriminant) => discriminant, in parse_variant() 300 let expr = variant.discriminant.map(|(_, expr)| expr); in parse_variant() 306 discriminant, in parse_variant()
|
D | impls.rs | 42 mem::discriminant(self).hash(state); in hash()
|
/external/crosvm/enumn/src/ |
D | tests.rs | 23 struct discriminant; in test_repr() 24 impl discriminant { in test_repr() impl 30 discriminant::A => Some(E::A), in test_repr() 31 discriminant::B => Some(E::B), in test_repr() 32 discriminant::C => Some(E::C), in test_repr() 55 struct discriminant; in test_no_repr() 56 impl discriminant { in test_no_repr() impl 62 discriminant::A => Some(E::A), in test_no_repr() 63 discriminant::B => Some(E::B), in test_no_repr() 64 discriminant::C => Some(E::C), in test_no_repr()
|
D | lib.rs | 181 discriminant::#variant => Some(#ident::#variant), in testable_derive() 189 struct discriminant; in testable_derive() 190 impl discriminant { in testable_derive() impl
|
/external/rust/crates/tinytemplate/src/ |
D | compiler.rs | 71 let (discriminant, rest) = self.consume_block()?; in compile() 72 match discriminant { in compile() 80 .push((discriminant, Block::Branch(self.instructions.len()))); in compile() 87 self.close_branch(num_instructions, discriminant)?; in compile() 89 .push((discriminant, Block::Branch(self.instructions.len()))); in compile() 95 self.close_branch(num_instructions, discriminant)?; in compile() 101 self.block_stack.push((discriminant, Block::With)); in compile() 109 discriminant, in compile() 119 .push((discriminant, Block::For(self.instructions.len()))); in compile() 125 let goto_target = self.close_for(num_instructions, discriminant)?; in compile() [all …]
|
/external/rust/cxx/tests/ui/ |
D | enum_out_of_bounds.stderr | 1 error: discriminant value `18446744073709551615` is outside the limits of u32 7 error: discriminant value `2000` is outside the limits of u8
|
D | enum_overflows.stderr | 1 error: discriminant overflow on value after 18446744073709551615
|
D | enum_unsatisfiable.stderr | 1 error: these discriminant values do not fit in any supported enum repr type
|
/external/libchrome/ui/gfx/geometry/ |
D | cubic_bezier.cc | 108 double discriminant = b * b - 4 * a * c; in InitRange() local 109 if (discriminant < 0) in InitRange() 111 double discriminant_sqrt = sqrt(discriminant); in InitRange()
|
/external/rust/cxx/book/src/ |
D | shared.md | 141 Variants without an explicit discriminant are assigned the previous discriminant 142 plus 1. If the first variant has not been given an explicit discriminant, it is 143 assigned discriminant 0. 197 variants and discriminant values and integer representation written in Rust all
|
/external/rust/crates/syn/src/ |
D | data.rs | 21 pub discriminant: Option<(Token![=], Expr)>, 263 discriminant: { in parse() 266 let discriminant: Expr = input.parse()?; in parse() localVariable 267 Some((eq_token, discriminant)) in parse() 426 if let Some((eq_token, disc)) = &self.discriminant { in to_tokens()
|
/external/crosvm/bit_field/bit_field_derive/ |
D | bit_field_derive.rs | 165 discriminant::#variant => Ok(#ident::#variant), in bitfield_enum_with_width_impl() 179 struct discriminant; in bitfield_enum_with_width_impl() 180 impl discriminant { in bitfield_enum_with_width_impl() impl 236 discriminant::#variant => #ident::#variant, in bitfield_enum_without_width_impl() 250 struct discriminant; in bitfield_enum_without_width_impl() 251 impl discriminant { in bitfield_enum_without_width_impl() impl
|
/external/llvm-project/llvm/docs/ |
D | XRayFDRFormat.rst | 128 | discriminant | ``1`` | Indicates whether a reader should read a | 151 ``0x01`` for the discriminant. Similarly, they can read 32 bits and unsigned 156 shift right by 7 bits for the discriminant. The function_id field could be 195 | discriminant | ``1 bit`` | Indicates whether a reader should read a |
|
/external/llvm-project/llvm/test/DebugInfo/Generic/ |
D | univariant-discriminated-union.ll | 5 ; part without a discriminant and with just a single variant.
|
D | discriminated-union.ll | 5 ; discriminant value.
|
/external/ImageMagick/MagickCore/ |
D | resample.c | 904 const double discriminant = in ClampUpAxes() local 912 sqrt(discriminant > 0.0 ? discriminant : 0.0); in ClampUpAxes()
|
/external/skia/src/core/ |
D | SkMatrix.cpp | 1757 double discriminant = sqrt(diff*diff + 4.0*Sb*Sb); in SkDecomposeUpper2x2() local 1760 w1 = 0.5*(trace + discriminant); in SkDecomposeUpper2x2() 1761 w2 = 0.5*(trace - discriminant); in SkDecomposeUpper2x2() 1763 w1 = 0.5*(trace - discriminant); in SkDecomposeUpper2x2() 1764 w2 = 0.5*(trace + discriminant); in SkDecomposeUpper2x2()
|
/external/skqp/src/core/ |
D | SkMatrix.cpp | 1751 double discriminant = sqrt(diff*diff + 4.0*Sb*Sb); in SkDecomposeUpper2x2() local 1754 w1 = 0.5*(trace + discriminant); in SkDecomposeUpper2x2() 1755 w2 = 0.5*(trace - discriminant); in SkDecomposeUpper2x2() 1757 w1 = 0.5*(trace - discriminant); in SkDecomposeUpper2x2() 1758 w2 = 0.5*(trace + discriminant); in SkDecomposeUpper2x2()
|
/external/rust/cxx/macro/src/ |
D | expand.rs | 297 let discriminant = &variant.discriminant; in expand_enum() localVariable 302 pub const #variant_ident: Self = #ident { repr: #discriminant }; in expand_enum()
|
/external/freetype/src/truetype/ |
D | ttinterp.c | 6537 FT_F26Dot6 discriminant, dotproduct; in Ins_ISECT() local 6577 discriminant = ADD_LONG( FT_MulDiv( dax, NEG_LONG( dby ), 0x40 ), in Ins_ISECT() 6590 if ( MUL_LONG( 19, FT_ABS( discriminant ) ) > FT_ABS( dotproduct ) ) in Ins_ISECT() 6595 R.x = FT_MulDiv( val, dax, discriminant ); in Ins_ISECT() 6596 R.y = FT_MulDiv( val, day, discriminant ); in Ins_ISECT()
|
/external/rust/crates/pin-project-internal/src/pin_project/ |
D | derive.rs | 306 if let Some((_, e)) = &v.discriminant { in validate_enum()
|
/external/rust/cxx/gen/src/ |
D | write.rs | 373 writeln!(out, " {} = {},", variant.name.cxx, variant.discriminant); in write_enum() 396 enm.name.cxx, variant.name.cxx, variant.discriminant, in check_enum()
|
/external/rust/crates/syn/src/gen/ |
D | clone.rs | 2168 discriminant: self.discriminant.clone(), in clone()
|