Lines Matching refs:ps
47 static inline __wur size_t mbstate_bytes_so_far(const mbstate_t* ps) { in mbstate_bytes_so_far() argument
49 (ps->__seq[2] != 0) ? 3 : in mbstate_bytes_so_far()
50 (ps->__seq[1] != 0) ? 2 : in mbstate_bytes_so_far()
51 (ps->__seq[0] != 0) ? 1 : 0; in mbstate_bytes_so_far()
54 static inline void mbstate_set_byte(mbstate_t* ps, int i, char byte) { in mbstate_set_byte() argument
55 ps->__seq[i] = static_cast<uint8_t>(byte); in mbstate_set_byte()
58 static inline __wur uint8_t mbstate_get_byte(const mbstate_t* ps, int n) { in mbstate_get_byte() argument
59 return ps->__seq[n]; in mbstate_get_byte()
62 static inline __wur size_t mbstate_reset_and_return_illegal(int _errno, mbstate_t* ps) { in mbstate_reset_and_return_illegal() argument
64 *(reinterpret_cast<uint32_t*>(ps->__seq)) = 0; in mbstate_reset_and_return_illegal()
68 static inline __wur size_t mbstate_reset_and_return(int _return, mbstate_t* ps) { in mbstate_reset_and_return() argument
69 *(reinterpret_cast<uint32_t*>(ps->__seq)) = 0; in mbstate_reset_and_return()