/external/llvm-project/libcxx/test/std/numerics/numbers/ |
D | value.pass.cpp | 16 assert(std::numbers::e == 0x1.5bf0a8b145769p+1); in tests() 17 assert(std::numbers::e_v<double> == 0x1.5bf0a8b145769p+1); in tests() 18 assert(std::numbers::e_v<long double> == 0x1.5bf0a8b145769p+1l); in tests() 19 assert(std::numbers::e_v<float> == 0x1.5bf0a8p+1f); in tests() 21 assert(std::numbers::log2e == 0x1.71547652b82fep+0); in tests() 22 assert(std::numbers::log2e_v<double> == 0x1.71547652b82fep+0); in tests() 23 assert(std::numbers::log2e_v<long double> == 0x1.71547652b82fep+0l); in tests() 24 assert(std::numbers::log2e_v<float> == 0x1.715476p+0f); in tests() 26 assert(std::numbers::log10e == 0x1.bcb7b1526e50ep-2); in tests() 27 assert(std::numbers::log10e_v<double> == 0x1.bcb7b1526e50ep-2); in tests() [all …]
|
D | specialize.pass.cpp | 16 [[maybe_unused]] float f0{std::numbers::e_v<float>}; in tests() 17 [[maybe_unused]] float f1{std::numbers::log2e_v<float>}; in tests() 18 [[maybe_unused]] float f2{std::numbers::log10e_v<float>}; in tests() 19 [[maybe_unused]] float f3{std::numbers::pi_v<float>}; in tests() 20 [[maybe_unused]] float f4{std::numbers::inv_pi_v<float>}; in tests() 21 [[maybe_unused]] float f5{std::numbers::inv_sqrtpi_v<float>}; in tests() 22 [[maybe_unused]] float f6{std::numbers::ln2_v<float>}; in tests() 23 [[maybe_unused]] float f7{std::numbers::ln10_v<float>}; in tests() 24 [[maybe_unused]] float f8{std::numbers::sqrt2_v<float>}; in tests() 25 [[maybe_unused]] float f9{std::numbers::sqrt3_v<float>}; in tests() [all …]
|
D | defined.pass.cpp | 15 [[maybe_unused]] const double* dd0{&std::numbers::e}; in tests() 16 [[maybe_unused]] const double* dd1{&std::numbers::log2e}; in tests() 17 [[maybe_unused]] const double* dd2{&std::numbers::log10e}; in tests() 18 [[maybe_unused]] const double* dd3{&std::numbers::pi}; in tests() 19 [[maybe_unused]] const double* dd4{&std::numbers::inv_pi}; in tests() 20 [[maybe_unused]] const double* dd5{&std::numbers::inv_sqrtpi}; in tests() 21 [[maybe_unused]] const double* dd6{&std::numbers::ln2}; in tests() 22 [[maybe_unused]] const double* dd7{&std::numbers::ln10}; in tests() 23 [[maybe_unused]] const double* dd8{&std::numbers::sqrt2}; in tests() 24 [[maybe_unused]] const double* dd9{&std::numbers::sqrt3}; in tests() [all …]
|
D | user_type.pass.cpp | 19 user std::numbers::e_v<user>{}; 22 user std::numbers::log2e_v<user>{}; 25 user std::numbers::log10e_v<user>{}; 28 user std::numbers::pi_v<user>{}; 31 user std::numbers::inv_pi_v<user>{}; 34 user std::numbers::inv_sqrtpi_v<user>{}; 37 user std::numbers::ln2_v<user>{}; 40 user std::numbers::ln10_v<user>{}; 43 user std::numbers::sqrt2_v<user>{}; 46 user std::numbers::sqrt3_v<user>{}; [all …]
|
D | illformed.verify.cpp | 15 int log2e{std::numbers::log2e_v< 17 int log10e{std::numbers::log10e_v<int>}; 18 int pi{std::numbers::pi_v<int>}; 19 int inv_pi{std::numbers::inv_pi_v<int>}; 20 int inv_sqrtpi{std::numbers::inv_sqrtpi_v<int>}; 21 int ln2{std::numbers::ln2_v<int>}; 22 int ln10{std::numbers::ln10_v<int>}; 23 int sqrt2{std::numbers::sqrt2_v<int>}; 24 int sqrt3{std::numbers::sqrt3_v<int>}; 25 int inv_sqrt3{std::numbers::inv_sqrt3_v<int>}; [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue124/ |
D | Bean124.java | 23 private List<Integer> numbers; field in Bean124 27 this.numbers = new ArrayList<Integer>(3); in Bean124() 28 numbers.add(1); in Bean124() 29 numbers.add(2); in Bean124() 30 numbers.add(3); in Bean124() 33 public Bean124(String a, List<Integer> numbers) { in Bean124() argument 36 this.numbers = numbers; in Bean124() 48 return numbers; in getNumbers() 51 public void setNumbers(List<Integer> numbers) { in setNumbers() argument 52 this.numbers = numbers; in setNumbers()
|
/external/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/vector/ |
D | main.cpp | 15 int_vect numbers; in main() local 16 (numbers.push_back(1)); // break here in main() 17 (numbers.push_back(12)); // break here in main() 18 (numbers.push_back(123)); in main() 19 (numbers.push_back(1234)); in main() 20 (numbers.push_back(12345)); // break here in main() 21 (numbers.push_back(123456)); in main() 22 (numbers.push_back(1234567)); in main() 23 by_ref_and_ptr(numbers, &numbers); in main() 26 numbers.clear(); in main() [all …]
|
/external/clang/test/CodeGenCXX/ |
D | cp-blocks-linetables.cpp | 16 enum numbers { enum 20 typedef enum numbers (^myblock)(enum numbers); 28 __block enum numbers x = one; in main() 29 __block enum numbers y = two; in main() 32 myblock CL = ^(enum numbers z) in main() 33 { enum numbers savex = x; in main() 34 { __block enum numbers x = savex; in main() 40 ^ (enum numbers z) { in main() 51 return (enum numbers) four; in main() 56 enum numbers res = (enum numbers)test(CL); in main()
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | cp-blocks-linetables.cpp | 16 enum numbers { enum 20 typedef enum numbers (^myblock)(enum numbers); 28 __block enum numbers x = one; in main() 29 __block enum numbers y = two; in main() 32 myblock CL = ^(enum numbers z) in main() 33 { enum numbers savex = x; in main() 34 { __block enum numbers x = savex; in main() 40 ^ (enum numbers z) { in main() 51 return (enum numbers) four; in main() 56 enum numbers res = (enum numbers)test(CL); in main()
|
/external/protobuf/src/google/protobuf/ |
D | descriptor_database_unittest.cc | 408 std::vector<int> numbers; in TEST_P() local 409 EXPECT_TRUE(database_->FindAllExtensionNumbers("Foo", &numbers)); in TEST_P() 410 ASSERT_EQ(2, numbers.size()); in TEST_P() 411 std::sort(numbers.begin(), numbers.end()); in TEST_P() 412 EXPECT_EQ(5, numbers[0]); in TEST_P() 413 EXPECT_EQ(32, numbers[1]); in TEST_P() 417 std::vector<int> numbers; in TEST_P() local 418 EXPECT_TRUE(database_->FindAllExtensionNumbers("corge.Bar", &numbers)); in TEST_P() 420 ASSERT_EQ(1, numbers.size()); in TEST_P() 421 EXPECT_EQ(70, numbers[0]); in TEST_P() [all …]
|
/external/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/ |
D | main.cpp | 8 int_vect numbers; in main() local 9 numbers.push_back(1); // Set break point at this line. in main() 10 numbers.push_back(12); // Set break point at this line. in main() 11 numbers.push_back(123); in main() 12 numbers.push_back(1234); in main() 13 numbers.push_back(12345); // Set break point at this line. in main() 14 numbers.push_back(123456); in main() 15 numbers.push_back(1234567); in main() 17 numbers.clear(); // Set break point at this line. in main() 19 numbers.push_back(7); // Set break point at this line. in main()
|
/external/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-disabling/ |
D | main.cpp | 8 std::vector<int> numbers; in main() local 9 numbers.push_back(1); in main() 10 numbers.push_back(12); in main() 11 numbers.push_back(123); in main() 12 numbers.push_back(1234); in main() 13 numbers.push_back(12345); in main() 14 numbers.push_back(123456); in main() 15 numbers.push_back(1234567); // Set break point at this line. in main()
|
/external/bsdiff/ |
D | split_patch_writer_unittest.cc | 136 std::vector<uint8_t> numbers(40); in TEST_F() local 137 for (size_t i = 0; i < numbers.size(); ++i) in TEST_F() 138 numbers[i] = 'A' + i; in TEST_F() 145 EXPECT_TRUE(patch_writer_->WriteDiffStream(numbers.data(), 30)); in TEST_F() 146 EXPECT_TRUE(patch_writer_->WriteExtraStream(numbers.data() + 30, 10)); in TEST_F() 149 EXPECT_EQ(std::vector<uint8_t>(numbers.begin(), numbers.begin() + 10), in TEST_F() 154 EXPECT_EQ(std::vector<uint8_t>(numbers.begin() + 10, numbers.begin() + 15), in TEST_F() 156 EXPECT_EQ(std::vector<uint8_t>(numbers.begin() + 30, numbers.begin() + 35), in TEST_F() 160 EXPECT_EQ(std::vector<uint8_t>(numbers.begin() + 15, numbers.begin() + 20), in TEST_F() 162 EXPECT_EQ(std::vector<uint8_t>(numbers.begin() + 35, numbers.begin() + 40), in TEST_F() [all …]
|
/external/nanopb-c/tests/map/ |
D | encode_map.c | 17 strncpy(msg.numbers[0].key, "one", sizeof(msg.numbers[0].key)); in main() 18 strncpy(msg.numbers[1].key, "two", sizeof(msg.numbers[1].key)); in main() 19 strncpy(msg.numbers[2].key, "seven", sizeof(msg.numbers[2].key)); in main() 20 msg.numbers[0].value = 1; in main() 21 msg.numbers[1].value = 2; in main() 22 msg.numbers[2].value = 7; in main()
|
/external/ims/rcs/rcsmanager/src/java/com/android/ims/internal/ |
D | ContactNumberUtils.java | 208 public String[] format(List<String> numbers) { in format() argument 209 if ((numbers == null) || (numbers.size() == 0)) { in format() 213 int size = numbers.size(); in format() 216 String number = numbers.get(i); in format() 226 public String[] format(String[] numbers) { in format() argument 227 if ((numbers == null) || (numbers.length == 0)) { in format() 231 int length = numbers.length; in format() 234 String number = numbers[i]; in format() 243 public int validate(List<String> numbers) { in validate() argument 244 if ((numbers == null) || (numbers.size() == 0)) { in validate() [all …]
|
/external/icu/icu4c/source/test/perf/leperf/ |
D | xmlreader.cpp | 42 static le_uint32 *getHexArray(const UnicodeString &numbers, int32_t &arraySize) in getHexArray() argument 47 while((offset = numbers.indexOf(CH_COMMA, offset + 1)) >= 0) { in getHexArray() 58 while(u_isUWhiteSpace(numbers[start])) { in getHexArray() 62 while((end = numbers.indexOf(CH_COMMA, start)) >= 0) { in getHexArray() 63 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray() 70 while(u_isUWhiteSpace(numbers[start])) { in getHexArray() 76 end = numbers.length(); in getHexArray() 77 while(u_isUWhiteSpace(numbers[end - 1])) { in getHexArray() 81 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray() 88 static float *getFloatArray(const UnicodeString &numbers, int32_t &arraySize) in getFloatArray() argument [all …]
|
/external/icu/icu4c/source/test/letest/ |
D | xmlreader.cpp | 38 static le_uint32 *getHexArray(const UnicodeString &numbers, int32_t &arraySize) in getHexArray() argument 43 while((offset = numbers.indexOf(CH_COMMA, offset + 1)) >= 0) { in getHexArray() 54 while(u_isUWhiteSpace(numbers[start])) { in getHexArray() 58 while((end = numbers.indexOf(CH_COMMA, start)) >= 0) { in getHexArray() 59 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray() 66 while(u_isUWhiteSpace(numbers[start])) { in getHexArray() 72 end = numbers.length(); in getHexArray() 73 while(u_isUWhiteSpace(numbers[end - 1])) { in getHexArray() 77 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray() 84 static float *getFloatArray(const UnicodeString &numbers, int32_t &arraySize) in getFloatArray() argument [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue29/ |
D | BigJavaBean.java | 26 private List<Integer> numbers; field in BigJavaBean 61 return numbers; in getNumbers() 64 public void setNumbers(List<Integer> numbers) { in setNumbers() argument 65 this.numbers = numbers; in setNumbers() 85 result = prime * result + ((numbers == null) ? 0 : numbers.hashCode()); in hashCode() 120 if (numbers == null) { in equals() 121 if (other.numbers != null) in equals() 123 } else if (!numbers.equals(other.numbers)) in equals()
|
/external/icu/icu4c/source/samples/plurfmtsample/ |
D | plurfmtsample.cpp | 45 int numbers[] = {0, 1, 2, 3, 4, 5, 10, 100, 101, 102}; in PluralFormatExample() local 50 for (int i=0;i<sizeof(numbers)/sizeof(int);i++) { in PluralFormatExample() 53 Formattable argEn[]={Formattable(numbers[i]), Formattable(plfmtEn.format(numbers[i],status))}; in PluralFormatExample() 54 Formattable argSl[]={Formattable(numbers[i]), Formattable(plfmtSl.format(numbers[i],status))}; in PluralFormatExample() 57 …u_printf("%-16d%-16S%-16S\n", numbers[i], msgEn.getTerminatedBuffer(),msgSl.getTerminatedBuffer()); in PluralFormatExample() 70 for (int i=0;i<sizeof(numbers)/sizeof(int);i++) { in PluralFormatExample() 72 Formattable arg[] = {numbers[i]}; in PluralFormatExample() 76 …u_printf("%-16d%-16S%-16S\n", numbers[i], msgEn.getTerminatedBuffer(), msgSl.getTerminatedBuffer()… in PluralFormatExample()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestExamples.txt | 25 //ldml/numbers/currencies/currency[@type="%A"]/displayName[@count="%A"] ; example 26 //ldml/numbers/currencies/currency[@type="%A"]/symbol ; example 27 //ldml/numbers/currencyFormats[@numberSystem="%A"]/currencyFormatLength/currencyFormat[@type="%A"]/… 28 //ldml/numbers/currencyFormats[@numberSystem="%A"]/unitPattern[@count="%A"] ; example 29 //ldml/numbers/decimalFormats/decimalFormatLength/decimalFormat[@type="%A"]/pattern[@type="%A"] ; … 30 //ldml/numbers/decimalFormats/decimalFormatLength[@type="%A"]/decimalFormat[@type="%A"]/pattern[@ty… 31 //ldml/numbers/decimalFormats[@numberSystem="%A"]/decimalFormatLength/decimalFormat[@type="%A"]/pat… 32 //ldml/numbers/decimalFormats[@numberSystem="%A"]/decimalFormatLength[@type="%A"]/decimalFormat[@ty… 33 //ldml/numbers/defaultNumberingSystem ; example 34 //ldml/numbers/otherNumberingSystems/native ; example [all …]
|
/external/python/pyasn1/pyasn1/codec/cer/ |
D | encoder.py | 55 numbers = value.asNumbers() 57 if self.PLUS_CHAR in numbers or self.MINUS_CHAR in numbers: 60 if numbers[-1] != self.Z_CHAR: 63 if self.COMMA_CHAR in numbers: 66 if self.DOT_CHAR in numbers: 70 numbers = list(numbers) 72 searchIndex = min(numbers.index(self.DOT_CHAR) + 4, len(numbers) - 1) 74 while numbers[searchIndex] != self.DOT_CHAR: 75 if numbers[searchIndex] == self.ZERO_CHAR: 76 del numbers[searchIndex] [all …]
|
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/ |
D | NumbersBenchmark.kt | 30 private fun numbers(limit: Long = Long.MAX_VALUE) = flow { in <lambda>() method in benchmarks.flow.NumbersBenchmark 35 var source = numbers() in <lambda>() 68 val numbers = numbers(natural) in <lambda>() constant 69 val first = numbers in <lambda>() 72 val second = numbers in <lambda>() 80 val numbers = rxNumbers().take(natural) in <lambda>() constant 81 val first = numbers in <lambda>() 84 val second = numbers in <lambda>() 93 numbers(natural) in <lambda>()
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | cppcoreguidelines-avoid-magic-numbers.rst | 1 .. title:: clang-tidy - cppcoreguidelines-avoid-magic-numbers 3 :http-equiv=refresh: 5;URL=readability-magic-numbers.html 5 cppcoreguidelines-avoid-magic-numbers 8 The cppcoreguidelines-avoid-magic-numbers check is an alias, please see 9 `readability-magic-numbers <readability-magic-numbers.html>`_
|
/external/minijail/tools/ |
D | compiler.py | 74 self.numbers = (entries[0].number, entries[-1].number + 1) 81 self.numbers, self.frequency, 114 if entry.numbers[1] - entry.numbers[0] == 1: 119 entry.numbers[0], action, reject_action, op=bpf.BPF_JEQ)) 120 elif entry.numbers[0] == lower_bound: 125 entry.numbers[1], reject_action, action, op=bpf.BPF_JGE)) 126 elif entry.numbers[1] == upper_bound: 131 entry.numbers[0], action, reject_action, op=bpf.BPF_JGE)) 135 entry.numbers[1], reject_action, action, op=bpf.BPF_JGE) 138 entry.numbers[0], upper_entry, reject_action, op=bpf.BPF_JGE)) [all …]
|
/external/testng/src/test/java/test/factory/ |
D | VerifyFactoryWithInstanceInfoTest.java | 10 Map<Integer, Integer> numbers = FactoryWithInstanceInfoTest2.getNumbers(); in mainCheck() local 11 assert null != numbers.get(42) in mainCheck() 13 assert null != numbers.get(43) in mainCheck() 15 assert 2 == numbers.size() in mainCheck() 16 : "Expected 2 numbers, found " + (numbers.size()); in mainCheck()
|