Home
last modified time | relevance | path

Searched refs:discriminant (Results 1 – 25 of 37) sorted by relevance

12

/external/rust/cxx/syntax/
Ddiscriminant.rs39 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 …]
Dmod.rs7 mod discriminant; module
33 use self::discriminant::Discriminant;
196 pub discriminant: Discriminant, field
Dparse.rs2 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()
Dimpls.rs42 mem::discriminant(self).hash(state); in hash()
/external/crosvm/enumn/src/
Dtests.rs23 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()
Dlib.rs181 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/
Dcompiler.rs71 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/
Denum_out_of_bounds.stderr1 error: discriminant value `18446744073709551615` is outside the limits of u32
7 error: discriminant value `2000` is outside the limits of u8
Denum_overflows.stderr1 error: discriminant overflow on value after 18446744073709551615
Denum_unsatisfiable.stderr1 error: these discriminant values do not fit in any supported enum repr type
/external/libchrome/ui/gfx/geometry/
Dcubic_bezier.cc108 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/
Dshared.md141 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/
Ddata.rs21 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/
Dbit_field_derive.rs165 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/
DXRayFDRFormat.rst128 | 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/
Dunivariant-discriminated-union.ll5 ; part without a discriminant and with just a single variant.
Ddiscriminated-union.ll5 ; discriminant value.
/external/ImageMagick/MagickCore/
Dresample.c904 const double discriminant = in ClampUpAxes() local
912 sqrt(discriminant > 0.0 ? discriminant : 0.0); in ClampUpAxes()
/external/skia/src/core/
DSkMatrix.cpp1757 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/
DSkMatrix.cpp1751 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/
Dexpand.rs297 let discriminant = &variant.discriminant; in expand_enum() localVariable
302 pub const #variant_ident: Self = #ident { repr: #discriminant }; in expand_enum()
/external/freetype/src/truetype/
Dttinterp.c6537 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/
Dderive.rs306 if let Some((_, e)) = &v.discriminant { in validate_enum()
/external/rust/cxx/gen/src/
Dwrite.rs373 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/
Dclone.rs2168 discriminant: self.discriminant.clone(), in clone()

12