Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 41) sorted by relevance

12

/picolibc-latest/newlib/libc/stdlib/
Da64l.c63 char ch; in a64l() local
82 ch = *(--ptr); in a64l()
85 if (ch >= 'a') in a64l()
86 digit = (ch - 'a') + 38; in a64l()
87 else if (ch >= 'A') in a64l()
88 digit = (ch - 'A') + 12; in a64l()
89 else if (ch >= '0') in a64l()
90 digit = (ch - '0') + 2; in a64l()
91 else if (ch == '/') in a64l()
96 switch (ch) in a64l()
[all …]
Dmbtowc_r.c530 int ch; in __utf8_mbtowc() local
543 ch = t[i++]; in __utf8_mbtowc()
545 ch = state->__value.__wchb[0]; in __utf8_mbtowc()
547 if (ch == '\0') in __utf8_mbtowc()
554 if (ch <= 0x7f) in __utf8_mbtowc()
558 *pwc = ch; in __utf8_mbtowc()
561 if (ch >= 0xc0 && ch <= 0xdf) in __utf8_mbtowc()
564 state->__value.__wchb[0] = ch; in __utf8_mbtowc()
571 ch = t[i++]; in __utf8_mbtowc()
572 if (ch < 0x80 || ch > 0xbf) in __utf8_mbtowc()
[all …]
/picolibc-latest/newlib/testsuite/newlib.search/
Dhsearchtest.c57 char ch[2]; in main() local
64 ch[1] = '\0'; in main()
68 ch[0] = 'a' + i; in main()
69 e.key = strdup(ch); /* ptr to provided key is kept! */ in main()
74 TEST(strcmp(ep->key, ch) == 0); in main()
79 e.key = ch; in main()
83 ch[0] = 'a' + i; in main()
86 TEST(strcmp(ep->key, ch) == 0); in main()
91 ch[0] = 'a'; in main()
95 TEST(strcmp(ep->key, ch) == 0); in main()
[all …]
/picolibc-latest/test/semihost/
Dsemihost-readc.c45 int ch; in main() local
49 ch = sys_semihost_getc(stdin); in main()
50 printf("got %c expect %c\n", ch, e); in main()
51 if ((int) (uint8_t) e != ch) { in main()
53 (uint8_t) e, ch, i); in main()
/picolibc-latest/newlib/libc/stdio/
Dvfwprintf.c357 register wchar_t ch; /* character from fmt */ in VFWPRINTF() local
650 rflag: ch = *fmt++; in VFWPRINTF()
651 reswitch: switch (ch) { in VFWPRINTF()
699 ch = *fmt++; in VFWPRINTF()
701 n = 10 * n + to_digit (ch); in VFWPRINTF()
702 ch = *fmt++; in VFWPRINTF()
703 } while (is_digit (ch)); in VFWPRINTF()
705 if (ch == L'$') { in VFWPRINTF()
741 if ((ch = *fmt++) == L'*') { in VFWPRINTF()
751 ch = *fmt++; in VFWPRINTF()
[all …]
Dvfprintf.c388 register int ch; /* character from fmt */ in VFPRINTF() local
700 rflag: ch = *fmt++; in VFPRINTF()
701 reswitch: switch (ch) { in VFPRINTF()
733 ch = *fmt++; in VFPRINTF()
735 n = 10 * n + to_digit (ch); in VFPRINTF()
736 ch = *fmt++; in VFPRINTF()
737 } while (is_digit (ch)); in VFPRINTF()
739 if (ch == '$') { in VFPRINTF()
775 if ((ch = *fmt++) == '*') { in VFPRINTF()
785 ch = *fmt++; in VFPRINTF()
[all …]
Dgetdelim.c53 int ch; in __getdelim() local
88 if ((ch = getc_unlocked (fp)) == EOF) in __getdelim()
95 *ptr++ = ch; in __getdelim()
96 if (ch == delim) in __getdelim()
Dnano-vfprintf_float.c51 int flags, char *sign, int *decpt, int ch, int *length,
67 char *sign, int *decpt, int ch, int *length, char *buf) in __cvt() argument
83 if (ch == 'f' || ch == 'F') in __cvt()
92 if (ch == 'e' || ch == 'E') in __cvt()
103 if ((ch != 'g' && ch != 'G') || flags & ALT) in __cvt()
106 if (ch == 'f' || ch == 'F') in __cvt()
Dfputc_u.c33 int ch, in fputc_unlocked() argument
37 return putc_unlocked ( ch, file); in fputc_unlocked()
Dfputc.c91 int ch, in fputc() argument
97 result = putc ( ch, file); in fputc()
/picolibc-latest/newlib/libc/machine/mips/
Dstrncpy.c54 int ch; in strncpy() local
61 *dst++ = ch = *src++; in strncpy()
62 if (__builtin_expect (ch == '\0', 0)) in strncpy()
81 int ch; in strncpy()
94 *dst++ = ch = *src++; in strncpy()
96 if (ch == '\0') in strncpy()
151 *dst++ = ch = *src++; in strncpy()
152 if (ch == '\0') in strncpy()
/picolibc-latest/newlib/libm/complex/
Dccosf.c42 float ch, sh; in ccosf() local
44 _cchshf(cimagf(z), &ch, &sh); in ccosf()
45 return (float complex) (cosf(crealf(z)) * ch) - (sinf(crealf(z)) * sh) * I; in ccosf()
Dcsinf.c42 float ch, sh; in csinf() local
44 _cchshf(cimagf(z), &ch, &sh); in csinf()
45 return (float complex) (sinf(crealf(z)) * ch) + (cosf(crealf(z)) * sh) * I; in csinf()
Dccos.c75 double ch, sh; in ccos() local
77 _cchsh(cimag(z), &ch, &sh); in ccos()
78 return (double complex) (cos(creal(z)) * ch) - (sin(creal(z)) * sh) * (double complex) I; in ccos()
Dcsin.c75 double ch, sh; in csin() local
77 _cchsh(cimag(z), &ch, &sh); in csin()
78 return (double complex) (sin(creal(z)) * ch) + (cos(creal(z)) * sh) * (double complex) I; in csin()
Dccosl.c41 long double ch, sh; in ccosl() local
43 _cchshl(cimagl(z), &ch, &sh); in ccosl()
44 …return (long double complex) (cosl(creall(z)) * ch) - (sinl(creall(z)) * sh) * (long double comple… in ccosl()
Dcsinl.c41 long double ch, sh; in csinl() local
43 _cchshl(cimagl(z), &ch, &sh); in csinl()
44 …return (long double complex) (sinl(creall(z)) * ch) + (cosl(creall(z)) * sh) * (long double comple… in csinl()
/picolibc-latest/newlib/libc/machine/riscv/
Dstrcpy.c59 char ch; in strcpy() local
62 ch = *src; in strcpy()
65 *(dst - 1) = ch; in strcpy()
66 } while (ch); in strcpy()
/picolibc-latest/test/
Dtest-fgetc.c58 int ch; in main() local
68 ch = fgetc(f); in main()
69 check(ch == EOF, "fgetc returns non EOF"); in main()
/picolibc-latest/newlib/libc/time/
Dtzset.c121 int i, ch; in _tzset_unlocked() local
262 tz->__tzrule[i].ch = 'M'; in _tzset_unlocked()
274 ch = 'J'; in _tzset_unlocked()
278 ch = 'D'; in _tzset_unlocked()
289 tz->__tzrule[0].ch = 'M'; in _tzset_unlocked()
296 tz->__tzrule[1].ch = 'M'; in _tzset_unlocked()
304 tz->__tzrule[i].ch = ch; in _tzset_unlocked()
/picolibc-latest/semihost/
Dsys_getc.c42 uint8_t ch = sys_semihost(SYS_READC, 0); in sys_semihost_getc() local
43 return ch; in sys_semihost_getc()
Dread.c48 int ch = sys_semihost_getc((FILE *) 0); in read() local
49 *(char *) buf = ch; in read()
/picolibc-latest/newlib/libc/include/
Dunctrl.h37 #define unctrllen(ch) __unctrllen[(ch) & 0xff] argument
/picolibc-latest/newlib/libc/machine/spu/
Dfputc.c41 int ch; member
58 args.ch = c;
Dputc.c41 int ch; member
58 args.ch = c;

12