Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 3519) sorted by relevance

12345678910>>...141

/external/curl/tests/libtest/
Dlib557.c65 unsigned short num; /* unsigned short */ member
72 short num; /* signed short */ member
79 unsigned int num; /* unsigned int */ member
86 int num; /* signed int */ member
93 unsigned long num; /* unsigned long */ member
100 long num; /* signed long */ member
107 curl_off_t num; /* curl_off_t */ member
130 i = 1; us_test[i].num = 0xFFU; us_test[i].expected = "256"; in test_unsigned_short_formatting()
131 i++; us_test[i].num = 0xF0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
132 i++; us_test[i].num = 0x0FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
[all …]
/external/ltp/testcases/kernel/fs/doio/
Dbytes_by_prefix.c77 float num; in bytes_by_prefix() local
80 nconv = sscanf(s, "%f%c%c", &num, &mult, &junk); in bytes_by_prefix()
85 result = num; in bytes_by_prefix()
91 result = (int)(num * (float)B_MULT); in bytes_by_prefix()
94 result = (int)(num * (float)K_MULT); in bytes_by_prefix()
97 result = (int)((num * (float)K_MULT) * sizeof(long)); in bytes_by_prefix()
100 result = (int)(num * (float)M_MULT); in bytes_by_prefix()
103 result = (int)((num * (float)M_MULT) * sizeof(long)); in bytes_by_prefix()
106 result = (int)(num * (float)G_MULT); in bytes_by_prefix()
109 result = (int)((num * (float)G_MULT) * sizeof(long)); in bytes_by_prefix()
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/
DDateTimeShortcuts.js135 var num = DateTimeShortcuts.clockInputs.length;
136 DateTimeShortcuts.clockInputs[num] = inp;
137 …DateTimeShortcuts.dismissClockFunc[num] = function() { DateTimeShortcuts.dismissClock(num); return…
144 …now_link.setAttribute('href', "javascript:DateTimeShortcuts.handleClockQuicklink(" + num + ", -1);…
147 clock_link.setAttribute('href', 'javascript:DateTimeShortcuts.openClock(' + num + ');');
148 clock_link.id = DateTimeShortcuts.clockLinkName + num;
173 clock_box.setAttribute('id', DateTimeShortcuts.clockDivName + num);
180 …t), gettext("Now"), "href", "javascript:DateTimeShortcuts.handleClockQuicklink(" + num + ", -1);");
181 …gettext("Midnight"), "href", "javascript:DateTimeShortcuts.handleClockQuicklink(" + num + ", 0);");
182 …, gettext("6 a.m."), "href", "javascript:DateTimeShortcuts.handleClockQuicklink(" + num + ", 6);");
[all …]
/external/rust/crates/num-derive/
DRELEASES.md5 [41]: https://github.com/rust-num/num-derive/pull/41
11 [40]: https://github.com/rust-num/num-derive/pull/40
18 [35]: https://github.com/rust-num/num-derive/pull/35
19 [39]: https://github.com/rust-num/num-derive/pull/39
26 [28]: https://github.com/rust-num/num-derive/pull/28
32 [23]: https://github.com/rust-num/num-derive/pull/23
38 [22]: https://github.com/rust-num/num-derive/pull/22
46 [17]: https://github.com/rust-num/num-derive/pull/17
52 [14]: https://github.com/rust-num/num-derive/pull/14
58 [12]: https://github.com/rust-num/num-derive/pull/12
[all …]
/external/llvm-project/clang/test/SemaCXX/
Derr_typecheck_assign_const_filecheck.cpp4 int num; member
59 a.b.c.d.e.num = 5; in test1()
64 Ca.b.c.Md.e.num = 5; in test1()
66 Ca.Mb.getC().d.e.num = 5; in test1()
67 Ca.getSB().c.d.e.num = 5; in test1()
68 a.getSCB().c.d.Me.num = 5; in test1()
76 Ca.b.c.d.e.num = 5; in test2()
83 a.Cb.c.d.e.num = 5; in test2()
90 a.b.c.Cd.e.num = 5; in test2()
111 a.getCB().c.d.e.num = 5; in test2()
[all …]
/external/clang/test/SemaCXX/
Derr_typecheck_assign_const_filecheck.cpp4 int num; member
59 a.b.c.d.e.num = 5; in test1()
64 Ca.b.c.Md.e.num = 5; in test1()
66 Ca.Mb.getC().d.e.num = 5; in test1()
67 Ca.getSB().c.d.e.num = 5; in test1()
68 a.getSCB().c.d.Me.num = 5; in test1()
76 Ca.b.c.d.e.num = 5; in test2()
83 a.Cb.c.d.e.num = 5; in test2()
90 a.b.c.Cd.e.num = 5; in test2()
111 a.getCB().c.d.e.num = 5; in test2()
[all …]
/external/rust/crates/num-traits/
DRELEASES.md22 [180]: https://github.com/rust-num/num-traits/pull/180
23 [185]: https://github.com/rust-num/num-traits/pull/185
24 [186]: https://github.com/rust-num/num-traits/pull/186
25 [192]: https://github.com/rust-num/num-traits/issues/192
40 [153]: https://github.com/rust-num/num-traits/pull/153
41 [165]: https://github.com/rust-num/num-traits/pull/165
42 [171]: https://github.com/rust-num/num-traits/pull/171
51 [145]: https://github.com/rust-num/num-traits/pull/145
52 [148]: https://github.com/rust-num/num-traits/pull/148
60 [144]: https://github.com/rust-num/num-traits/pull/144
[all …]
/external/rust/crates/num-integer/
DRELEASES.md9 [35]: https://github.com/rust-num/num-integer/pull/35
18 [31]: https://github.com/rust-num/num-integer/pull/31
26 [29]: https://github.com/rust-num/num-integer/pull/29
34 [25]: https://github.com/rust-num/num-integer/pull/25
45 [11]: https://github.com/rust-num/num-integer/pull/11
46 [16]: https://github.com/rust-num/num-integer/pull/16
47 [18]: https://github.com/rust-num/num-integer/pull/18
48 [19]: https://github.com/rust-num/num-integer/pull/19
57 [9]: https://github.com/rust-num/num-integer/pull/9
67 [8]: https://github.com/rust-num/num-integer/pull/8
[all …]
/external/llvm/test/CodeGen/AMDGPU/
Dsdivrem24.ll17 %num = load i8, i8 addrspace(1) * %in
19 %result = sdiv i8 %num, %den
36 %num = load i16, i16 addrspace(1) * %in, align 2
38 %result = sdiv i16 %num, %den
55 %num = load i32, i32 addrspace(1) * %in, align 4
57 %num.i24.0 = shl i32 %num, 8
59 %num.i24 = ashr i32 %num.i24.0, 8
61 %result = sdiv i32 %num.i24, %den.i24
74 %num = load i32, i32 addrspace(1) * %in, align 4
76 %num.i24.0 = shl i32 %num, 7
[all …]
Dudivrem24.ll17 %num = load i8, i8 addrspace(1) * %in
19 %result = udiv i8 %num, %den
36 %num = load i16, i16 addrspace(1) * %in, align 2
38 %result = udiv i16 %num, %den
55 %num = load i32, i32 addrspace(1) * %in, align 4
57 %num.i23.0 = shl i32 %num, 9
59 %num.i23 = lshr i32 %num.i23.0, 9
61 %result = udiv i32 %num.i23, %den.i23
72 %num = load i32, i32 addrspace(1) * %in, align 4
74 %num.i24.0 = shl i32 %num, 8
[all …]
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dsdivrem24.ll17 %num = load i8, i8 addrspace(1) * %in
19 %result = sdiv i8 %num, %den
36 %num = load i16, i16 addrspace(1) * %in, align 2
38 %result = sdiv i16 %num, %den
55 %num = load i32, i32 addrspace(1) * %in, align 4
57 %num.i24.0 = shl i32 %num, 8
59 %num.i24 = ashr i32 %num.i24.0, 8
61 %result = sdiv i32 %num.i24, %den.i24
74 %num = load i32, i32 addrspace(1) * %in, align 4
76 %num.i24.0 = shl i32 %num, 7
[all …]
Dudivrem24.ll17 %num = load i8, i8 addrspace(1) * %in
19 %result = udiv i8 %num, %den
36 %num = load i8, i8 addrspace(1) * %in
38 %result = udiv i8 %num, %den
55 %num = load i8, i8 addrspace(1) * %in
57 %result = udiv i8 %num, %den
74 %num = load i8, i8 addrspace(1) * %in
76 %result = udiv i8 %num, %den
93 %num = load i16, i16 addrspace(1) * %in, align 2
95 %result = udiv i16 %num, %den
[all …]
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages_support.c37 void free_pages(void **pages, unsigned int num) in free_pages() argument
43 for (i = 0; i < num; i++) { in free_pages()
63 int alloc_pages_on_nodes(void **pages, unsigned int num, int *nodes) in alloc_pages_on_nodes() argument
70 for (i = 0; i < num; i++) { in alloc_pages_on_nodes()
74 for (i = 0; i < num; i++) { in alloc_pages_on_nodes()
91 if (i == num) in alloc_pages_on_nodes()
94 free_pages(pages, num); in alloc_pages_on_nodes()
110 int alloc_pages_linear(void **pages, unsigned int num) in alloc_pages_linear() argument
112 int nodes[num]; in alloc_pages_linear()
126 for (i = 0; i < num; i++) { in alloc_pages_linear()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dcast_op_test.cc32 static Graph* Cast(int num) { in Cast() argument
35 TensorShape({64, 64, num / (64 * 64)})); in Cast()
125 const int num = state.range(0); in TEST_ALL_CASTS_FROM() local
126 test::Benchmark("cpu", Cast<float, int64>(num), /*old_benchmark_api=*/false) in TEST_ALL_CASTS_FROM()
128 state.SetItemsProcessed(static_cast<int64>(state.iterations()) * num); in TEST_ALL_CASTS_FROM()
129 state.SetBytesProcessed(static_cast<int64>(state.iterations()) * num * in TEST_ALL_CASTS_FROM()
135 const int num = state.range(0); in BM_gpu_float_int64() local
138 test::Benchmark("gpu", Cast<float, int64>(num), /*old_benchmark_api=*/false) in BM_gpu_float_int64()
141 state.SetItemsProcessed(static_cast<int64>(state.iterations()) * num); in BM_gpu_float_int64()
142 state.SetBytesProcessed(static_cast<int64>(state.iterations()) * num * in BM_gpu_float_int64()
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_ll_usb.c316 HAL_StatusTypeDef USB_FlushTxFifo (USB_OTG_GlobalTypeDef *USBx, uint32_t num) in USB_FlushTxFifo() argument
320 USBx->GRSTCTL = ( USB_OTG_GRSTCTL_TXFFLSH |(uint32_t)( num << 6)); in USB_FlushTxFifo()
416 USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & ((1 << (ep->num))); in USB_ActivateEndpoint()
418 if (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_USBAEP) == 0) in USB_ActivateEndpoint()
420 … USBx_INEP(ep->num)->DIEPCTL |= ((ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ ) | (ep->type << 18 ) |\ in USB_ActivateEndpoint()
421 ((ep->num) << 22 ) | (USB_OTG_DIEPCTL_SD0PID_SEVNFRM) | (USB_OTG_DIEPCTL_USBAEP)); in USB_ActivateEndpoint()
427 USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((1 << (ep->num)) << 16); in USB_ActivateEndpoint()
429 if (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0) in USB_ActivateEndpoint()
431 … USBx_OUTEP(ep->num)->DOEPCTL |= ((ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ ) | (ep->type << 18 ) |\ in USB_ActivateEndpoint()
450 if (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_USBAEP) == 0) in USB_ActivateDedicatedEndpoint()
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_ll_usb.c316 HAL_StatusTypeDef USB_FlushTxFifo (USB_OTG_GlobalTypeDef *USBx, uint32_t num) in USB_FlushTxFifo() argument
320 USBx->GRSTCTL = ( USB_OTG_GRSTCTL_TXFFLSH |(uint32_t)( num << 6)); in USB_FlushTxFifo()
416 USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & ((1 << (ep->num))); in USB_ActivateEndpoint()
418 if (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_USBAEP) == 0) in USB_ActivateEndpoint()
420 … USBx_INEP(ep->num)->DIEPCTL |= ((ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ ) | (ep->type << 18 ) |\ in USB_ActivateEndpoint()
421 ((ep->num) << 22 ) | (USB_OTG_DIEPCTL_SD0PID_SEVNFRM) | (USB_OTG_DIEPCTL_USBAEP)); in USB_ActivateEndpoint()
427 USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((1 << (ep->num)) << 16); in USB_ActivateEndpoint()
429 if (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0) in USB_ActivateEndpoint()
431 … USBx_OUTEP(ep->num)->DOEPCTL |= ((ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ ) | (ep->type << 18 ) |\ in USB_ActivateEndpoint()
450 if (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_USBAEP) == 0) in USB_ActivateDedicatedEndpoint()
[all …]
/external/libaom/libaom/test/
Derror_resilience_test.cc226 void SetErrorFrames(int num, unsigned int *list) { in SetErrorFrames() argument
227 if (num > kMaxErrorFrames) in SetErrorFrames()
228 num = kMaxErrorFrames; in SetErrorFrames()
229 else if (num < 0) in SetErrorFrames()
230 num = 0; in SetErrorFrames()
231 error_nframes_ = num; in SetErrorFrames()
236 void SetInvisibleErrorFrames(int num, unsigned int *list) { in SetInvisibleErrorFrames() argument
237 if (num > kMaxInvisibleErrorFrames) in SetInvisibleErrorFrames()
238 num = kMaxInvisibleErrorFrames; in SetInvisibleErrorFrames()
239 else if (num < 0) in SetInvisibleErrorFrames()
[all …]
/external/e2fsprogs/misc/
Duuidd.c144 int buflen, int *num, const char **err_context) in call_daemon() argument
153 if (((op == 4) || (op == 5)) && !num) { in call_daemon()
179 if ((*num)*16 > buflen-4) in call_daemon()
180 *num = (buflen-4) / 16; in call_daemon()
185 memcpy(op_buf+1, num, sizeof(int)); in call_daemon()
214 memcpy(buf+16, num, sizeof(int)); in call_daemon()
216 *num = -1; in call_daemon()
219 if (*num >= (int) sizeof(int)) in call_daemon()
220 memcpy(buf, num, sizeof(int)); in call_daemon()
222 *num = -1; in call_daemon()
[all …]
/external/squashfs-tools/squashfs-tools/
Dswap.c69 unsigned short inswap_le16(unsigned short num) in inswap_le16() argument
71 return (num >> 8) | in inswap_le16()
72 ((num & 0xff) << 8); in inswap_le16()
76 unsigned int inswap_le32(unsigned int num) in inswap_le32() argument
78 return (num >> 24) | in inswap_le32()
79 ((num & 0xff0000) >> 8) | in inswap_le32()
80 ((num & 0xff00) << 8) | in inswap_le32()
81 ((num & 0xff) << 24); in inswap_le32()
87 unsigned long long num = n; in inswap_le64() local
89 return (num >> 56) | in inswap_le64()
[all …]
/external/openscreen/util/
Dinteger_division_unittest.cc26 for (int num = -range_of_numerators; num <= range_of_numerators; ++num) { in TestRangeAboutZero() local
27 EXPECT_EQ(expected_result, function_to_test(Input(num), Input(denom))) in TestRangeAboutZero()
28 << "num=" << num << ", denom=" << denom; in TestRangeAboutZero()
29 EXPECT_EQ(expected_result, function_to_test(Input(-num), Input(-denom))) in TestRangeAboutZero()
30 << "num=" << (-num) << ", denom=" << (-denom); in TestRangeAboutZero()
56 for (int num = 0; num <= 6; ++num) { in TEST() local
58 EXPECT_EQ(DivideRoundingUp(num, denom), in TEST()
59 DividePositivesRoundingUp(num, denom)); in TEST()
82 for (int num = 0; num <= 6; ++num) { in TEST() local
84 EXPECT_EQ(DivideRoundingNearest(num, denom), in TEST()
[all …]
Dinteger_division.h18 constexpr auto DivideRoundingUp(Integer num, Integer denom) { in DivideRoundingUp() argument
20 num *= -1; in DivideRoundingUp()
23 if (num < Integer{0}) { in DivideRoundingUp()
24 return num / denom; in DivideRoundingUp()
26 return (num + denom - Integer{1}) / denom; in DivideRoundingUp()
33 constexpr Integer DividePositivesRoundingUp(Integer num, Integer denom) { in DividePositivesRoundingUp() argument
34 return DivideRoundingUp<typename std::make_unsigned<Integer>::type>(num, in DividePositivesRoundingUp()
45 constexpr auto DivideRoundingNearest(Integer num, Integer denom) { in DivideRoundingNearest() argument
47 num *= -1; in DivideRoundingNearest()
50 if (num < Integer{0}) { in DivideRoundingNearest()
[all …]
/external/llvm-project/clang/test/Analysis/
Dloop-widening-notes.cpp24 int num = 10; in while_analyzer_output() local
28 num = flag_b; in while_analyzer_output()
30 if (num < 0) // expected-note {{Assuming 'num' is >= 0}} in while_analyzer_output()
33 else if (num >= 1) // expected-note {{Assuming 'num' is < 1}} in while_analyzer_output()
38 return flag_b / num; // no-crash expected-warning {{Division by zero}} in while_analyzer_output()
44 int num = 10; in do_while_analyzer_output() local
47 num--; in do_while_analyzer_output()
50 if (num == 0) // expected-note {{Assuming 'num' is equal to 0}} in do_while_analyzer_output()
52 local = 10 / num; // no-crash expected-warning {{Division by zero}} in do_while_analyzer_output()
59 int num = 10; in test_for_loop() local
[all …]
/external/icu/icu4c/source/test/perf/DateFmtPerf/
DDateFmtPerf.h56 int num;
61 BreakItFunction(){num = -1;} in BreakItFunction()
62 BreakItFunction(int a, bool b){num = a; wordIteration = b;} in BreakItFunction()
70 for(int i = 0; i < num; i++) in call()
87 for(int i = 0; i < num; i++) in call()
107 if(wordIteration) return 125*num; in getOperationsPerIteration()
108 else return 355*num; in getOperationsPerIteration()
149 int num;
155 num = -1; in DateFmtFunction()
160 num = a; in DateFmtFunction()
[all …]
/external/libcxx/test/std/utilities/ratio/
Dtypedefs.pass.cpp16 static_assert(std::atto::num == 1 && std::atto::den == 1000000000000000000ULL, ""); in main()
17 static_assert(std::femto::num == 1 && std::femto::den == 1000000000000000ULL, ""); in main()
18 static_assert(std::pico::num == 1 && std::pico::den == 1000000000000ULL, ""); in main()
19 static_assert(std::nano::num == 1 && std::nano::den == 1000000000ULL, ""); in main()
20 static_assert(std::micro::num == 1 && std::micro::den == 1000000ULL, ""); in main()
21 static_assert(std::milli::num == 1 && std::milli::den == 1000ULL, ""); in main()
22 static_assert(std::centi::num == 1 && std::centi::den == 100ULL, ""); in main()
23 static_assert(std::deci::num == 1 && std::deci::den == 10ULL, ""); in main()
24 static_assert(std::deca::num == 10ULL && std::deca::den == 1, ""); in main()
25 static_assert(std::hecto::num == 100ULL && std::hecto::den == 1, ""); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/ratio/
Dtypedefs.pass.cpp17 static_assert(std::atto::num == 1 && std::atto::den == 1000000000000000000ULL, ""); in main()
18 static_assert(std::femto::num == 1 && std::femto::den == 1000000000000000ULL, ""); in main()
19 static_assert(std::pico::num == 1 && std::pico::den == 1000000000000ULL, ""); in main()
20 static_assert(std::nano::num == 1 && std::nano::den == 1000000000ULL, ""); in main()
21 static_assert(std::micro::num == 1 && std::micro::den == 1000000ULL, ""); in main()
22 static_assert(std::milli::num == 1 && std::milli::den == 1000ULL, ""); in main()
23 static_assert(std::centi::num == 1 && std::centi::den == 100ULL, ""); in main()
24 static_assert(std::deci::num == 1 && std::deci::den == 10ULL, ""); in main()
25 static_assert(std::deca::num == 10ULL && std::deca::den == 1, ""); in main()
26 static_assert(std::hecto::num == 100ULL && std::hecto::den == 1, ""); in main()
[all …]

12345678910>>...141