Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 58) sorted by relevance

123

/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dfmemopen.c46 size_t pos; member
54 size_t pos = mf->mflags & __MAPP ? mf->size : mf->pos; in __fmem_put() local
57 } else if (pos < mf->bufsize) { in __fmem_put()
58 mf->buf[pos++] = c; in __fmem_put()
59 if (pos > mf->size) { in __fmem_put()
60 mf->size = pos; in __fmem_put()
69 mf->pos = pos; in __fmem_put()
82 } else if (mf->pos < mf->size) { in __fmem_get()
83 return (unsigned char)mf->buf[mf->pos++]; in __fmem_get()
93 if ((f->flags & __SWR) && mf->pos < mf->bufsize) { in __fmem_flush()
[all …]
Dfilewstrget.c44 if (((sstream->pos - sstream->end) & (sizeof(wchar_t) - 1)) == 0) in __file_wstr_get()
47 memcpy(&c, sstream->pos, sizeof(wchar_t)); in __file_wstr_get()
51 rv = (unsigned char) *sstream->pos; in __file_wstr_get()
52 sstream->pos++; in __file_wstr_get()
Dfilestrputalloc.c42 if (sstream->pos == sstream->end) { in __file_str_put_alloc()
50 sstream->pos = new + old_size; in __file_str_put_alloc()
53 *sstream->pos++ = c; in __file_str_put_alloc()
Dfilestrget.c44 rv = (unsigned char) *sstream->pos; in __file_str_get()
47 sstream->pos++; in __file_str_get()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dopen_memstream.c84 size_t pos; /* current position */ member
107 if (sizeof (OFF_T) == sizeof (size_t) && (ssize_t) (c->pos + n) < 0) in memwriter()
117 if (c->pos + n >= c->max) in memwriter()
120 if (newsize < c->pos + n + 1) in memwriter()
121 newsize = c->pos + n + 1; in memwriter()
130 if (c->pos > c->eof) in memwriter()
131 memset (cbuf + c->eof, '\0', c->pos - c->eof); in memwriter()
132 memcpy (cbuf + c->pos, buf, n); in memwriter()
133 c->pos += n; in memwriter()
136 if (c->pos > c->eof) in memwriter()
[all …]
Dfmemopen.c76 size_t pos; /* current position */ member
94 if (c->pos > c->eof) in fmemreader()
96 if (n >= c->eof - c->pos) in fmemreader()
97 n = c->eof - c->pos; in fmemreader()
98 memcpy (buf, c->buf + c->pos, n); in fmemreader()
99 c->pos += n; in fmemreader()
117 c->pos = c->eof; in fmemwriter()
118 else if (c->pos > c->eof) in fmemwriter()
119 memset (c->buf + c->eof, '\0', c->pos - c->eof); in fmemwriter()
121 if (c->pos + n > c->max - c->writeonly) in fmemwriter()
[all …]
Dftello.c89 _fpos_t pos; in ftello() local
109 pos = fp->_seek (fp->_cookie, (_fpos_t) 0, SEEK_END); in ftello()
110 if (pos == (_fpos_t) -1) in ftello()
117 pos = fp->_offset; in ftello()
120 pos = fp->_seek (fp->_cookie, (_fpos_t) 0, SEEK_CUR); in ftello()
121 if (pos == (_fpos_t) -1) in ftello()
134 pos -= fp->_r; in ftello()
136 pos -= fp->_ur; in ftello()
145 pos += fp->_p - fp->_bf._base; in ftello()
149 return (_off_t) pos; in ftello()
Dftell.c89 _fpos_t pos; in ftell() local
91 pos = ftello ( fp); in ftell()
92 if ((long)pos != pos) in ftell()
94 pos = -1; in ftell()
97 return (long)pos; in ftell()
Dfgetpos.c70 _fpos_t *__restrict pos) in fgetpos() argument
72 *pos = ftell ( fp); in fgetpos()
74 if (*pos != -1) in fgetpos()
Dgetdelim.c53 int pos; in __getdelim() local
108 pos = ptr - buf; in __getdelim()
120 ptr = buf + pos; in __getdelim()
121 numbytes = newsize - pos; in __getdelim()
Dfsetpos.c64 const _fpos_t * pos) in fsetpos() argument
66 int x = fseek ( iop, *pos, SEEK_SET); in fsetpos()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio64/
Dftello64.c82 _fpos64_t pos; in ftello64() local
106 pos = fp->_seek64 (fp->_cookie, (_fpos64_t) 0, SEEK_END); in ftello64()
107 if (pos == (_fpos64_t) -1) in ftello64()
114 pos = fp->_offset; in ftello64()
117 pos = fp->_seek64 (fp->_cookie, (_fpos64_t) 0, SEEK_CUR); in ftello64()
118 if (pos == (_fpos64_t) -1) in ftello64()
121 return (_off64_t) pos; in ftello64()
131 pos -= fp->_r; in ftello64()
133 pos -= fp->_ur; in ftello64()
142 pos += fp->_p - fp->_bf._base; in ftello64()
[all …]
Dfgetpos64.c67 _fpos64_t * pos) in fgetpos64() argument
69 *pos = (_fpos64_t)ftello64 (fp); in fgetpos64()
71 if (*pos != -1) in fgetpos64()
Dfsetpos64.c63 const _fpos64_t * pos) in fsetpos64() argument
65 int x = fseeko64 (iop, (_off64_t)(*pos), SEEK_SET); in fsetpos64()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dfsetpos.c42 const _fpos_t *pos; member
49 const _fpos_t * pos) in fsetpos() argument
56 args.pos = pos; in fsetpos()
Dfgetpos.c41 _fpos_t * pos; member
48 _fpos_t *__restrict pos) in fgetpos() argument
55 arg.pos = pos; in fgetpos()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Dfloorf4.h67 vec_uint4 mask, frac_mask, addend, insert, pos; in _floorf4() local
81 pos = spu_cmpgt((vec_int4)value, -1); in _floorf4()
91 addend = spu_andc(spu_andc(spu_add(mask, 1), pos), spu_cmpeq(spu_and((vec_uint4)value, mask), 0)); in _floorf4()
93 insert = spu_andc(spu_andc(spu_splats((unsigned int)0xBF800000), pos), in _floorf4()
Dfloorf.h86 vec_uint4 mask, frac_mask, addend, insert, pos; in _floorf()
102 pos = spu_cmpgt((vec_int4)in, -1); in _floorf()
112 addend = spu_andc(spu_andc(spu_add(mask, 1), pos), in _floorf()
115 insert = spu_andc(spu_andc(VEC_SPLAT_U32(0xBF800000), pos), in _floorf()
Dceilf.h86 vec_uint4 mask, frac_mask, addend, insert, pos; in _ceilf()
103 pos = spu_cmpgt((vec_int4)in, -1); in _ceilf()
113 addend = spu_andc(spu_and(spu_add(mask, 1), pos), spu_cmpeq(spu_and((vec_uint4)in, mask), 0)); in _ceilf()
115 insert = spu_andc(spu_and(pos, (vec_uint4)one), in _ceilf()
Dfloord2.h65 vec_uint4 mask, mask_1, frac_mask, addend, insert, pos, equal0; in _floord2() local
82 pos = spu_cmpgt((vec_int4)in_hi, -1); in _floord2()
98 …addend = spu_andc(spu_andc(mask_1, pos), spu_and(equal0, spu_shuffle(equal0, equal0, swap_words))); in _floord2()
100 insert = spu_andc(spu_andc((vec_uint4)minus_one, pos), in _floord2()
Dceil.h49 vec_uint4 mask, mask_1, frac_mask, addend, insert, pos, equal0; in _ceil() local
68 pos = spu_cmpgt((vec_int4)in_hi, -1); in _ceil()
84 addend = spu_andc(spu_and(mask_1, pos), spu_and(equal0, spu_shuffle(equal0, equal0, swap_words))); in _ceil()
86 insert = spu_andc(spu_and(pos, (vec_uint4)one_d), in _ceil()
Dfloor.h47 vec_uint4 mask, mask_1, frac_mask, addend, insert, pos, equal0; in _floor() local
66 pos = spu_cmpgt((vec_int4)in_hi, -1); in _floor()
82 addend = spu_andc(spu_andc(mask_1, pos), in _floor()
85 insert = spu_andc(spu_andc((vec_uint4)minus_one, pos), in _floor()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/cr16/sys/
Dasm.h58 #define _cbitb_(pos, dest) __asm__("cbitb %1,%0" : "=mr" (dest) : \ argument
59 "i" ((unsigned char)pos) , "0" (dest) : "cc")
60 #define _cbitw_(pos, dest) __asm__("cbitw %1,%0" : "=mr" (dest) : \ argument
61 "i" ((unsigned char)pos) , "0" (dest) : "cc")
168 #define _sbitb_(pos, dest) __asm__("sbitb %1,%0" : "=mr" (dest) : \ argument
169 "i" ((unsigned char)pos) , "0" (dest) : "cc")
170 #define _sbitw_(pos, dest) __asm__("sbitw %1,%0" : "=mr" (dest) : \ argument
171 "i" ((unsigned char)pos) , "0" (dest) : "cc")
210 #define _tbitb_(pos, dest) __asm__("tbitb %0,%1" : /* No output */ : \ argument
211 "i" ((unsigned char)pos) , "m" (dest) : "cc")
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/aarch64/
Dstrncmp.S60 #define pos x12 macro
64 #define offset pos
119 clz pos, syndrome
121 lsl data1, data1, pos
122 cmp limit, pos, lsr #3
123 lsl data2, data2, pos
165 clz pos, syndrome
171 lsl data1, data1, pos
172 lsl data2, data2, pos
322 clz pos, syndrome
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/crx/sys/
Dasm.h72 #define _cbitb_(pos, dest) __asm__("cbitb %1,%0" : "=mr" (dest) : \ argument
73 "i" ((unsigned char)pos) , "0" (dest) : "cc")
74 #define _cbitw_(pos, dest) __asm__("cbitw %1,%0" : "=mr" (dest) : \ argument
75 "i" ((unsigned char)pos) , "0" (dest) : "cc")
76 #define _cbitd_(pos, dest) __asm__("cbitd %1,%0" : "=r" (dest) : \ argument
77 "i" ((unsigned char)pos) , "0" (dest) : "cc")
307 #define _sbitb_(pos,dest) __asm__("sbitb %1,%0" : "=mr" (dest) : \ argument
308 "i" ((unsigned char)pos) , "0" (dest) : "cc")
309 #define _sbitw_(pos,dest) __asm__("sbitw %1,%0" : "=mr" (dest) : \ argument
310 "i" ((unsigned char)pos) , "0" (dest) : "cc")
[all …]

123