Home | History | Annotate | Download | only in private

Lines Matching refs:ps

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