Home
last modified time | relevance | path

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

12345678

/bionic/libc/upstream-openbsd/lib/libc/locale/
Dwctoint.h36 int n; in wctoint() local
39 case L'0': n = 0; break; in wctoint()
40 case L'1': n = 1; break; in wctoint()
41 case L'2': n = 2; break; in wctoint()
42 case L'3': n = 3; break; in wctoint()
43 case L'4': n = 4; break; in wctoint()
44 case L'5': n = 5; break; in wctoint()
45 case L'6': n = 6; break; in wctoint()
46 case L'7': n = 7; break; in wctoint()
47 case L'8': n = 8; break; in wctoint()
[all …]
/bionic/libc/arch-arm/bionic/
D__aeabi.c64 void __attribute__((weak)) __aeabi_memcpy8_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl() argument
65 memcpy(dest, src, n); in __aeabi_memcpy8_impl()
68 void __attribute__((weak)) __aeabi_memcpy4_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl() argument
69 memcpy(dest, src, n); in __aeabi_memcpy4_impl()
72 void __attribute__((weak)) __aeabi_memcpy_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy_impl() argument
73 memcpy(dest, src, n); in __aeabi_memcpy_impl()
76 void __attribute__((weak)) __aeabi_memcpy8_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl2() argument
77 memcpy(dest, src, n); in __aeabi_memcpy8_impl2()
80 void __attribute__((weak)) __aeabi_memcpy4_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl2() argument
81 memcpy(dest, src, n); in __aeabi_memcpy4_impl2()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_scalbln.c36 scalbln(double x, long n) in scalbln() argument
39 return (scalbn(x, (n > NMAX) ? NMAX : (n < NMIN) ? NMIN : (int)n)); in scalbln()
43 scalblnf(float x, long n) in scalblnf() argument
46 return (scalbnf(x, (n > NMAX) ? NMAX : (n < NMIN) ? NMIN : (int)n)); in scalblnf()
50 scalblnl(long double x, long n) in scalblnl() argument
53 return (scalbnl(x, (n > NMAX) ? NMAX : (n < NMIN) ? NMIN : (int)n)); in scalblnl()
De_fmod.c31 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmod() local
72 n = -1022-ix; in __ieee754_fmod()
73 if(n<=31) { in __ieee754_fmod()
74 hx = (hx<<n)|(lx>>(32-n)); in __ieee754_fmod()
75 lx <<= n; in __ieee754_fmod()
77 hx = lx<<(n-32); in __ieee754_fmod()
84 n = -1022-iy; in __ieee754_fmod()
85 if(n<=31) { in __ieee754_fmod()
86 hy = (hy<<n)|(ly>>(32-n)); in __ieee754_fmod()
87 ly <<= n; in __ieee754_fmod()
[all …]
De_jnf.c35 __ieee754_jnf(int n, float x) in __ieee754_jnf() argument
48 if(n<0){ in __ieee754_jnf()
49 n = -n; in __ieee754_jnf()
53 if(n==0) return(__ieee754_j0f(x)); in __ieee754_jnf()
54 if(n==1) return(__ieee754_j1f(x)); in __ieee754_jnf()
55 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ in __ieee754_jnf()
59 else if((float)n<=x) { in __ieee754_jnf()
63 for(i=1;i<n;i++){ in __ieee754_jnf()
73 if(n>33) /* underflow */ in __ieee754_jnf()
77 for (a=one,i=2;i<=n;i++) { in __ieee754_jnf()
[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 …]
De_jn.c56 __ieee754_jn(int n, double x) in __ieee754_jn() argument
69 if(n<0){ in __ieee754_jn()
70 n = -n; in __ieee754_jn()
74 if(n==0) return(__ieee754_j0(x)); in __ieee754_jn()
75 if(n==1) return(__ieee754_j1(x)); in __ieee754_jn()
76 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ in __ieee754_jn()
80 else if((double)n<=x) { in __ieee754_jn()
96 switch(n&3) { in __ieee754_jn()
106 for(i=1;i<n;i++){ in __ieee754_jn()
117 if(n>33) /* underflow */ in __ieee754_jn()
[all …]
De_rem_pio2f.c52 int32_t e0,n,ix,hx; in __ieee754_rem_pio2f() local
62 n = irint(fn); in __ieee754_rem_pio2f()
64 n = (int32_t)fn; in __ieee754_rem_pio2f()
69 return n; in __ieee754_rem_pio2f()
81 n = __kernel_rem_pio2(tx,ty,e0,1,0); in __ieee754_rem_pio2f()
82 if(hx<0) {*y = -ty[0]; return -n;} in __ieee754_rem_pio2f()
83 *y = ty[0]; return n; in __ieee754_rem_pio2f()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregexec.c112 #define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) in __weak_alias() argument
113 #define SET1(v, n) ((v) |= (unsigned long)1 << (n)) in __weak_alias() argument
114 #define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) in __weak_alias() argument
118 #define STATESETUP(m, n) /* nothing */ in __weak_alias() argument
122 #define INIT(o, n) ((o) = (unsigned long)1 << (n)) in __weak_alias() argument
127 #define FWD(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) << (n)) in __weak_alias() argument
128 #define BACK(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) >> (n)) in __weak_alias() argument
129 #define ISSETBACK(v, n) (((v) & ((unsigned long)here >> (n))) != 0) in __weak_alias() argument
159 #define SET0(v, n) ((v)[n] = 0) in __weak_alias() argument
160 #define SET1(v, n) ((v)[n] = 1) in __weak_alias() argument
[all …]
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dgethex.c48 int big, esign, havedig, irv, j, k, n, n0, nbits, up, zret; local
136 if ((n = hexdig[*s]) == 0 || n > 0x19) {
140 e1 = n - 0x10;
141 while((n = hexdig[*++s]) !=0 && n <= 0x19) {
144 e1 = 10*e1 + n - 0x10;
190 n0 = n = nbits >> kshift;
192 ++n;
193 for(j = n, k = 0; j >>= 1; ++k);
197 b->wds = n;
200 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/bionic/
Dbionic_arc4random.cpp46 void __libc_safe_arc4random_buf(void* buf, size_t n, KernelArgumentBlock& args) { in __libc_safe_arc4random_buf() argument
50 arc4random_buf(buf, n); in __libc_safe_arc4random_buf()
55 if (at_random_bytes_consumed + n > 16) { in __libc_safe_arc4random_buf()
57 16 - at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
60 memcpy(buf, reinterpret_cast<char*>(args.getauxval(AT_RANDOM)) + at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
61 at_random_bytes_consumed += n; in __libc_safe_arc4random_buf()
Dpthread_setname_np.cpp65 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); in pthread_getname_np() local
68 if (n == -1) return errno; in pthread_getname_np()
72 if (n > 0 && buf[n - 1] == '\n') { in pthread_getname_np()
73 buf[n - 1] = '\0'; in pthread_getname_np()
77 if (n == static_cast<ssize_t>(buf_size)) return ERANGE; in pthread_getname_np()
78 buf[n] = '\0'; in pthread_getname_np()
97 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len)); in pthread_setname_np() local
100 if (n == -1) return errno; in pthread_setname_np()
101 if (n != static_cast<ssize_t>(thread_name_len)) return EIO; in pthread_setname_np()
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstpncpy.c38 stpncpy(char *dst, const char *src, size_t n) __overloadable in stpncpy() argument
40 if (n != 0) { in stpncpy()
44 dst = &dst[n]; in stpncpy()
49 while (--n != 0) in stpncpy()
53 } while (--n != 0); in stpncpy()
Dstrlcat.c34 size_t n = dsize; in strlcat() local
38 while (n-- != 0 && *dst != '\0') in strlcat()
41 n = dsize - dlen; in strlcat()
43 if (n-- == 0) in strlcat()
46 if (n != 0) { in strlcat()
48 n--; in strlcat()
Dmemrchr.c26 memrchr(const void *s, int c, size_t n) __overloadable in memrchr() argument
30 if (n != 0) { in memrchr()
31 cp = (unsigned char *)s + n; in memrchr()
35 } while (--n != 0); in memrchr()
Dstrncpy.c42 strncpy(char *dst, const char *src, size_t n) __overloadable in strncpy() argument
44 if (n != 0) { in strncpy()
51 while (--n != 0) in strncpy()
55 } while (--n != 0); in strncpy()
/bionic/libc/kernel/uapi/linux/usb/
Dvideo.h191 #define UVC_DT_HEADER_SIZE(n) (12 + (n)) argument
192 #define UVC_HEADER_DESCRIPTOR(n) uvc_header_descriptor_ ##n argument
194n) struct UVC_HEADER_DESCRIPTOR(n) { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSubType; … argument
240 #define UVC_DT_CAMERA_TERMINAL_SIZE(n) (15 + (n)) argument
252 #define UVC_DT_SELECTOR_UNIT_SIZE(n) (6 + (n)) argument
253 #define UVC_SELECTOR_UNIT_DESCRIPTOR(n) uvc_selector_unit_descriptor_ ##n argument
255n) struct UVC_SELECTOR_UNIT_DESCRIPTOR(n) { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSu… argument
271 #define UVC_DT_PROCESSING_UNIT_SIZE(n) (9 + (n)) argument
288 #define UVC_DT_EXTENSION_UNIT_SIZE(p,n) (24 + (p) + (n)) argument
289 #define UVC_EXTENSION_UNIT_DESCRIPTOR(p,n) uvc_extension_unit_descriptor_ ##p_ ##n argument
[all …]
/bionic/tests/
Dthread_local_test.cpp220 for (size_t n = 0; n < num_saved_values; n++) { in TEST() local
221 memcpy(&tls_var[n], &c, sizeof(c)); in TEST()
222 tls_var[n].align = (1 << n); in TEST()
224 for (size_t n = 0; n < num_saved_values; n++) { in TEST() local
228 saved_gap[n] = malloc(1); in TEST()
229 void* p = __emutls_get_address(&tls_var[n]); in TEST()
230 saved_p[n] = p; in TEST()
232 ASSERT_TRUE(tls_var[n].object.index != 0); in TEST()
234 if (n > 0) { in TEST()
237 ASSERT_TRUE(prev_index + 1 == tls_var[n].object.index || in TEST()
[all …]
/bionic/libc/upstream-freebsd/lib/libc/string/
Dwcslcat.c53 size_t n = siz; in wcslcat() local
57 while (*d != '\0' && n-- != 0) in wcslcat()
60 n = siz - dlen; in wcslcat()
62 if (n == 0) in wcslcat()
65 if (n != 1) { in wcslcat()
67 n--; in wcslcat()
/bionic/libc/arch-mips/string/
Dmemchr.c103 memchr (void const *s, int c_in, size_t n) __overloadable in memchr() argument
105 if (n != 0) { in memchr()
114 for (; n > 0 && ((size_t) p % op_size) != 0; --n, ++p) { in memchr()
139 while (n >= 24 * op_size) { in memchr()
144 n -= 8 * op_size; in memchr()
146 while (n >= 8 * op_size) { in memchr()
150 n -= 8 * op_size; in memchr()
155 while (n >= 12 * op_size) { in memchr()
159 n -= 4 * op_size; in memchr()
161 while (n >= 4 * op_size) { in memchr()
[all …]
Dstrnlen.c82 size_t strnlen (const char *str, size_t n) { in strnlen() argument
83 if (n != 0) { in strnlen()
88 for (; n > 0 && ((size_t) p % op_size) != 0; --n, ++p) { in strnlen()
107 while (n >= 4 * op_size) { in strnlen()
117 n -= 4 * op_size; in strnlen()
120 while (n >= op_size) { in strnlen()
123 n -= op_size; in strnlen()
130 for (; n > 0; --n, ++p) { in strnlen()
/bionic/libc/stdio/
Dvfscanf.c105 int n; /* handy integer */ in __svfscanf() local
347 n = 0; in __svfscanf()
349 if (n == (int)MB_CUR_MAX) { in __svfscanf()
353 buf[n++] = *fp->_p; in __svfscanf()
357 nconv = mbrtowc(wcp, buf, n, &mbs); in __svfscanf()
365 nread += n; in __svfscanf()
369 n = 0; in __svfscanf()
372 if (n != 0) { in __svfscanf()
386 if ((n = fp->_r) < (int)width) { in __svfscanf()
387 sum += n; in __svfscanf()
[all …]
/bionic/libc/dns/nameser/
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()
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 …]

12345678