Lines Matching refs:ps
41 static inline __wur bool mbstate_is_initial(const mbstate_t* ps) { in mbstate_is_initial() argument
42 return *(reinterpret_cast<const uint32_t*>(ps->__seq)) == 0; in mbstate_is_initial()
45 static inline __wur size_t mbstate_bytes_so_far(const mbstate_t* ps) { in mbstate_bytes_so_far() argument
47 (ps->__seq[2] != 0) ? 3 : in mbstate_bytes_so_far()
48 (ps->__seq[1] != 0) ? 2 : in mbstate_bytes_so_far()
49 (ps->__seq[0] != 0) ? 1 : 0; in mbstate_bytes_so_far()
52 static inline void mbstate_set_byte(mbstate_t* ps, int i, char byte) { in mbstate_set_byte() argument
53 ps->__seq[i] = static_cast<uint8_t>(byte); in mbstate_set_byte()
56 static inline __wur uint8_t mbstate_get_byte(const mbstate_t* ps, int n) { in mbstate_get_byte() argument
57 return ps->__seq[n]; in mbstate_get_byte()
60 static inline void mbstate_reset(mbstate_t* ps) { in mbstate_reset() argument
61 *(reinterpret_cast<uint32_t*>(ps->__seq)) = 0; in mbstate_reset()
64 static inline __wur size_t mbstate_reset_and_return_illegal(int _errno, mbstate_t* ps) { in mbstate_reset_and_return_illegal() argument
66 mbstate_reset(ps); in mbstate_reset_and_return_illegal()
70 static inline __wur size_t mbstate_reset_and_return(size_t _return, mbstate_t* ps) { in mbstate_reset_and_return() argument
71 mbstate_reset(ps); in mbstate_reset_and_return()