/picolibc-3.5.0-3.4.0/newlib/libc/machine/arm/ |
D | strlen.c | 58 __asm__("len .req r0\n\t" in strlen() 59 "data .req r3\n\t" in strlen() 60 "addr .req r1\n\t" in strlen() 63 "pld [r0]\n\t" in strlen() 66 "bic addr, r0, #3\n\t" in strlen() 68 "ands len, r0, #3\n\t" in strlen() 69 "neg len, len\n\t" in strlen() 71 "ldr data, [addr], #4\n\t" in strlen() 73 "add ip, len, #4\n\t" in strlen() 74 "mov ip, ip, asl #3\n\t" in strlen() [all …]
|
/picolibc-3.5.0-3.4.0/newlib/libc/machine/spu/ |
D | mk_syscalls | 39 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-3.5.0-3.4.0/newlib/libc/machine/cris/ |
D | setjmp.c | 69 ("move.d %1,$r13 \n\ in setjmp() 70 move 0f,$mof \n\ in setjmp() 71 move $mof,[$r13+] \n\ in setjmp() 72 move.d $sp,[$r13+] \n\ in setjmp() 73 clear.d [$r13+] \n\ in setjmp() 74 move.d $r12,[$r13+] \n\ in setjmp() 75 move.d $r11,[$r13+] \n\ in setjmp() 76 move.d $r10,[$r13+] \n\ in setjmp() 77 moveq 1,$r9 \n\ in setjmp() 78 move.d $r9,[$r13+] \n\ in setjmp() [all …]
|
D | memset.c | 38 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 53 register int n __asm__ ("r12") = plen; in memset() 61 __asm__("movu.b %0,r13 \n\ in memset() 62 lslq 8,r13 \n\ in memset() 63 move.b %0,r13 \n\ in memset() 64 move.d r13,%0 \n\ in memset() 65 lslq 16,r13 \n\ in memset() 75 /* Oops! n = 0 must be a valid call, regardless of alignment. */ in memset() 76 && n >= 3) in memset() [all …]
|
D | memmove.c | 58 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() 112 ;; GCC does promise correct register allocations, but let's \n\ in memmove() [all …]
|
D | memcpy.c | 57 register int n __asm__ ("r12") = pn; in memcpy() 65 && n >= 3) in memcpy() 69 n--; in memcpy() 77 n -= 2; in memcpy() 85 if (n >= MEMCPY_BY_BLOCK_THRESHOLD) in memcpy() 93 ;; GCC does promise correct register allocations, but let's \n\ in memcpy() 94 ;; make sure it keeps its promises. \n\ in memcpy() 95 .ifnc %0-%1-%2,$r13-$r11-$r12 \n\ in memcpy() 96 .error \"GCC reg alloc bug: %0-%1-%4 != $r13-$r12-$r11\" \n\ in memcpy() 97 .endif \n\ in memcpy() [all …]
|
/picolibc-3.5.0-3.4.0/newlib/libc/machine/mips/ |
D | strlen.c | 36 " .set noreorder\n" 37 " .set nomacro\n" 38 " .globl strlen\n" 39 " .ent strlen\n" 40 "strlen:\n" 41 " daddiu $2,$4,1\n" 42 "\n" 43 "1: lbu $3,0($4)\n" 44 " bnez $3,1b\n" 45 " daddiu $4,$4,1\n" [all …]
|
/picolibc-3.5.0-3.4.0/newlib/libc/iconv/lib/ |
D | aliasesbi.c | 13 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-3.5.0-3.4.0/newlib/libm/math/ |
D | s_jn.c | 14 * 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 …]
|
D | sf_jn.c | 24 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 …]
|
D | s_fmod.c | 31 __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 …]
|
/picolibc-3.5.0-3.4.0/newlib/libc/iconv/ces/ |
D | mkdeps.pl | 97 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-3.5.0-3.4.0/newlib/libc/machine/microblaze/ |
D | strcmp.c | 136 __asm__ volatile (" \n\ in strcmp() 137 or r9, r0, r0 /* Index register */\n\ in strcmp() 138 check_alignment: \n\ in strcmp() 139 andi r3, r5, 3 \n\ in strcmp() 140 andi r4, r6, 3 \n\ in strcmp() 141 bnei r3, try_align_args \n\ in strcmp() 142 bnei r4, regular_strcmp /* At this point we don't have a choice */ \n\ in strcmp() 143 cmp_loop: \n" in strcmp() 146 " \n\ in strcmp() 147 pcmpbf r7, r3, r0 /* See if there is Null byte */ \n\ in strcmp() [all …]
|
D | strcpy.c | 129 __asm__ volatile (" \n\ in strcpy() 130 or r9, r0, r0 /* Index register */ \n\ in strcpy() 131 check_alignment: \n\ in strcpy() 132 andi r3, r5, 3 \n\ in strcpy() 133 andi r4, r6, 3 \n\ in strcpy() 134 bnei r3, try_align_args \n\ in strcpy() 135 bnei r4, regular_strcpy /* At this point we dont have a choice */ \n\ in strcpy() 136 cpy_loop: \n" in strcpy() 138 " \n\ in strcpy() 139 pcmpbf r4, r0, r3 \n\ in strcpy() [all …]
|
D | strlen.c | 119 __asm__ volatile (" \n\ in strlen() 120 or r9, r0, r0 /* Index register */ \n\ in strlen() 121 check_alignment: \n\ in strlen() 122 andi r3, r5, 3 \n\ in strlen() 123 bnei r3, align_arg \n\ in strlen() 124 len_loop: \n" in strlen() 126 " \n\ in strlen() 127 pcmpbf r4, r3, r0 \n\ in strlen() 128 bnei r4, end_len \n\ in strlen() 129 brid len_loop \n\ in strlen() [all …]
|
/picolibc-3.5.0-3.4.0/newlib/doc/ |
D | doc.str | 9 "@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.5.0-3.4.0/newlib/libc/stdlib/ |
D | mbtowc_r.c | 18 size_t n, in __ascii_mbtowc() argument 31 if (n == 0) in __ascii_mbtowc() 93 ___iso_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in ___iso_mbtowc() argument 105 if (n == 0) in ___iso_mbtowc() 131 __iso_8859_1_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_1_mbtowc() argument 134 return ___iso_mbtowc (r, pwc, s, n, -1, state); in __iso_8859_1_mbtowc() 138 __iso_8859_2_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_2_mbtowc() argument 141 return ___iso_mbtowc (r, pwc, s, n, 0, state); in __iso_8859_2_mbtowc() 145 __iso_8859_3_mbtowc (struct _reent *r, wchar_t *pwc, const char *s, size_t n, in __iso_8859_3_mbtowc() argument 148 return ___iso_mbtowc (r, pwc, s, n, 1, state); in __iso_8859_3_mbtowc() [all …]
|
D | gdtoa-gethex.c | 75 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 …]
|
/picolibc-3.5.0-3.4.0/test/ |
D | long_double_gen.5c | 85 printf("#ifndef %s\n", prec); 86 printf("#define %s DEFAULT_PREC\n", prec); 87 printf("#endif\n"); 96 printf("\n"); 98 printf("#ifdef FULL_LONG_DOUBLE\n"); 100 printf("long_double_test_f_f_t %s[] = {\n", vec); 120 printf(" { .line = __LINE__, .x = %.-eL, .y = %s },\n", x, sy); 124 printf("};\n\n"); 125 printf("int test_%s(void) {\n", f.name); 126 printf(" unsigned int i;\n"); [all …]
|
D | printf-tests.c | 37 printf("\n"); in failmsg() 45 int n; in test() local 73 n = snprintf(buf, 1024, fmt, iv1, iv2, printf_float(dv)); in test() 80 n = snprintf(buf, 1024, fmt, iv, printf_float(dv)); in test() 87 n = snprintf(buf, 1024, fmt, printf_float(dv)); in test() 95 n = vsnprintf(buf, 1024, fmt, ap); in test() 105 // printf("serial %d expect \"%s\" got \"%s\"\n", serial, expect, buf); in test() 106 if (n >= 1024) { in test() 111 if (n != (int) strlen(expect)) { in test() 113 expect, strlen(expect), buf, n); in test() [all …]
|
/picolibc-3.5.0-3.4.0/newlib/libc/time/ |
D | tzset.c | 67 <[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 122 int sign, n; in _tzset_unlocked() local 167 if (sscanf (tzenv, "%11[-+0-9A-Za-z]%n", __tzname_std, &n) <= 0 in _tzset_unlocked() 168 || n < TZNAME_MIN || TZNAME_MAX < n || '>' != tzenv[n]) in _tzset_unlocked() 176 if (sscanf (tzenv, "%11[A-Za-z]%n", __tzname_std, &n) <= 0 in _tzset_unlocked() 177 || n < TZNAME_MIN || TZNAME_MAX < n) in _tzset_unlocked() 181 tzenv += n; in _tzset_unlocked() 195 if (sscanf (tzenv, "%hu%n:%hu%n:%hu%n", &hh, &n, &mm, &n, &ss, &n) < 1) in _tzset_unlocked() 199 tzenv += n; in _tzset_unlocked() [all …]
|
/picolibc-3.5.0-3.4.0/newlib/libm/ld/common/ |
D | polevll.c | 28 * 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-3.5.0-3.4.0/newlib/testsuite/newlib.locale/ |
D | UTF-8.c | 144 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-3.5.0-3.4.0/newlib/testsuite/newlib.string/ |
D | strcmp-1.c | 105 fprintf (stderr, "Too many errors.\n"); in print_error() 124 printf ("\n %s=", name); in printbuf() 130 printf ("\n"); in printbuf() 144 unsigned n, m, len; in main() local 152 for (n = 1; n <= MAX_BLOCK_SIZE; n++) in main() 154 for (m = 1; m < n + MAX_DIFF; m++) in main() 158 if (n - m > MAX_DIFF) in main() 168 memcpy (dest + da, src + sa, n); in main() 171 p = src + sa + n - 1; in main() 187 if (n == m) in main() [all …]
|
/picolibc-3.5.0-3.4.0/newlib/libm/ld/ld128/ |
D | e_fmodl.c | 26 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 …]
|