Home
last modified time | relevance | path

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

1234567891011

/picolibc-3.7.0-3.6.0/newlib/libc/time/
Dtzset.c121 int sign, n; in _tzset_unlocked() local
156 if (sscanf (tzenv, "%11[-+0-9A-Za-z]%n", __tzname_std, &n) <= 0 in _tzset_unlocked()
157 || n < TZNAME_MIN || TZNAME_MAX < n || '>' != tzenv[n]) in _tzset_unlocked()
165 if (sscanf (tzenv, "%11[A-Za-z]%n", __tzname_std, &n) <= 0 in _tzset_unlocked()
166 || n < TZNAME_MIN || TZNAME_MAX < n) in _tzset_unlocked()
170 tzenv += n; in _tzset_unlocked()
184 if (sscanf (tzenv, "%hu%n:%hu%n:%hu%n", &hh, &n, &mm, &n, &ss, &n) < 1) in _tzset_unlocked()
188 tzenv += n; in _tzset_unlocked()
196 if (sscanf (tzenv, "%11[-+0-9A-Za-z]%n", __tzname_dst, &n) <= 0 && tzenv[0] == '>') in _tzset_unlocked()
204 else if (n < TZNAME_MIN || TZNAME_MAX < n || '>' != tzenv[n]) in _tzset_unlocked()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dmbtowc_r.c19 size_t n, in __ascii_mbtowc() argument
32 if (n == 0) in __ascii_mbtowc()
86 ___iso_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in ___iso_mbtowc() argument
98 if (n == 0) in ___iso_mbtowc()
124 __iso_8859_1_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_1_mbtowc() argument
127 return ___iso_mbtowc (r, pwc, s, n, -1, state); in __iso_8859_1_mbtowc()
131 __iso_8859_2_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_2_mbtowc() argument
134 return ___iso_mbtowc (r, pwc, s, n, 0, state); in __iso_8859_2_mbtowc()
138 __iso_8859_3_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_3_mbtowc() argument
141 return ___iso_mbtowc (r, pwc, s, n, 1, state); in __iso_8859_3_mbtowc()
[all …]
Dgdtoa-gethex.c75 int n; in rshift() local
78 n = k >> kshift; in rshift()
79 if (n < b->_wds) { in rshift()
81 x += n; in rshift()
83 n = ULbits - k; in rshift()
86 *x1++ = (y | (*x << n)) & ALL_ON; in rshift()
156 int esign, havedig, irv, k, n, nbits, up, zret; in gethex() local
219 if ((n = __get_hexdig(*s)) == 0 || n > 0x19) { in gethex()
223 e1 = n - 0x10; in gethex()
224 while((n = __get_hexdig(*++s)) !=0 && n <= 0x19) in gethex()
[all …]
D__call_atexit.c101 register int n; in __call_exitprocs() local
115 for (n = p->_ind - 1; n >= 0; n--) in __call_exitprocs()
119 i = 1 << n; in __call_exitprocs()
122 if (d && (!args || args->_dso_handle[n] != d)) in __call_exitprocs()
127 fn = p->_fns[n]; in __call_exitprocs()
128 if (n == p->_ind - 1) in __call_exitprocs()
131 p->_fns[n] = NULL; in __call_exitprocs()
143 (*((void (*)(int, void *)) fn))(code, args->_fnargs[n]); in __call_exitprocs()
145 (*((void (*)(void *)) fn))(args->_fnargs[n]); in __call_exitprocs()
Dwcstombs.c57 size_t n) in wcstombs() argument
64 size_t max = n; in wcstombs()
82 while (n > 0) in wcstombs()
87 num_to_copy = (n > (size_t) bytes ? bytes : (int)n); in wcstombs()
92 return ptr - s - (n >= (size_t) bytes); in wcstombs()
94 n -= num_to_copy; in wcstombs()
101 if (n != 0) { in wcstombs()
106 } while (--n != 0); in wcstombs()
/picolibc-3.7.0-3.6.0/newlib/libc/posix/
Dregexec.c69 #define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) argument
70 #define SET1(v, n) ((v) |= (unsigned long)1 << (n)) argument
71 #define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) argument
75 #define STATESETUP(m, n) /* nothing */ argument
79 #define INIT(o, n) ((o) = (unsigned long)1 << (n)) argument
84 #define FWD(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) << (n)) argument
85 #define BACK(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) >> (n)) argument
86 #define ISSETBACK(v, n) (((v) & ((unsigned long)here >> (n))) != 0) argument
116 #define SET0(v, n) ((v)[n] = 0) argument
117 #define SET1(v, n) ((v)[n] = 1) argument
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/
De_fmodl.c26 int64_t n,hx,hy,hz,ix,iy,sx,i; in fmodl() local
72 n = -16382-ix; in fmodl()
73 if(n<=63) { in fmodl()
74 hx = (hx<<n)|(lx>>(64-n)); in fmodl()
75 lx <<= n; in fmodl()
77 hx = lx<<(n-64); in fmodl()
84 n = -16382-iy; in fmodl()
85 if(n<=63) { in fmodl()
86 hy = (hy<<n)|(ly>>(64-n)); in fmodl()
87 ly <<= n; in fmodl()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dsccl.c37 register int c, n, v; in __sccl() local
49 for (n = 0; n < 256; n++) in __sccl()
50 tab[n] = v; in __sccl()
67 n = *fmt++; /* and examine the next */ in __sccl()
68 switch (n) in __sccl()
87 n = *fmt; in __sccl()
88 if (n == ']' || n < c) in __sccl()
98 while (c < n); in __sccl()
121 c = n; in __sccl()
/picolibc-3.7.0-3.6.0/newlib/libm/math/
Ds_fmod.c31 __int32_t n, hx, hy, hz, ix, iy, sx, i; in fmod64() local
85 n = -1022 - ix; in fmod64()
86 if (n <= 31) { in fmod64()
87 hx = (hx << n) | (lx >> (32 - n)); in fmod64()
88 lx <<= n; in fmod64()
90 hx = lx << (n - 32); in fmod64()
97 n = -1022 - iy; in fmod64()
98 if (n <= 31) { in fmod64()
99 hy = (hy << n) | (ly >> (32 - n)); in fmod64()
100 ly <<= n; in fmod64()
[all …]
Dsf_jn.c24 jnf(int n, float x) in jnf() argument
38 if (n < 0) { in jnf()
39 n = -n; in jnf()
43 if (n == 0) in jnf()
45 if (n == 1) in jnf()
47 sgn = (n & 1) & (hx >> 31); /* even n -- 0, odd n -- sign(x) */ in jnf()
51 else if ((float)n <= x) { in jnf()
55 for (i = 1; i < n; i++) { in jnf()
65 if (n > 33) /* underflow */ in jnf()
70 for (a = one, i = 2; i <= n; i++) { in jnf()
[all …]
Ds_jn.c51 jn64(int n, __float64 x) in jn64() argument
69 if (n < 0) { in jn64()
70 n = -n; in jn64()
74 if (n == 0) in jn64()
76 if (n == 1) in jn64()
78 sgn = (n & 1) & (hx >> 31); /* even n -- 0, odd n -- sign(x) */ in jn64()
82 else if ((__float64)n <= x) { in jn64()
98 switch (n & 3) { in jn64()
117 for (i = 1; i < n; i++) { in jn64()
128 if (n > 33) /* underflow */ in jn64()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Ds_remquo.c88 __int32_t n,hx,hy,hz,ix,iy,sx,i; in remquo64() local
137 n = -1022-ix; in remquo64()
138 if(n<=31) { in remquo64()
139 hx = (hx<<n)|(lx>>(32-n)); in remquo64()
140 lx <<= n; in remquo64()
142 hx = lx<<(n-32); in remquo64()
149 n = -1022-iy; in remquo64()
150 if(n<=31) { in remquo64()
151 hy = (hy<<n)|(ly>>(32-n)); in remquo64()
152 ly <<= n; in remquo64()
[all …]
Dcosf.c46 int n; in cosf() local
60 x = reduce_fast (x, p, &n); in cosf()
63 s = p->sign[n & 3]; in cosf()
65 if (n & 2) in cosf()
68 return sinf_poly (x * s, x * x, p, n ^ 1); in cosf()
75 x = reduce_large (xi, &n); in cosf()
78 s = p->sign[(n + sign) & 3]; in cosf()
80 if ((n + sign) & 2) in cosf()
83 return sinf_poly (x * s, x * x, p, n ^ 1); in cosf()
Dsinf.c45 int n; in sinf() local
64 x = reduce_fast (x, p, &n); in sinf()
67 s = p->sign[n & 3]; in sinf()
69 if (n & 2) in sinf()
72 return sinf_poly (x * s, x * x, p, n); in sinf()
79 x = reduce_large (xi, &n); in sinf()
82 s = p->sign[(n + sign) & 3]; in sinf()
84 if ((n + sign) & 2) in sinf()
87 return sinf_poly (x * s, x * x, p, n); in sinf()
/picolibc-3.7.0-3.6.0/newlib/doc/
Ddoc.str9 "@table @code\n" catstr
14 "@end table\n"
44 "@strong{Synopsis}\n" catstr
45 "@example\n" catstr
51 "@end example\n" catstr
57 "@strong{Synopsis}\n" catstr
58 "@example\n" catstr
64 "@end example\n" catstr
88 "\n" - a x b x c
98 "@sp 1\n" catstr
[all …]
/picolibc-3.7.0-3.6.0/scripts/
DGeneratePicolibcCrossFile.sh367 SETTING_AS_MESON_ARRAY+="]"$'\n'
375 SETTING_AS_MESON_ARRAY+=" '${ESCAPED_ARG}' ]"$'\n'
379 SETTING_AS_MESON_ARRAY+=$'\n'
399 SETTING_AS_MESON_ARRAY+=$'\n'
403 SETTING_AS_MESON_ARRAY+="${BASE_INDENTATION}]"$'\n'
431 COMMAND_SETTING="$SETTING_NAME = '${ESCAPED_ARG}'"$'\n'
528 FILE_CONTENTS+="[binaries]"$'\n'
552 FILE_CONTENTS+="$PART_1"$'\n'
575 FILE_CONTENTS+=$'\n'"$PART_2"$'\n'
579 FILE_CONTENTS+="needs_exe_wrapper = true"$'\n'
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/search/
Dqsort.c89 #define swapcode(TYPE, parmi, parmj, n) { \ argument
90 size_t i = (n) / sizeof (TYPE); \
106 size_t n, in swapfunc() argument
110 swapcode(long, a, b, n) in swapfunc()
112 swapcode(char, a, b, n) in swapfunc()
123 #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) argument
168 size_t n, in __bsd_qsort_r() argument
175 size_t n, in __bsd_qsort_r()
183 size_t n, in __bsd_qsort_r()
193 struct { void *a; size_t n; } parameter_stack[PARAMETER_STACK_LEVELS]; in __bsd_qsort_r() member
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dstrncmp.c74 size_t n) in strncmp() argument
78 if (n == 0) in strncmp()
81 while (n-- != 0 && *s1 == *s2) in strncmp()
83 if (n == 0 || *s1 == '\0') in strncmp()
94 if (n == 0) in strncmp()
103 while (n >= sizeof (long) && *a1 == *a2) in strncmp()
105 n -= sizeof (long); in strncmp()
109 if (n == 0 || DETECTNULL (*a1)) in strncmp()
121 while (n-- > 0 && *s1 == *s2) in strncmp()
125 if (n == 0 || *s1 == '\0') in strncmp()
Dmemset.c59 size_t n) in memset() argument
72 if (n--) in memset()
78 if (!TOO_SMALL (n)) in memset()
91 while (n >= LBLOCKSIZE*4) in memset()
97 n -= 4*LBLOCKSIZE; in memset()
100 while (n >= LBLOCKSIZE) in memset()
103 n -= LBLOCKSIZE; in memset()
111 while (n--) in memset()
/picolibc-3.7.0-3.6.0/newlib/libc/include/sys/
Dselect.h88 #define __fdset_mask(n) ((__fd_mask)1 << ((n) % _NFDBITS)) argument
89 #define FD_CLR(n, p) ((p)->__fds_bits[(n)/_NFDBITS] &= ~__fdset_mask(n)) argument
93 #define FD_ISSET(n, p) (((p)->__fds_bits[(n)/_NFDBITS] & __fdset_mask(n)) != 0) argument
94 #define FD_SET(n, p) ((p)->__fds_bits[(n)/_NFDBITS] |= __fdset_mask(n)) argument
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dmemmove.c45 void * memmove(void * __restrict__ dest, const void * __restrict__ src, size_t n) in memmove() argument
55 doffset2 = ((unsigned int)(dest) + n) & 15; in memmove()
68 mask3 = (vec_uchar16)spu_cmpgt(spu_splats((unsigned int)(doffset1 + n)), 15); in memmove()
78 if (((unsigned int)dest - (unsigned int)src) >= (unsigned int)n) { in memmove()
94 doffset2 = ((unsigned int)(dest) + n) & 15; in memmove()
126 mask3 = (vec_uchar16)spu_cmpgt(spu_splats((unsigned int)(doffset1 + n)), 15); in memmove()
130 n += doffset1; in memmove()
134 while (n > 31) { in memmove()
138 n -= 16; in memmove()
143 mask = spu_and((vec_uchar16)spu_cmpgt(spu_splats((unsigned int)n), 16), mask2); in memmove()
[all …]
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.string/
Dmemcpy-1.c90 unsigned n; in main() local
101 for (n = 1; n <= MAX_BLOCK_SIZE; n++) in main()
108 void *ret = memcpy (dest + START_COPY + da, src + sa, n); in main()
116 n, sa, da, ret, dest + START_COPY + da); in main()
128 n, sa, da, START_COPY - j); in main()
130 else if (j < START_COPY + da + n) in main()
137 n, sa, da, i); in main()
144 n, sa, da, j - START_COPY - da - n); in main()
153 n, sa, da, j); in main()
/picolibc-3.7.0-3.6.0/test/libc-testsuite/
Dqsort.c78 static long n[] = { variable
105 qsort(n, sizeof(n)/sizeof(n[0]), sizeof(n[0]), icmp); in test_qsort()
106 for (i=0; i<(int)(sizeof(n)/sizeof(n[0])-1); i++) { in test_qsort()
107 if (n[i] > n[i+1]) { in test_qsort()
109 for (i=0; i<(int)(sizeof(n)/sizeof(n[0])); i++) in test_qsort()
110 printf("\t%ld\n", n[i]); in test_qsort()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/cris/
Dmemmove.c58 register int n __asm__ ("r12") = pn; in memmove()
61 if (src < dst && dst < src + n) in memmove()
65 src += n; in memmove()
66 dst += n; in memmove()
67 while (n--) in memmove()
84 && n >= 3) in memmove()
88 n--; in memmove()
96 n -= 2; in memmove()
104 if (n >= MEMMOVE_BY_BLOCK_THRESHOLD) in memmove()
149 : "=r" (dst), "=r" (src), "=r" (n) in memmove()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/hppa/
Dstrncmp.S37 combt,<,n r0,count,search /* N <= 0 yields equality */
40 search: combf,=,n s1,s2,findout /* s1 != s2? */
44 comibf,=,n 0,s1,checks1 /* s1 == NULL? */
49 comibf,=,n 0,s2,checkitout /* s2 == NULL? */
73 combt,=,n s1word,s2word,chknulls /* are these words equal? */
80 comibt,=,n 0,tmp3,done /* have we reached the end of string */
82 addibt,<=,n -1,count,done /* have we checked N chars? ret0 == 0 */
87 comibt,=,n 0,tmp3,done /* have we reached the end of string */
89 addibt,<=,n -1,count,done /* have we checked N chars? */
94 comibt,=,n 0,tmp3,done /* have we reached the end of string */
[all …]

1234567891011