Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 26) sorted by relevance

12

/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dwctomb_r.c18 mbstate_t *state) in __ascii_wctomb() argument
25 (void) state; in __ascii_wctomb()
47 mbstate_t *state) in __utf8_wctomb() argument
55 if (sizeof (wchar_t) == 2 && state->__count == -4 in __utf8_wctomb()
62 tmp = ((uint32_t) state->__value.__wchb[0] << 16 | (uint32_t) state->__value.__wchb[1] << 8) in __utf8_wctomb()
67 state->__count = 0; in __utf8_wctomb()
92 state->__value.__wchb[0] = (tmp >> 16) & 0xff; in __utf8_wctomb()
93 state->__value.__wchb[1] = (tmp >> 8) & 0xff; in __utf8_wctomb()
94 state->__count = -4; in __utf8_wctomb()
98 if (state->__count == -4) in __utf8_wctomb()
[all …]
Dmbtowc_r.c20 mbstate_t *state) in __ascii_mbtowc() argument
25 (void) state; in __ascii_mbtowc()
87 int iso_idx, mbstate_t *state) in ___iso_mbtowc() argument
125 mbstate_t *state) in __iso_8859_1_mbtowc() argument
127 return ___iso_mbtowc (r, pwc, s, n, -1, state); in __iso_8859_1_mbtowc()
132 mbstate_t *state) in __iso_8859_2_mbtowc() argument
134 return ___iso_mbtowc (r, pwc, s, n, 0, state); in __iso_8859_2_mbtowc()
139 mbstate_t *state) in __iso_8859_3_mbtowc() argument
141 return ___iso_mbtowc (r, pwc, s, n, 1, state); in __iso_8859_3_mbtowc()
146 mbstate_t *state) in __iso_8859_4_mbtowc() argument
[all …]
Dmbstowcs.c59 mbstate_t state; in mbstowcs() local
60 state.__count = 0; in mbstowcs()
70 bytes = __MBTOWC (pwcs, t, MB_CUR_MAX, &state); in mbstowcs()
73 state.__count = 0; in mbstowcs()
Dwcstombs.c60 mbstate_t state; in wcstombs() local
61 state.__count = 0; in wcstombs()
73 bytes = __WCTOMB (buff, *pwcs++, &state); in wcstombs()
84 bytes = __WCTOMB (buff, *pwcs, &state); in wcstombs()
/picolibc-3.7.0-3.6.0/test/
Dlong_double.c222 } state = LDOUBLE_INT; in naive_strtold() local
233 if (state == LDOUBLE_INT) { in naive_strtold()
234 state = LDOUBLE_FRAC; in naive_strtold()
240 if (state == LDOUBLE_INT || state == LDOUBLE_FRAC) { in naive_strtold()
241 state = LDOUBLE_EXP; in naive_strtold()
247 if (state == LDOUBLE_EXP) { in naive_strtold()
253 if (state == LDOUBLE_EXP) { in naive_strtold()
264 if (state == LDOUBLE_INT || state == LDOUBLE_FRAC) { in naive_strtold()
265 state = LDOUBLE_EXP; in naive_strtold()
272 if (state == LDOUBLE_INT || state == LDOUBLE_FRAC) { in naive_strtold()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/ces/
Dutf-16.c95 register int *state; in utf_16_convert_from_ucs() local
101 state = (int *)data; in utf_16_convert_from_ucs()
102 bytes = (*state == UTF16_SYSTEM_ENDIAN) ? sizeof (ucs2_t) * 2 in utf_16_convert_from_ucs()
113 if (*state == UTF16_SYSTEM_ENDIAN) in utf_16_convert_from_ucs()
116 *state |= UTF16_BOM_WRITTEN; in utf_16_convert_from_ucs()
121 switch (*state) in utf_16_convert_from_ucs()
143 switch (*state) in utf_16_convert_from_ucs()
195 int *state; in utf_16_convert_to_ucs() local
203 state = (int *)data; in utf_16_convert_to_ucs()
206 if (*state == UTF16_UNDEFINED) in utf_16_convert_to_ucs()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/ctype/
Dtolower_l.c27 mbstate_t state; in tolower_l() local
29 memset (&state, 0, sizeof state); in tolower_l()
30 if (locale->mbtowc (_REENT, &wc, s, 1, &state) >= 0 in tolower_l()
33 &state) == 1) in tolower_l()
Dtoupper_l.c29 mbstate_t state; in toupper_l() local
31 memset (&state, 0, sizeof state); in toupper_l()
32 if (locale->mbtowc (_REENT, &wc, s, 1, &state) >= 0 in toupper_l()
35 &state) == 1) in toupper_l()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dspu_timer_stop.c55 if (__spu_timers[id].state == SPU_TIMER_ACTIVE || in spu_timer_stop()
56 __spu_timers[id].state == SPU_TIMER_HANDLED) in spu_timer_stop()
62 t = (__spu_timers[id].state == SPU_TIMER_ACTIVE) in spu_timer_stop()
65 pn = (__spu_timers[id].state == SPU_TIMER_ACTIVE) in spu_timer_stop()
92 __spu_timers[id].state = SPU_TIMER_STOPPED; in spu_timer_stop()
Dspu_timer_free.c53 if (__spu_timers[id].state == SPU_TIMER_STOPPED) in spu_timer_free()
75 __spu_timers[id].state = SPU_TIMER_FREE; in spu_timer_free()
84 return (__spu_timers[id].state == SPU_TIMER_FREE) ? in spu_timer_free()
Dspu_timer_svcs.c84 (__spu_timers + id)->state = SPU_TIMER_STOPPED; in spu_timer_alloc()
109 if (__spu_timers[id].state != SPU_TIMER_STOPPED) in spu_timer_start()
Dspu_timer_slih.c122 start->state = SPU_TIMER_ACTIVE; in __spu_timer_start()
198 active->state = SPU_TIMER_HANDLED; in spu_clock_slih()
Dspu_timer_internal.h59 spu_timer_state_t state __attribute__ ((__aligned__ (16))); member
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/lib/
Ducsconv.h109 mbstate_t *state);
124 mbstate_t *state);
184 mbstate_t *state);
188 mbstate_t *state);
Dnullconv.c106 mbstate_t *state, in null_conversion_get_state() argument
110 (void) state; in null_conversion_get_state()
118 mbstate_t *state, in null_conversion_set_state() argument
122 (void) state; in null_conversion_set_state()
Ducsconv.c250 mbstate_t *state, in ucs_based_conversion_get_state() argument
259 uc->to_ucs.handlers->get_state (uc->to_ucs.data, state); in ucs_based_conversion_get_state()
261 *state = nullstate; /* internal copy */ in ucs_based_conversion_get_state()
266 uc->from_ucs.handlers->get_state (uc->from_ucs.data, state); in ucs_based_conversion_get_state()
268 *state = nullstate; /* internal copy */ in ucs_based_conversion_get_state()
277 mbstate_t *state, in ucs_based_conversion_set_state() argument
285 return uc->to_ucs.handlers->set_state (uc->to_ucs.data, state); in ucs_based_conversion_set_state()
290 return uc->from_ucs.handlers->set_state (uc->from_ucs.data, state); in ucs_based_conversion_set_state()
Dconv.h135 mbstate_t *state,
154 mbstate_t *state,
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dvfscanf.c406 mbstate_t state; /* value to keep track of multibyte state */ in _SVFSCANF() local
580 memset (&state, 0, sizeof (state)); in _SVFSCANF()
588 nbytes = __MBTOWC (&wc, (char *) fmt, MB_CUR_MAX, &state); in _SVFSCANF()
592 memset (&state, 0, sizeof (state)); in _SVFSCANF()
944 mbstate_t state; in _SVFSCANF() local
963 if (mbslen != 3 || state.__count != 4) in _SVFSCANF()
964 memset (&state, 0, sizeof (mbstate_t)); in _SVFSCANF()
965 if ((mbslen = mbrtowc (wcp, buf, s, &state)) in _SVFSCANF()
974 if (mbslen != 3 || state.__count != 4) in _SVFSCANF()
1062 mbstate_t state; in _SVFSCANF() local
[all …]
Dvfwprintf.c387 mbstate_t state; /* mbtowc calls from library must not change state */ in VFWPRINTF() local
443 memset (&state, '\0', sizeof (state)); in VFWPRINTF()
446 MB_CUR_MAX, &state); in VFWPRINTF()
663 memset (&state, '\0', sizeof (state)); in VFWPRINTF()
666 MB_CUR_MAX, &state); in VFWPRINTF()
1729 __STATE state, next_state; in get_arg() local
1749 state = START; in get_arg()
1758 while (state != DONE) in get_arg()
1762 next_state = __state_table[state][chtype]; in get_arg()
1763 action = __action_table[state][chtype]; in get_arg()
[all …]
Dvfprintf.c454 mbstate_t state; /* mbtowc calls from library must not change state */ in VFPRINTF() local
470 memset (&state, '\0', sizeof (state)); in VFPRINTF()
659 &state)) != 0) { in VFPRINTF()
662 memset (&state, 0, sizeof state); in VFPRINTF()
1808 __STATE state, next_state; in get_arg() local
1851 state = START; in get_arg()
1860 while (state != DONE) in get_arg()
1864 next_state = __state_table[state][chtype]; in get_arg()
1865 action = __action_table[state][chtype]; in get_arg()
1866 state = next_state; in get_arg()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/rx/
Dsetjmp.S33 # careful to always leave the stack in a usable state in case an
/picolibc-3.7.0-3.6.0/doc/
Dtls.md5 state held by the library not the application. One obvious example is
9 numerous other examples of this kind of state.
Dprintf.md249 getc and ungetc may corrupt the state of the input buffer.
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/
Diconv.tex1679 @code{_iconv_nls_get_state} - returns the current encoding's shift state
1683 @code{_iconv_nls_set_state} sets the current encoding's shift state (the
/picolibc-3.7.0-3.6.0/
DREADME.md392 * Fix FPSCR state for Arm8.1-M low overhead loops (thanks to David

12