/external/valgrind/none/tests/linux/ |
mremap.c | 31 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 == (char *)-1 [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
cv_util.py | 10 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.pi / 2.0)) > toleranc [all...] |
cv_util_unittest.py | 10 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.pi / 2 - 1e-10) [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
getenv.c | 51 const char *np; local 57 for (np = name, i = len; i && *cp; i--) 58 if (*cp++ != *np++) 76 const char *np; local 78 for (np = name; *np && *np != '='; ++np) 80 return (__findenv(name, (int)(np - name), &offset));
|
setenv.c | 93 const char *np; local 100 for (np = name; *np && *np != '='; ++np) 102 if (*np) { 108 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { 120 while (__findenv(name, (int)(np - name), &tmpoff)) { 141 malloc((size_t)((int)(np - name) + l_value + 2)))) 159 const char *np; local [all...] |
/cts/apps/CameraITS/tests/scene3/ |
test_3a_consistency.py | 19 import numpy as np 56 assert np.isclose(np.amax(exps), np.amin(exps), EXP_TOL) 57 assert np.isclose(np.amax(senses), np.amin(senses), SENS_TOL) 58 assert np.isclose(np.amax(g_gains), np.amin(g_gains), GGAIN_TOL [all...] |
/external/syslinux/gpxe/src/drivers/net/ |
natsemi.c | 106 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->spibit ) 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/ |
decimal_point.pass.cpp | 24 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'.');
|
thousands_sep.pass.cpp | 24 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',');
|
falsename.pass.cpp | 24 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"));
|
grouping.pass.cpp | 24 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());
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/facet.numpunct/locale.numpunct/facet.numpunct.members/ |
decimal_point.pass.cpp | 24 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'.');
|
thousands_sep.pass.cpp | 24 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',');
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/facet.numpunct.members/ |
decimal_point.pass.cpp | 24 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'.');
|
thousands_sep.pass.cpp | 24 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',');
|
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/ |
decimal_point.pass.cpp | 30 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.decimal_point() == ',') 61 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
grouping.pass.cpp | 31 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.grouping() == group) 67 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
thousands_sep.pass.cpp | 32 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.thousands_sep() == sep) 70 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
/external/toybox/lib/ |
portability.c | 34 ssize_t getdelim(char **linep, size_t *np, int delim, FILE *stream) 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 = new_len [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/facet.numpunct/locale.numpunct.byname/ |
decimal_point.pass.cpp | 27 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 28 assert(np.decimal_point() == '.'); 32 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 33 assert(np.decimal_point() == L'.'); 40 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 41 assert(np.decimal_point() == '.'); 45 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 46 assert(np.decimal_point() == L'.'); 53 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 54 assert(np.decimal_point() == ',') 58 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
grouping.pass.cpp | 27 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 28 assert(np.grouping() == ""); 32 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 33 assert(np.grouping() == ""); 40 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 41 assert(np.grouping() == "\3\3"); 45 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 46 assert(np.grouping() == "\3\3"); 53 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 54 assert(np.grouping() == "\x7F") 58 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
thousands_sep.pass.cpp | 27 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 28 assert(np.thousands_sep() == ','); 32 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 33 assert(np.thousands_sep() == L','); 40 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 41 assert(np.thousands_sep() == ','); 45 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 46 assert(np.thousands_sep() == L','); 53 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 54 assert(np.thousands_sep() == ',') 58 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/ |
decimal_point.pass.cpp | 30 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.decimal_point() == ',') 61 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
grouping.pass.cpp | 33 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 34 assert(np.grouping() == ""); 38 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 39 assert(np.grouping() == ""); 46 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 47 assert(np.grouping() == "\3\3"); 51 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 52 assert(np.grouping() == "\3\3"); 59 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 60 assert(np.grouping() == "\x7F") 64 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
thousands_sep.pass.cpp | 33 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 34 assert(np.thousands_sep() == ','); 38 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 39 assert(np.thousands_sep() == L','); 46 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 47 assert(np.thousands_sep() == ','); 51 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 52 assert(np.thousands_sep() == L','); 59 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 60 assert(np.thousands_sep() == ',') 64 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |