Home
last modified time | relevance | path

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

123

/picolibc-latest/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()
Dfgetpos.c68 _fpos_t *__restrict pos) in fgetpos() argument
70 *pos = ftell ( fp); in fgetpos()
72 if (*pos != -1) in fgetpos()
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()
Dfsetpos.c62 const _fpos_t * pos) in fsetpos() argument
64 int x = fseek ( iop, *pos, SEEK_SET); in fsetpos()
/picolibc-latest/newlib/libc/stdio/
Dopen_memstream.c90 size_t pos; /* current position */ member
113 if (sizeof (OFF_T) == sizeof (size_t) && (ssize_t) (c->pos + n) < 0) in memwriter()
123 if (c->pos + n >= c->max) in memwriter()
126 if (newsize < c->pos + n + 1) in memwriter()
127 newsize = c->pos + n + 1; in memwriter()
136 if (c->pos > c->eof) in memwriter()
137 memset (cbuf + c->eof, '\0', c->pos - c->eof); in memwriter()
138 memcpy (cbuf + c->pos, buf, n); in memwriter()
139 c->pos += n; in memwriter()
142 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.c88 _fpos_t pos; in ftello() local
108 pos = fp->_seek (fp->_cookie, (_fpos_t) 0, SEEK_END); in ftello()
109 if (pos == (_fpos_t) -1) in ftello()
116 pos = fp->_offset; in ftello()
119 pos = fp->_seek (fp->_cookie, (_fpos_t) 0, SEEK_CUR); in ftello()
120 if (pos == (_fpos_t) -1) in ftello()
133 pos -= fp->_r; in ftello()
135 pos -= fp->_ur; in ftello()
144 pos += fp->_p - fp->_bf._base; in ftello()
148 return (_off_t) pos; in ftello()
Dftell.c88 _fpos_t pos; in ftell() local
90 pos = ftello ( fp); in ftell()
91 if ((long)pos != pos) in ftell()
93 pos = -1; in ftell()
96 return (long)pos; in ftell()
Dfgetpos.c69 _fpos_t *__restrict pos) in fgetpos() argument
71 *pos = ftell ( fp); in fgetpos()
73 if (*pos != -1) in fgetpos()
Dgetdelim.c52 int pos; in __getdelim() local
107 pos = ptr - buf; in __getdelim()
119 ptr = buf + pos; in __getdelim()
120 numbytes = newsize - pos; in __getdelim()
Dfsetpos.c63 const _fpos_t * pos) in fsetpos() argument
65 int x = fseek ( iop, *pos, SEEK_SET); in fsetpos()
/picolibc-latest/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()
/picolibc-latest/newlib/libc/machine/spu/
Dfsetpos.c43 const _fpos_t *pos; member
50 const _fpos_t * pos) in fsetpos() argument
57 args.pos = pos; in fsetpos()
Dfgetpos.c43 _fpos_t * pos; member
50 _fpos_t *__restrict pos) in fgetpos() argument
57 arg.pos = pos; in fgetpos()
/picolibc-latest/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()
/picolibc-latest/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-latest/newlib/libc/machine/aarch64/
Dstrncmp.S62 #define pos x12 macro
66 #define offset pos
121 clz pos, syndrome
123 lsl data1, data1, pos
124 cmp limit, pos, lsr #3
125 lsl data2, data2, pos
167 clz pos, syndrome
173 lsl data1, data1, pos
174 lsl data2, data2, pos
324 clz pos, syndrome
[all …]
/picolibc-latest/semihost/
Dsys_seek.c39 sys_semihost_seek(int fd, uintptr_t pos) in sys_semihost_seek() argument
41 return (int)sys_semihost2(SYS_SEEK, fd, pos); in sys_semihost_seek()
/picolibc-latest/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