Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 95) sorted by relevance

1234

/picolibc-latest/newlib/libc/machine/powerpc/
Dsetjmp.S44 evstdd 1,0(3) # offset 0
45 evstdd 2,8(3) # offset 8
46 evstdd 13,16(3) # offset 16
47 evstdd 14,24(3) # offset 24
48 evstdd 15,32(3) # offset 32
49 evstdd 16,40(3) # offset 40
50 evstdd 17,48(3) # offset 48
51 evstdd 18,56(3) # offset 56
52 evstdd 19,64(3) # offset 64
53 evstdd 20,72(3) # offset 72
[all …]
/picolibc-latest/newlib/libc/stdlib/
Dnano-memalign.c48 size_t offset, size_with_padding; in memalign() local
80 offset = (size_t) (aligned_p - allocated); in memalign()
83 if (offset) in memalign()
85 if (offset < MALLOC_MINSIZE) { in memalign()
87 offset += align; in memalign()
91 _set_size(new_chunk_p, _size(chunk_p) - offset); in memalign()
93 make_free_chunk(chunk_p, offset); in memalign()
98 offset = _size(chunk_p) - chunk_size(s); in memalign()
101 if (offset >= MALLOC_MINSIZE) in memalign()
103 *_size_ref(chunk_p) -= offset; in memalign()
[all …]
Dsetenv.c47 int offset; in setenv() local
59 if ((C = _findenv (name, &offset))) in setenv()
102 offset = cnt; in setenv()
111 (*p_environ)[offset] = E; in setenv()
128 int offset; in unsetenv() local
139 while (_findenv (name, &offset)) /* if set multiple times */ in unsetenv()
141 for (P = &(*p_environ)[offset];; ++P) in unsetenv()
/picolibc-latest/newlib/libc/stdio/
Dfmemopen.c168 off_t offset = (off_t) pos; in fmemseeker() local
170 _off64_t offset = (_off64_t) pos; in fmemseeker() local
174 offset += c->pos; in fmemseeker()
176 offset += c->eof; in fmemseeker()
177 if (offset < 0) in fmemseeker()
180 offset = -1; in fmemseeker()
182 else if (offset > (off_t) c->max) in fmemseeker()
185 offset = -1; in fmemseeker()
188 else if ((_fpos_t) offset != offset) in fmemseeker()
191 offset = -1; in fmemseeker()
[all …]
Dopen_memstream.c162 OFF_T offset = (OFF_T) pos; in memseeker() local
165 offset += c->pos; in memseeker()
167 offset += c->eof; in memseeker()
168 if (offset < 0) in memseeker()
171 offset = -1; in memseeker()
173 else if ((OFF_T) (size_t) offset != offset) in memseeker()
176 offset = -1; in memseeker()
179 else if ((_fpos_t) offset != offset) in memseeker()
182 offset = -1; in memseeker()
195 c->pos = offset; in memseeker()
[all …]
Dfopencookie.c144 off_t offset = (off_t) pos; in fcseeker() local
146 _off64_t offset = (_off64_t) pos; in fcseeker() local
150 if (c->seekfn (c->cookie, &offset, whence) < 0 && errno) in fcseeker()
153 else if ((_fpos_t)offset != offset) in fcseeker()
156 offset = -1; in fcseeker()
159 return (_fpos_t) offset; in fcseeker()
169 _off64_t offset = (_off64_t) pos; in fcseeker64() local
172 if (c->seekfn (c->cookie, &offset, whence) < 0 && errno) in fcseeker64()
174 return (_fpos64_t) offset; in fcseeker64()
/picolibc-latest/newlib/libc/machine/spu/
Dstack_reg_va.S78 #define offset $67 macro
121 ai offset, parms, -1 /* offset = parms - 1 */
122 mpyi offset, offset, 16 /* offset = offset * 16 */
123 a ptr, ptr, offset /* ptr = ptr + offset */
132 ai offset, parms, 2 /* offset = parms + 2 */
133 mpyi offset, offset, -16 /* offset = offset * -16 */
134 a ptr, ptr, offset /* ptr = ptr + offset */
Dfseek.c43 long offset; member
52 long offset, in fseek() argument
60 args.offset = offset; in fseek()
Dmmap_ea.c43 flags, int fd, off_t offset) in mmap_ea() argument
51 (size_t) length, prot, flags, fd, offset); in mmap_ea()
60 prot, flags, fd, offset); in mmap_ea()
/picolibc-latest/semihost/
Dlseek.c43 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
45 if (whence == SEEK_CUR && offset == 0) in lseek()
52 offset += flen; in lseek()
63 uintptr_t ret = sys_semihost2(SYS_SEEK, fd, offset); in lseek()
65 return offset; in lseek()
/picolibc-latest/test/
Dtest-fread-fwrite.c62 test_value(long offset, int generation) in test_value() argument
64 return (uint8_t) my_permute(offset * (generation + 1)); in test_value()
68 fill_buf(long offset, int generation, void *b, size_t len) in fill_buf() argument
72 *bp++ = test_value(offset++, generation); in fill_buf()
76 check_buf(long offset, int generation, void *b, size_t len) in check_buf() argument
80 if (test_value(offset, generation) != *bp++) { in check_buf()
81 return offset; in check_buf()
83 offset++; in check_buf()
119 off_t offset; in main() local
157 offset = 0; in main()
[all …]
/picolibc-latest/newlib/libc/tinystdio/
Dryu_table.c99 const uint32_t offset = i - base2; in __double_computePow5() local
101 if (offset == 0) { in __double_computePow5()
106 const uint64_t m = DOUBLE_POW5_TABLE[offset]; in __double_computePow5()
119 const uint32_t offset = base2 - i; in __double_computeInvPow5() local
121 if (offset == 0) { in __double_computeInvPow5()
126 const uint64_t m = DOUBLE_POW5_TABLE[offset]; // 5^offset in __double_computeInvPow5()
142 const uint32_t offset = i - base2; in __double_computePow5() local
144 if (offset == 0) { in __double_computePow5()
149 const uint64_t m = DOUBLE_POW5_TABLE[offset]; in __double_computePow5()
168 const uint32_t offset = base2 - i; in __double_computeInvPow5() local
[all …]
/picolibc-latest/newlib/libc/time/
Dlcltime_r.c38 long offset; in localtime_r() local
65 offset = (res->tm_isdst == 1 in localtime_r()
66 ? tz->__tzrule[1].offset in localtime_r()
67 : tz->__tzrule[0].offset); in localtime_r()
69 hours = (int) (offset / SECSPERHOUR); in localtime_r()
70 offset = offset % SECSPERHOUR; in localtime_r()
72 mins = (int) (offset / SECSPERMIN); in localtime_r()
73 secs = (int) (offset % SECSPERMIN); in localtime_r()
/picolibc-latest/semihost/fake/
Dfake_stub.c76 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
79 (void) offset; in lseek()
84 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
86 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/semihost/machine/powerpc/
Dpowerpc_stub.c77 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
80 (void) offset; in lseek()
85 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
87 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/semihost/machine/m68k/
Dm68k_lseek.c46 lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
48 uint32_t a = offset >> 32; in lseek64()
49 uint32_t b = offset; in lseek64()
/picolibc-latest/semihost/machine/nios2/
Dnios2_lseek.c46 lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
48 uint32_t a = offset >> 32; in lseek64()
49 uint32_t b = offset; in lseek64()
/picolibc-latest/semihost/machine/x86/
De9_stub.c81 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
84 (void) offset; in lseek()
89 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
91 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/semihost/machine/mips/
Dmips_stub.c75 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
78 (void) offset; in lseek()
83 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
85 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/semihost/machine/msp430/
Dmsp430-stub.c81 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
84 (void) offset; in lseek()
89 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
91 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/semihost/machine/sparc/
Dsparc_stub.c75 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
78 (void) offset; in lseek()
83 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
85 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/semihost/machine/sh/
Dsh_stub.c82 off_t lseek(int fd, off_t offset, int whence) in lseek() argument
85 (void) offset; in lseek()
90 _off64_t lseek64(int fd, _off64_t offset, int whence) in lseek64() argument
92 return (_off64_t) lseek(fd, (off_t) offset, whence); in lseek64()
/picolibc-latest/newlib/libc/string/
Dmemmem.c146 size_t offset = 0; in memmem() local
174 if (m1 <= 15 || memcmp (hs + offset, ne + offset, sizeof (long)) == 0) in memmem()
180 offset = (offset >= sizeof (long) ? offset : m1) - sizeof (long); in memmem()
/picolibc-latest/newlib/libc/stdio64/
Dfseeko64.c91 _off64_t offset, in fseeko64() argument
106 if ((_off_t) offset != offset) in fseeko64()
111 return (_off64_t) fseeko (fp, offset, whence); in fseeko64()
174 offset += curoff; in fseeko64()
231 target = offset; in fseeko64()
237 target = st.st_size + offset; in fseeko64()
331 || seekfn (fp->_cookie, offset, whence) == POS_ERR) in fseeko64()
/picolibc-latest/newlib/libc/machine/arm/
Dmemcpy-armv7m.S63 .irp offset, 0,4,8,12
66 .irp offset, 0,4,8,12,16,20,24,28
69 .irp offset, 0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60
76 .irp offset, 0,4
79 .irp offset, 0,4,8,12
128 ldr r3, [r1, \offset]
129 str r3, [r0, \offset]
150 ldr r3, [r1, \offset]
151 str r3, [r0, \offset]

1234