Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 212) sorted by relevance

123456789

/bionic/libc/arch-arm/bionic/
D__aeabi.c62 void __attribute__((weak)) __aeabi_memcpy8_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl() argument
63 memcpy(dest, src, n); in __aeabi_memcpy8_impl()
66 void __attribute__((weak)) __aeabi_memcpy4_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl() argument
67 memcpy(dest, src, n); in __aeabi_memcpy4_impl()
70 void __attribute__((weak)) __aeabi_memcpy_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy_impl() argument
71 memcpy(dest, src, n); in __aeabi_memcpy_impl()
74 void __attribute__((weak)) __aeabi_memcpy8_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl2() argument
75 memcpy(dest, src, n); in __aeabi_memcpy8_impl2()
78 void __attribute__((weak)) __aeabi_memcpy4_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl2() argument
79 memcpy(dest, src, n); in __aeabi_memcpy4_impl2()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrstr.c30 twobyte_strstr(const unsigned char *h, const unsigned char *n) in twobyte_strstr() argument
32 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_strstr()
38 threebyte_strstr(const unsigned char *h, const unsigned char *n) in threebyte_strstr() argument
40 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_strstr()
47 fourbyte_strstr(const unsigned char *h, const unsigned char *n) in fourbyte_strstr() argument
49 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_strstr()
66 twoway_strstr(const unsigned char *h, const unsigned char *n) in twoway_strstr() argument
74 for (l=0; n[l] && h[l]; l++) in twoway_strstr()
75 BITOP(byteset, n[l], |=), shift[n[l]] = l+1; in twoway_strstr()
76 if (n[l]) return 0; /* hit the end of h */ in twoway_strstr()
[all …]
Dmemmem.c30 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument
32 uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1]; in twobyte_memmem()
39 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument
41 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8; in threebyte_memmem()
49 fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in fourbyte_memmem() argument
51 uint32_t nw = n[0]<<24 | n[1]<<16 | n[2]<<8 | n[3]; in fourbyte_memmem()
70 const unsigned char *n, size_t l) in twoway_memmem() argument
78 BITOP(byteset, n[i], |=), shift[n[i]] = i+1; in twoway_memmem()
83 if (n[ip+k] == n[jp+k]) { in twoway_memmem()
88 } else if (n[ip+k] > n[jp+k]) { in twoway_memmem()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_scalbnl.c20 long double scalbnl(long double x, int n) in scalbnl() argument
24 if (n > 16383) { in scalbnl()
26 n -= 16383; in scalbnl()
27 if (n > 16383) { in scalbnl()
29 n -= 16383; in scalbnl()
30 if (n > 16383) in scalbnl()
31 n = 16383; in scalbnl()
33 } else if (n < -16382) { in scalbnl()
35 n += 16382 - 113; in scalbnl()
36 if (n < -16382) { in scalbnl()
[all …]
Ds_scalbnf.c12 float scalbnf(float x, int n) in scalbnf() argument
17 if (n > 127) { in scalbnf()
19 n -= 127; in scalbnf()
20 if (n > 127) { in scalbnf()
22 n -= 127; in scalbnf()
23 if (n > 127) in scalbnf()
24 n = 127; in scalbnf()
26 } else if (n < -126) { in scalbnf()
28 n += 126 - 24; in scalbnf()
29 if (n < -126) { in scalbnf()
[all …]
Ds_scalbn.c13 double scalbn(double x, int n) in scalbn() argument
18 if (n > 1023) { in scalbn()
20 n -= 1023; in scalbn()
21 if (n > 1023) { in scalbn()
23 n -= 1023; in scalbn()
24 if (n > 1023) in scalbn()
25 n = 1023; in scalbn()
27 } else if (n < -1022) { in scalbn()
31 n += 1022 - 53; in scalbn()
32 if (n < -1022) { in scalbn()
[all …]
Ds_scalbln.c38 scalbln(double x, long n) in scalbln() argument
41 return (scalbn(x, (n > NMAX) ? NMAX : (n < NMIN) ? NMIN : (int)n)); in scalbln()
45 scalblnf(float x, long n) in scalblnf() argument
48 return (scalbnf(x, (n > NMAX) ? NMAX : (n < NMIN) ? NMIN : (int)n)); in scalblnf()
52 scalblnl(long double x, long n) in scalblnl() argument
55 return (scalbnl(x, (n > NMAX) ? NMAX : (n < NMIN) ? NMIN : (int)n)); in scalblnl()
De_fmod.c33 int32_t n,hx,hy,hz,ix,iy,sx,i; in fmod() local
74 n = -1022-ix; in fmod()
75 if(n<=31) { in fmod()
76 hx = (hx<<n)|(lx>>(32-n)); in fmod()
77 lx <<= n; in fmod()
79 hx = lx<<(n-32); in fmod()
86 n = -1022-iy; in fmod()
87 if(n<=31) { in fmod()
88 hy = (hy<<n)|(ly>>(32-n)); in fmod()
89 ly <<= n; in fmod()
[all …]
De_jnf.c35 jnf(int n, float x) in jnf() argument
48 if(n<0){ in jnf()
49 n = -n; in jnf()
53 if(n==0) return(j0f(x)); in jnf()
54 if(n==1) return(j1f(x)); in jnf()
55 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ in jnf()
59 else if((float)n<=x) { in jnf()
63 for(i=1;i<n;i++){ in jnf()
73 if(n>33) /* underflow */ in jnf()
77 for (a=one,i=2;i<=n;i++) { in jnf()
[all …]
De_jn.c54 jn(int n, double x) in jn() argument
67 if(n<0){ in jn()
68 n = -n; in jn()
72 if(n==0) return(j0(x)); in jn()
73 if(n==1) return(j1(x)); in jn()
74 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ in jn()
78 else if((double)n<=x) { in jn()
95 switch(n&3) { in jn()
105 for(i=1;i<n;i++){ in jn()
116 if(n>33) /* underflow */ in jn()
[all …]
Ds_remquo.c34 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquo() local
81 n = -1022-ix; in remquo()
82 if(n<=31) { in remquo()
83 hx = (hx<<n)|(lx>>(32-n)); in remquo()
84 lx <<= n; in remquo()
86 hx = lx<<(n-32); in remquo()
93 n = -1022-iy; in remquo()
94 if(n<=31) { in remquo()
95 hy = (hy<<n)|(ly>>(32-n)); in remquo()
96 ly <<= n; in remquo()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dgethex.c48 int big, esign, havedig, irv, j, k, n, n0, nbits, up, zret; local
133 if ((n = hexdig[*s]) == 0 || n > 0x19) {
137 e1 = n - 0x10;
138 while((n = hexdig[*++s]) !=0 && n <= 0x19) {
141 e1 = 10*e1 + n - 0x10;
187 n0 = n = nbits >> kshift;
189 ++n;
190 for(j = n, k = 0; j >>= 1; ++k);
194 b->wds = n;
197 if (n > n0)
[all …]
Dgmisc.c42 int n; local
45 n = k >> kshift;
46 if (n < b->wds) {
48 x += n;
50 n = ULbits - k;
53 *x1++ = (y | (*x << n)) & ALL_ON;
75 int n = 0; local
79 for(n = 0; x < xe && !*x; x++)
80 n += ULbits;
83 n += lo0bits(&L);
[all …]
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregexec.c78 xmbrtowc(wint_t *wi, const char *s, size_t n, mbstate_t *mbs, wint_t dummy) in __weak_alias()
84 nr = mbrtowc(&wc, s, n, mbs); in __weak_alias()
106 size_t n __unused, in xmbrtowc_dummy()
120 #define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) argument
121 #define SET1(v, n) ((v) |= (unsigned long)1 << (n)) argument
122 #define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) argument
126 #define STATESETUP(m, n) /* nothing */ argument
130 #define INIT(o, n) ((o) = (unsigned long)1 << (n)) argument
135 #define FWD(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) << (n)) argument
136 #define BACK(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) >> (n)) argument
[all …]
/bionic/tests/
Dthread_local_test.cpp212 for (size_t n = 0; n < num_saved_values; n++) { in TEST() local
213 memcpy(&tls_var[n], &c, sizeof(c)); in TEST()
214 tls_var[n].align = (1 << n); in TEST()
216 for (size_t n = 0; n < num_saved_values; n++) { in TEST() local
220 saved_gap[n] = malloc(1); in TEST()
221 void* p = __emutls_get_address(&tls_var[n]); in TEST()
222 saved_p[n] = p; in TEST()
224 ASSERT_TRUE(tls_var[n].object.index != 0); in TEST()
226 if (n > 0) { in TEST()
229 ASSERT_TRUE(prev_index + 1 == tls_var[n].object.index || in TEST()
[all …]
/bionic/libc/kernel/uapi/linux/usb/
Dvideo.h171 #define UVC_DT_HEADER_SIZE(n) (12 + (n)) argument
172 #define UVC_HEADER_DESCRIPTOR(n) uvc_header_descriptor_ ##n argument
173n) struct UVC_HEADER_DESCRIPTOR(n) { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSubType; … argument
210 #define UVC_DT_CAMERA_TERMINAL_SIZE(n) (15 + (n)) argument
220 #define UVC_DT_SELECTOR_UNIT_SIZE(n) (6 + (n)) argument
221 #define UVC_SELECTOR_UNIT_DESCRIPTOR(n) uvc_selector_unit_descriptor_ ##n argument
222n) struct UVC_SELECTOR_UNIT_DESCRIPTOR(n) { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSu… argument
236 #define UVC_DT_PROCESSING_UNIT_SIZE(n) (10 + (n)) argument
250 #define UVC_DT_EXTENSION_UNIT_SIZE(p,n) (24 + (p) + (n)) argument
251 #define UVC_EXTENSION_UNIT_DESCRIPTOR(p,n) uvc_extension_unit_descriptor_ ##p_ ##n argument
[all …]
/bionic/libc/dns/nameser/
Dns_name.c103 u_int n; in ns_name_ntop() local
110 while ((n = *cp++) != 0) { in ns_name_ntop()
111 if ((n & NS_CMPRSFLGS) == NS_CMPRSFLGS) { in ns_name_ntop()
131 if ((n & NS_CMPRSFLGS) == NS_TYPE_ELT) { in ns_name_ntop()
134 if (n != DNS_LABELTYPE_BITSTRING) { in ns_name_ntop()
223 int c, n, escaped, e = 0; in ns_name_pton2() local
255 n = (int)(cp - digits) * 100; in ns_name_pton2()
261 n += (int)(cp - digits) * 10; in ns_name_pton2()
267 n += (int)(cp - digits); in ns_name_pton2()
268 if (n > 255) { in ns_name_pton2()
[all …]
Dns_samedomain.c171 size_t n = strlen(src); in ns_makecanon() local
173 if (n + sizeof "." > dstsize) { /* Note: sizeof == 2 */ in ns_makecanon()
178 while (n >= 1U && dst[n - 1] == '.') /* Ends in "." */ in ns_makecanon()
179 if (n >= 2U && dst[n - 2] == '\\' && /* Ends in "\." */ in ns_makecanon()
180 (n < 3U || dst[n - 3] != '\\')) /* But not "\\." */ in ns_makecanon()
183 dst[--n] = '\0'; in ns_makecanon()
184 dst[n++] = '.'; in ns_makecanon()
185 dst[n] = '\0'; in ns_makecanon()
/bionic/libc/stdio/
Dfmemopen.cpp48 static int fmemopen_read(void* cookie, char* buf, int n) { in fmemopen_read() argument
51 if (static_cast<size_t>(n) > ck->size - ck->offset) n = ck->size - ck->offset; in fmemopen_read()
53 if (n > 0) { in fmemopen_read()
54 memmove(buf, ck->buf + ck->offset, n); in fmemopen_read()
55 ck->offset += n; in fmemopen_read()
57 return n; in fmemopen_read()
60 static int fmemopen_write(void* cookie, const char* buf, int n) { in fmemopen_write() argument
65 size_t space_for_null = (n > 0 && buf[n - 1] != '\0') ? 1 : 0; in fmemopen_write()
71 if (static_cast<size_t>(n) + space_for_null > ck->capacity - ck->offset) { in fmemopen_write()
72 n = ck->capacity - ck->offset - space_for_null; in fmemopen_write()
[all …]
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dqsort.c73 #define vecswap(a, b, n) \ argument
74 if ((n) > 0) swapfunc(a, b, n)
110 local_qsort(void *a, size_t n, size_t es, cmp_t *cmp, void *thunk) in local_qsort() argument
118 if (__predict_false(n < 2)) in local_qsort()
122 if (n < 7) { in local_qsort()
123 for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es) in local_qsort()
130 pm = (char *)a + (n / 2) * es; in local_qsort()
131 if (n > 7) { in local_qsort()
133 pn = (char *)a + (n - 1) * es; in local_qsort()
134 if (n > 40) { in local_qsort()
[all …]
/bionic/libc/bionic/
Dpthread_setname_np.cpp68 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); in pthread_getname_np() local
71 if (n == -1) return errno; in pthread_getname_np()
75 if (n > 0 && buf[n - 1] == '\n') { in pthread_getname_np()
76 buf[n - 1] = '\0'; in pthread_getname_np()
80 if (n == static_cast<ssize_t>(buf_size)) return ERANGE; in pthread_getname_np()
81 buf[n] = '\0'; in pthread_getname_np()
101 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len)); in pthread_setname_np() local
104 if (n == -1) return errno; in pthread_setname_np()
105 if (n != static_cast<ssize_t>(thread_name_len)) return EIO; in pthread_setname_np()
Dgetloadavg.cpp33 int getloadavg(double averages[], int n) { in getloadavg() argument
34 if (n < 0) return -1; in getloadavg()
35 if (n > 3) n = 3; in getloadavg()
40 for (int i = 0; i < n; ++i) { in getloadavg()
43 return n; in getloadavg()
Dbionic_arc4random.cpp38 void __libc_safe_arc4random_buf(void* buf, size_t n) { in __libc_safe_arc4random_buf() argument
44 arc4random_buf(buf, n); in __libc_safe_arc4random_buf()
49 if (at_random_bytes_consumed + n > 16) { in __libc_safe_arc4random_buf()
51 16 - at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
54 memcpy(buf, reinterpret_cast<char*>(getauxval(AT_RANDOM)) + at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
55 at_random_bytes_consumed += n; in __libc_safe_arc4random_buf()
/bionic/libc/include/bits/fortify/
Dstring.h120 …* _Nonnull strncat(char* _Nonnull const dst __pass_object_size, const char* _Nonnull src, size_t n) in strncat() argument
123 return __builtin___strncat_chk(dst, src, n, __bos(dst)); in strncat()
129 void* _Nonnull memset(void* _Nonnull const s __pass_object_size0, int c, size_t n) __overloadable in memset() argument
132 __clang_warning_if(c && !n, "'memset' will set 0 bytes; maybe the arguments got flipped?") { in memset()
134 return __builtin___memset_chk(s, c, n, __bos0(s)); in memset()
136 return __builtin_memset(s, c, n); in memset()
142 void* _Nullable memchr(const void* _Nonnull const s __pass_object_size, int c, size_t n) __overload… in memchr() argument
145 if (__bos_trivially_ge(bos, n)) { in memchr()
146 return __builtin_memchr(s, c, n); in memchr()
149 return __memchr_chk(s, c, n, bos); in memchr()
[all …]
/bionic/libc/dns/resolv/
Dres_query.c136 int n; in res_nquery() local
149 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery()
152 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery()
154 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery()
156 if (n <= 0) { in res_nquery()
162 return (n); in res_nquery()
164 n = res_nsend(statp, buf, n, answer, anslen); in res_nquery()
165 if (n < 0) { in res_nquery()
181 return (n); in res_nquery()
212 return (n); in res_nquery()
[all …]

123456789