Home
last modified time | relevance | path

Searched full:n (Results 1 – 25 of 550) sorted by relevance

12345678910>>...22

/picolibc-latest/newlib/libc/machine/cris/
Dsetjmp.c71 ("move.d %1,$r13 \n\ in setjmp()
72 move 0f,$mof \n\ in setjmp()
73 move $mof,[$r13+] \n\ in setjmp()
74 move.d $sp,[$r13+] \n\ in setjmp()
75 clear.d [$r13+] \n\ in setjmp()
76 move.d $r12,[$r13+] \n\ in setjmp()
77 move.d $r11,[$r13+] \n\ in setjmp()
78 move.d $r10,[$r13+] \n\ in setjmp()
79 moveq 1,$r9 \n\ in setjmp()
80 move.d $r9,[$r13+] \n\ in setjmp()
[all …]
Dmemset.c38 world is not ideal), and one cycle per instruction, then 43+3*(n/48-1)
39 <= 24+24*(n/48-1) so n >= 45.7; n >= 0.9; we win on the first full
55 register int n __asm__ ("r12") = plen; in memset()
63 __asm__("movu.b %0,r13 \n\ in memset()
64 lslq 8,r13 \n\ in memset()
65 move.b %0,r13 \n\ in memset()
66 move.d r13,%0 \n\ in memset()
67 lslq 16,r13 \n\ in memset()
77 /* Oops! n = 0 must be a valid call, regardless of alignment. */ in memset()
78 && n >= 3) in memset()
[all …]
Dmemmove.c60 register int n __asm__ ("r12") = pn; in memmove()
63 if (src < dst && dst < src + n) in memmove()
67 src += n; in memmove()
68 dst += n; in memmove()
69 while (n--) in memmove()
86 && n >= 3) in memmove()
90 n--; in memmove()
98 n -= 2; in memmove()
106 if (n >= MEMMOVE_BY_BLOCK_THRESHOLD) in memmove()
114 ;; GCC does promise correct register allocations, but let's \n\ in memmove()
[all …]
Dmemcpy.c59 register int n __asm__ ("r12") = pn; in memcpy()
67 && n >= 3) in memcpy()
71 n--; in memcpy()
79 n -= 2; in memcpy()
87 if (n >= MEMCPY_BY_BLOCK_THRESHOLD) in memcpy()
95 ;; GCC does promise correct register allocations, but let's \n\ in memcpy()
96 ;; make sure it keeps its promises. \n\ in memcpy()
97 .ifnc %0-%1-%2,$r13-$r11-$r12 \n\ in memcpy()
98 .error \"GCC reg alloc bug: %0-%1-%4 != $r13-$r12-$r11\" \n\ in memcpy()
99 .endif \n\ in memcpy()
[all …]
/picolibc-latest/newlib/libc/machine/arm/
Dstrlen.c59 __asm__("len .req r0\n\t" in strlen()
60 "data .req r3\n\t" in strlen()
61 "addr .req r1\n\t" in strlen()
64 "pld [r0]\n\t" in strlen()
67 "bic addr, r0, #3\n\t" in strlen()
69 "ands len, r0, #3\n\t" in strlen()
70 "neg len, len\n\t" in strlen()
72 "ldr data, [addr], #4\n\t" in strlen()
74 "add ip, len, #4\n\t" in strlen()
75 "mov ip, ip, asl #3\n\t" in strlen()
[all …]
/picolibc-latest/newlib/libc/machine/spu/
Dmk_syscalls39 print SOURCE "\/\*\n";
40 print SOURCE " Copyright (c) 2007, Toshiba Corporation\n\n";
42 print SOURCE " All rights reserved.\n\n";
44 print SOURCE " Redistribution and use in source and binary forms, with or without\n";
45 print SOURCE " modification, are permitted provided that the following conditions are met:\n\n";
47 print SOURCE " \* Redistributions of source code must retain the above copyright notice,\n";
48 print SOURCE " this list of conditions and the following disclaimer.\n";
49 print SOURCE " \* Redistributions in binary form must reproduce the above copyright\n";
50 print SOURCE " notice, this list of conditions and the following disclaimer in the\n";
51 print SOURCE " documentation and/or other materials provided with the distribution.\n";
[all …]
/picolibc-latest/newlib/libc/iconv/ces/
Dmkdeps.pl97 print "Usage: $0 [-$infile_opt depfile] [-$help_opt]\n";
99 print "file will be used by default)\n";
100 print "\t-$help_opt - this help message\n";
108 print "Debug: -$verbose_opt option found.\n" if $verbose;
117 print "Debug: open \"$infile\" input file.\n" if $verbose;
118 open (INFILE, '<', $infile) or err "Can't open \"$infile\" file for reading.\n"
119 . "System error message: $!.\n";
135 $l =~ s/^(.*)\n$/$1/, $l =~ s/^(.*)\r$/$1/;
159 $l =~ s/^(.*)\n$/$1/, $l =~ s/^(.*)\r$/$1/;
192 print "Debug: process $section_encodings section.\n" if $verbose;
[all …]
/picolibc-latest/newlib/libc/iconv/lib/
Daliasesbi.c13 ICONV_ENCODING_BIG5 " csbig5 big_five bigfive cn_big5 cp950\n"
17 ICONV_ENCODING_CP775 " ibm775 cspc775baltic\n"
21 ICONV_ENCODING_CP850 " ibm850 850 cspc850multilingual\n"
25 ICONV_ENCODING_CP852 " ibm852 852 cspcp852\n"
29 ICONV_ENCODING_CP855 " ibm855 855 csibm855\n"
33 ICONV_ENCODING_CP866 " 866 IBM866 CSIBM866\n"
37 ICONV_ENCODING_EUC_JP " eucjp\n"
41 ICONV_ENCODING_EUC_KR " euckr\n"
45 ICONV_ENCODING_EUC_TW " euctw\n"
49 …NG_ISO_8859_1 " iso8859_1 iso88591 iso_8859_1:1987 iso_ir_100 latin1 l1 ibm819 cp819 csisolatin1\n"
[all …]
/picolibc-latest/newlib/libm/math/
Ds_jn.c14 * jn(n, x), yn(n, x)
16 * of order n
19 * y0(0)=y1(0)=yn(n,0) = -inf with division by zero signal;
20 * y0(-ve)=y1(-ve)=yn(n,-ve) are NaN with invalid signal.
21 * Note 2. About jn(n,x), yn(n,x)
22 * For n=0, j0(x) is called,
23 * for n=1, j1(x) is called,
24 * for n<x, forward recursion us used starting
26 * for n>x, a continued fraction approximation to
27 * j(n,x)/j(n-1,x) is evaluated and then backward
[all …]
Dsf_jn.c24 jnf(int n, float x) in jnf() argument
30 /* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x) in jnf()
31 * Thus, J(-n,x) = J(n,-x) in jnf()
35 /* if J(n,NaN) is NaN */ in jnf()
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()
[all …]
/picolibc-latest/newlib/libc/machine/mips/
Dstrlen.c38 " .set noreorder\n"
39 " .set nomacro\n"
40 " .globl strlen\n"
41 " .ent strlen\n"
42 "strlen:\n"
43 " daddiu $2,$4,1\n"
44 "\n"
45 "1: lbu $3,0($4)\n"
46 " bnez $3,1b\n"
47 " daddiu $4,$4,1\n"
[all …]
/picolibc-latest/newlib/libc/machine/microblaze/
Dstrcmp.c138 __asm__ volatile (" \n\ in strcmp()
139 or r9, r0, r0 /* Index register */\n\ in strcmp()
140 check_alignment: \n\ in strcmp()
141 andi r3, r5, 3 \n\ in strcmp()
142 andi r4, r6, 3 \n\ in strcmp()
143 bnei r3, try_align_args \n\ in strcmp()
144 bnei r4, regular_strcmp /* At this point we don't have a choice */ \n\ in strcmp()
145 cmp_loop: \n" in strcmp()
148 " \n\ in strcmp()
149 pcmpbf r7, r3, r0 /* See if there is Null byte */ \n\ in strcmp()
[all …]
Dstrcpy.c131 __asm__ volatile (" \n\ in strcpy()
132 or r9, r0, r0 /* Index register */ \n\ in strcpy()
133 check_alignment: \n\ in strcpy()
134 andi r3, r5, 3 \n\ in strcpy()
135 andi r4, r6, 3 \n\ in strcpy()
136 bnei r3, try_align_args \n\ in strcpy()
137 bnei r4, regular_strcpy /* At this point we dont have a choice */ \n\ in strcpy()
138 cpy_loop: \n" in strcpy()
140 " \n\ in strcpy()
141 pcmpbf r4, r0, r3 \n\ in strcpy()
[all …]
Dstrlen.c120 __asm__ volatile (" \n\ in strlen()
121 or r9, r0, r0 /* Index register */ \n\ in strlen()
122 check_alignment: \n\ in strlen()
123 andi r3, r5, 3 \n\ in strlen()
124 bnei r3, align_arg \n\ in strlen()
125 len_loop: \n" in strlen()
127 " \n\ in strlen()
128 pcmpbf r4, r3, r0 \n\ in strlen()
129 bnei r4, end_len \n\ in strlen()
130 brid len_loop \n\ in strlen()
[all …]
/picolibc-latest/newlib/libc/stdlib/
Dmbtowc_r.c18 size_t n, in __ascii_mbtowc() argument
31 if (n == 0) in __ascii_mbtowc()
83 ___iso_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in ___iso_mbtowc() argument
95 if (n == 0) in ___iso_mbtowc()
121 __iso_8859_1_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_1_mbtowc() argument
124 return ___iso_mbtowc (r, pwc, s, n, -1, state); in __iso_8859_1_mbtowc()
128 __iso_8859_2_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_2_mbtowc() argument
131 return ___iso_mbtowc (r, pwc, s, n, 0, state); in __iso_8859_2_mbtowc()
135 __iso_8859_3_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_3_mbtowc() argument
138 return ___iso_mbtowc (r, pwc, s, n, 1, state); in __iso_8859_3_mbtowc()
[all …]
Dgdtoa-gethex.c74 int n; in rshift() local
77 n = k >> kshift; in rshift()
78 if (n < b->_wds) { in rshift()
80 x += n; in rshift()
82 n = ULbits - k; in rshift()
85 *x1++ = (y | (*x << n)) & ALL_ON; in rshift()
155 int esign, havedig, irv, k, n, nbits, up, zret; in gethex() local
218 if ((n = __get_hexdig(*s)) == 0 || n > 0x19) { in gethex()
222 e1 = n - 0x10; in gethex()
223 while((n = __get_hexdig(*++s)) !=0 && n <= 0x19) in gethex()
[all …]
/picolibc-latest/test/
Dlong_double_gen.5c90 printf("#ifndef %s\n", prec);
91 printf("#define %s DEFAULT_PREC\n", prec);
92 printf("#endif\n");
101 printf("\n");
103 printf("#ifdef FULL_LONG_DOUBLE\n");
105 printf("static long_double_test_f_f_t %s[] = {\n", vec);
125 printf(" { .line = __LINE__, .x = %.-eL, .y = %s },\n", x, sy);
129 printf("};\n\n");
130 printf("static int test_%s(void) {\n", f.name);
131 printf(" unsigned int i;\n");
[all …]
Dfma_gen.5c117 # printf("denorm %d\n", denorm);
138 # printf("%a: mant %e ipart %d fpart %f\n", x, mant, ipart, fpart);
207 # printf("rounded ipart %d exp %d bits %d\n", ipart, exp, bits);
414 printf(" } },\n");
463 printf("/* This file is automatically generated with fma_gen.5c */\n");
464 printf("\n");
466 printf("#if __FLT_EVAL_METHOD__ == 0 && FLT_MANT_DIG == 24\n");
467 printf("#define HAVE_FLOAT_FMA_VEC\n");
468 printf("static const struct fmaf_vec fmaf_vec[] = {\n");
470 printf("};\n");
[all …]
/picolibc-latest/newlib/libc/time/
Dtzset.c67 <[n]> zero based Julian day (0-365), counting February 29 Leap days
69 'J'<[n]> one based Julian day (1-365), not counting February 29 Leap
120 int sign, n; in _tzset_unlocked() local
155 if (sscanf (tzenv, "%11[-+0-9A-Za-z]%n", __tzname_std, &n) <= 0 in _tzset_unlocked()
156 || n < TZNAME_MIN || TZNAME_MAX < n || '>' != tzenv[n]) in _tzset_unlocked()
164 if (sscanf (tzenv, "%11[A-Za-z]%n", __tzname_std, &n) <= 0 in _tzset_unlocked()
165 || n < TZNAME_MIN || TZNAME_MAX < n) in _tzset_unlocked()
169 tzenv += n; in _tzset_unlocked()
183 if (sscanf (tzenv, "%hu%n:%hu%n:%hu%n", &hh, &n, &mm, &n, &ss, &n) < 1) in _tzset_unlocked()
187 tzenv += n; in _tzset_unlocked()
[all …]
/picolibc-latest/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-latest/newlib/libm/ld/common/
Dpolevll.c28 * int N;
29 * long double x, y, coef[N+1], polevl[];
31 * y = polevll( x, coef, N );
37 * Evaluates polynomial of degree N:
39 * 2 N
41 * 0 1 2 N
45 * coef[0] = C , ..., coef[N] = C .
46 * N 0
48 * The function p1evll() assumes that coef[N] = 1.0 and is
66 * P[0] x^n + P[1] x^(n-1) + ... + P[n]
[all …]
/picolibc-latest/picocrt/machine/riscv/
Dcrt0.c85 printf("RISCV fault\n"); in _ctrap()
87 printf("\tx%d %-5.5s%s 0x" FMT "\n", r, names[r], r < 10 ? " " : "", fault->r[r]); in _ctrap()
88 printf("\tmepc: 0x" FMT "\n", fault->mepc); in _ctrap()
89 printf("\tmcause: 0x" FMT "\n", fault->mcause); in _ctrap()
90 printf("\tmtval: 0x" FMT "\n", fault->mtval); in _ctrap()
105 __asm__(".option push\n" in _trap()
106 ".option norelax\n" in _trap()
107 "csrrw sp, mscratch, sp\n" in _trap()
108 "la sp, __heap_end\n" in _trap()
112 __asm__("addi sp, sp, %0\n" in _trap()
[all …]
/picolibc-latest/newlib/libc/picolib/machine/aarch64/
Dinterrupt.c75 __asm__("SP_EL0:\n" in __weak_vector_table()
76 "b aarch64_sync_vector\n" in __weak_vector_table()
77 ". = SP_EL0 + 0x80\n" in __weak_vector_table()
78 "b aarch64_irq_vector\n" in __weak_vector_table()
79 ". = SP_EL0 + 0x100\n" in __weak_vector_table()
80 "b aarch64_fiq_vector\n" in __weak_vector_table()
81 ". = SP_EL0 + 0x180\n" in __weak_vector_table()
82 "b aarch64_serror_vector\n" in __weak_vector_table()
83 ". = SP_EL0 + 0x200\n" in __weak_vector_table()
84 "SP_ELx:\n" in __weak_vector_table()
[all …]
/picolibc-latest/newlib/testsuite/newlib.locale/
DUTF-8.c144 printf("Failed to set C-UTF-8 locale.\n"); in main()
148 printf("Set C-UTF-8 locale.\n"); in main()
154 printf("2.1.1: U-%08ld\n", (long) wchar); in main()
156 printf("2.1.1: Invalid\n"); in main()
162 printf("2.1.%d: U-%08lx\n", i, (long) wchar); in main()
164 printf("2.1.%d: Invalid\n", i); in main()
172 printf("2.2.%d: U-%08lx\n", i, (long) wchar); in main()
174 printf("2.2.%d: Invalid\n", i); in main()
182 printf("2.3.%d: U-%08lx\n", i, (long) wchar); in main()
184 printf("2.3.%d: Invalid\n", i); in main()
[all …]
/picolibc-latest/newlib/testsuite/newlib.string/
Dstrcmp-1.c105 fprintf (stderr, "Too many errors.\n"); in print_error()
125 printf ("\n %s=", name);
131 printf ("\n");
146 unsigned n, m, len; in main() local
154 for (n = 1; n <= MAX_BLOCK_SIZE; n++) in main()
156 for (m = 1; m < n + MAX_DIFF; m++) in main()
160 if (n - m > MAX_DIFF) in main()
170 memcpy (dest + da, src + sa, n); in main()
173 p = src + sa + n - 1; in main()
189 if (n == m) in main()
[all …]

12345678910>>...22