Searched refs:np (Results 1 - 25 of 182) sorted by relevance

12345678

/external/valgrind/none/tests/linux/
H A Dmremap.c31 char *np; local
35 np = mremap(p, 1024*1024, 256*1024, 0); /* shrink, fixed */
36 if (np == (char *)-1)
38 if (np != p)
39 fprintf(stderr, "shrink, nomove: p=%p np=%p: shrink moved?!\n",
40 p, np);
41 if (np != (char *)-1)
42 munmap(np, 256*1024);
45 np = mremap(p, 1024*1024, 256*1024, MREMAP_MAYMOVE); /* shrink, maymove */
46 if (np
[all...]
H A Dmremap6.c24 void *np, *p; local
27 np = mremap(p, 1024*1024, 2048*1024, MREMAP_MAYMOVE); /* grow, maymove */
28 assert(np != (void *)-1);
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
H A Dcv_util.py10 np = external_modules.ImportRequiredModule('numpy') variable
16 theta1 = np.arctan2(np.float(line1[1] - line1[3]),
17 np.float(line1[0] - line1[2]))
18 theta2 = np.arctan2(np.float(line2[1] - line2[3]),
19 np.float(line2[0] - line2[2]))
21 if angle2 >= np.pi:
22 angle2 -= np.pi
25 return not abs(angle2 - (np
[all...]
H A Dcv_util_unittest.py10 np = external_modules.ImportRequiredModule('numpy') variable
24 l1 = np.asfarray((0, 0, 1, 0))
25 l2 = np.asfarray((0, 0, 0, 1))
29 np.pi / 2 - 1e-10))
31 np.pi / 2 - 1e-10))
32 self.assertTrue(self.cv_util.AreLinesOrthogonal(l1, l1, np.pi / 2))
33 self.assertTrue(self.cv_util.AreLinesOrthogonal(l2, l2, np.pi / 2))
35 l3 = np.asfarray((0, 0, 1, 1))
36 l4 = np.asfarray((1, 1, 0, 0))
38 np
[all...]
H A Dscreen_finder_unittest.py14 np = external_modules.ImportRequiredModule('numpy') variable
80 prev_corners = np.asfarray(([1000, 1000], [0, 1000], [0, 0], [1000, 0]))
95 line1 = np.asfarray(((0, 0, 1, 0)))
96 line2 = np.asfarray(((0, 0, 0, 1)))
97 point = np.asfarray((0, 0))
99 corners = np.asfarray(((1, 0), (0, 1)))
101 corners = np.append(corners, (100, 1))
102 corners = np.append(corners, (1, 100))
106 corners = np.append(corners, (100, 0))
107 corners = np
[all...]
H A Dimage_util_numpy_impl.py15 np = external_modules.ImportRequiredModule('numpy') variable
28 return bytearray(np.uint8(image[:, :, ::-1]).flat) # Convert from bgr to rgb.
48 img = np.array(pixels, order='F', dtype=np.uint8)
66 file_bytes = np.asarray(bytearray(png_data), dtype=np.uint8)
79 amax = np.maximum(image1, image2)
80 amin = np.minimum(image1, image2)
90 return np.amax(_SimpleDiff(image1, image2)) <= tolerance
93 if np
[all...]
/external/syslinux/gpxe/src/drivers/net/
H A Dnatsemi.c106 struct natsemi_private *np = container_of ( basher, struct natsemi_private, local
111 eereg = inb ( np->ioaddr + EE_REG );
117 struct natsemi_private *np = container_of ( basher, struct natsemi_private, local
122 eereg = inb ( np->ioaddr + EE_REG );
125 outb ( eereg, np->ioaddr + EE_REG );
147 static void natsemi_init_eeprom ( struct natsemi_private *np ) {
151 np->spibit.basher.op = &natsemi_basher_ops;
152 np->spibit.bus.mode = SPI_MODE_THREEWIRE;
153 np->spibit.endianness = SPI_BIT_LITTLE_ENDIAN;
154 init_spi_bit_basher ( &np
174 struct natsemi_private *np = NULL; local
249 struct natsemi_private *np = netdev->priv; local
331 struct natsemi_private *np = netdev->priv; local
439 struct natsemi_private *np = netdev->priv; local
458 struct natsemi_private *np = netdev->priv; local
501 struct natsemi_private *np = netdev->priv; local
593 struct natsemi_private *np = netdev->priv; local
[all...]
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/facet.numpunct.members/
H A Ddecimal_point.pass.cpp24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
25 assert(np.decimal_point() == '.');
29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
30 assert(np.decimal_point() == L'.');
H A Dgrouping.pass.cpp24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
25 assert(np.grouping() == std::string());
29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
30 assert(np.grouping() == std::string());
H A Dthousands_sep.pass.cpp24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
25 assert(np.thousands_sep() == ',');
29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
30 assert(np.thousands_sep() == L',');
H A Dfalsename.pass.cpp24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
25 assert(np.falsename() == std::string("false"));
29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
30 assert(np.falsename() == std::wstring(L"false"));
H A Dtruename.pass.cpp24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
25 assert(np.truename() == std::string("true"));
29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
30 assert(np.truename() == std::wstring(L"true"));
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/
H A Ddecimal_point.pass.cpp30 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
31 assert(np.decimal_point() == '.');
35 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
36 assert(np.decimal_point() == L'.');
43 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
44 assert(np.decimal_point() == '.');
48 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
49 assert(np.decimal_point() == L'.');
56 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
57 assert(np
61 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
[all...]
H A Dgrouping.pass.cpp31 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
32 assert(np.grouping() == "");
36 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
37 assert(np.grouping() == "");
44 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
45 assert(np.grouping() == "\3\3");
49 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
50 assert(np.grouping() == "\3\3");
62 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
63 assert(np
67 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
[all...]
H A Dthousands_sep.pass.cpp32 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
33 assert(np.thousands_sep() == ',');
37 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
38 assert(np.thousands_sep() == L',');
45 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
46 assert(np.thousands_sep() == ',');
50 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
51 assert(np.thousands_sep() == L',');
65 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
66 assert(np
70 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local
[all...]
/external/toybox/lib/
H A Dportability.c34 ssize_t getdelim(char **linep, size_t *np, int delim, FILE *stream) argument
42 if (!linep || !np) {
47 if (*linep == NULL || *np == 0) {
48 *np = 1024;
49 *linep = calloc(1, *np);
55 if (i > *np) {
57 new_len = *np + 1024;
60 *np = new_len;
69 if (i > *np) {
74 *np
82 getline(char **linep, size_t *np, FILE *stream) argument
[all...]
/external/chromium-trace/catapult/telemetry/telemetry/util/
H A Dcolor_histogram.py13 np = external_modules.ImportOptionalModule('numpy') variable
25 sum_func = np.sum if np is not None else sum
38 if np is not None:
39 remainder = np.multiply(hist1, n2) - np.multiply(hist2, n1)
40 cumsum = np.cumsum(remainder)
41 total = np.sum(np.abs(cumsum))
/external/libcxx/test/std/localization/locale.stdcvt/
H A Dcodecvt_utf8_utf16_in.pass.cpp37 const char* np = nullptr; local
38 std::codecvt_base::result r = c.in(m, n, n+4, np, w, w+2, wp);
41 assert(np == n+4);
48 r = c.in(m, n, n+3, np, w, w+2, wp);
51 assert(np == n+3);
56 r = c.in(m, n, n+2, np, w, w+2, wp);
59 assert(np == n+2);
63 r = c.in(m, n, n+1, np, w, w+2, wp);
66 assert(np == n+1);
76 const char* np local
112 const char* np = nullptr; local
151 const char* np = nullptr; local
190 const char* np = nullptr; local
226 const char* np = nullptr; local
265 const char* np = nullptr; local
304 const char* np = nullptr; local
340 const char* np = nullptr; local
[all...]
H A Dcodecvt_utf16_in.pass.cpp37 const char* np = nullptr; local
38 std::codecvt_base::result r = c.in(m, n, n+4, np, &w, &w+1, wp);
41 assert(np == n+4);
46 r = c.in(m, n, n+2, np, &w, &w+1, wp);
49 assert(np == n+2);
54 r = c.in(m, n, n+2, np, &w, &w+1, wp);
57 assert(np == n+2);
63 r = c.in(m, n, n+2, np, &w, &w+1, wp);
66 assert(np == n+2);
76 const char* np local
115 const char* np = nullptr; local
154 const char* np = nullptr; local
193 const char* np = nullptr; local
234 const char* np = nullptr; local
273 const char* np = nullptr; local
312 const char* np = nullptr; local
351 const char* np = nullptr; local
390 const char* np = nullptr; local
429 const char* np = nullptr; local
470 const char* np = nullptr; local
510 const char* np = nullptr; local
549 const char* np = nullptr; local
588 const char* np = nullptr; local
627 const char* np = nullptr; local
666 const char* np = nullptr; local
707 const char* np = nullptr; local
[all...]
H A Dcodecvt_utf8_in.pass.cpp37 const char* np = nullptr; local
38 std::codecvt_base::result r = c.in(m, n, n+4, np, &w, &w+1, wp);
41 assert(np == n+4);
47 r = c.in(m, n, n+3, np, &w, &w+1, wp);
50 assert(np == n+3);
55 r = c.in(m, n, n+2, np, &w, &w+1, wp);
58 assert(np == n+2);
63 r = c.in(m, n, n+1, np, &w, &w+1, wp);
66 assert(np == n+1);
76 const char* np local
115 const char* np = nullptr; local
157 const char* np = nullptr; local
196 const char* np = nullptr; local
235 const char* np = nullptr; local
277 const char* np = nullptr; local
307 const char* np = nullptr; local
337 const char* np = nullptr; local
[all...]
/external/openssh/openbsd-compat/
H A Dsetenv.c60 const char *np; local
66 for (np = name, i = len; i && *cp; i--)
67 if (*cp++ != *np++)
135 const char *np; local
138 for (np = name; *np && *np != '='; ++np)
141 if (*np) {
148 if ((C = __findenv(name, (int)(np
201 const char *np; local
[all...]
/external/tcpdump/
H A Dnameser.h239 #define DNS_QR(np) ((np)->flags1 & 0x80) /* response flag */
240 #define DNS_OPCODE(np) ((((np)->flags1) >> 3) & 0xF) /* purpose of message */
241 #define DNS_AA(np) ((np)->flags1 & 0x04) /* authoritative answer */
242 #define DNS_TC(np) ((np)->flags1 & 0x02) /* truncated message */
243 #define DNS_RD(np) ((np)
[all...]
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
H A Dp1-11.cpp15 constexpr std::nullptr_t np = nullptr; variable
26 IP<np> ip5;
44 PM<np> pm5;
55 PMF<np> pmf5;
58 template<std::nullptr_t np> struct NP { // expected-note 2{{template parameter is declared here}}
59 NP<np> *np2;
63 NP<np> np2;
/external/clang/test/Analysis/
H A Dnullptr.cpp7 char *np = nullptr; local
8 *np = 0; // expected-warning{{Dereference of null pointer}}
26 char *np = nullptr; local
28 int *ip = &(((struct foo *)np)->f);
31 // *np = 0;
36 char *np = nullptr; local
37 if (np != 0)
38 *np = 0; // no-warning
40 if (np != cp)
41 *np
[all...]
/external/autotest/client/cros/camera/
H A Dcamera_utils.py6 import numpy as np namespace
11 return np.expand_dims(x, axis=0)
15 return np.squeeze(x)

Completed in 524 milliseconds

12345678