Home
last modified time | relevance | path

Searched refs:ptrdiff_t (Results 1 – 25 of 66) sorted by relevance

123

/ndk/sources/cxx-stl/stlport/stlport/stl/
D_tempbuf.h48 pair<_Tp*, ptrdiff_t> _STLP_CALL
49 __get_temporary_buffer(ptrdiff_t __len, _Tp*);
54 inline pair<_Tp*, ptrdiff_t> _STLP_CALL get_temporary_buffer(ptrdiff_t __len) { in get_temporary_buffer()
65 inline pair<_Tp*, ptrdiff_t> _STLP_CALL
66 get_temporary_buffer(ptrdiff_t __len, _Tp*) { in get_temporary_buffer()
81 ptrdiff_t _M_original_len;
82 ptrdiff_t _M_len;
89 if (_M_len > (ptrdiff_t)(INT_MAX / sizeof(_Tp))) in _M_allocate_buffer()
106 ptrdiff_t size() const { return _M_len; } in size()
107 ptrdiff_t requested_size() const { return _M_original_len; } in requested_size()
D_tempbuf.c36 pair<_Tp*, ptrdiff_t> _STLP_CALL
37 __get_temporary_buffer(ptrdiff_t __len, _Tp*) in __get_temporary_buffer()
39 if (__len > ptrdiff_t(INT_MAX / sizeof(_Tp))) in __get_temporary_buffer()
45 return pair<_Tp*, ptrdiff_t>(__tmp, __len); in __get_temporary_buffer()
49 return pair<_Tp*, ptrdiff_t>((_Tp*)0, 0); in __get_temporary_buffer()
D_sstream.c150 ptrdiff_t __offset = this->gptr() - this->eback(); in overflow()
178 ptrdiff_t __avail = _S_finish(_M_str) - this->pptr(); in xsputn()
194 ptrdiff_t __get_offset = this->gptr() - this->eback(); in xsputn()
195 _M_str.append(__s, __s + __STATIC_CAST(ptrdiff_t, __n)); in xsputn()
199 _M_str.append(__s, __s + __STATIC_CAST(ptrdiff_t, __n)); in xsputn()
221 ptrdiff_t __avail = _S_finish(_M_str) - this->pptr(); in _M_xsputnc()
239 ptrdiff_t __get_offset = this->gptr() - this->eback(); in _M_xsputnc()
266 ptrdiff_t __offg = 0; in setbuf()
267 ptrdiff_t __offp = 0; in setbuf()
335 ptrdiff_t __n = this->egptr() - this->eback(); in seekoff()
[all …]
D_stream_iterator.h69 class _Dist = ptrdiff_t>
77 class istream_iterator : public iterator<input_iterator_tag, _Tp , ptrdiff_t,
82 template <class _Tp, _STLP_DFL_TYPE_PARAM(_Dist, ptrdiff_t)>
92 typedef ptrdiff_t _Dist;
235 inline ptrdiff_t* _STLP_CALL
236 distance_type(const istream_iterator< __ISI_TMPL_ARGUMENTS >&) { return (ptrdiff_t*)0; } in distance_type()
D_num_put.c148 __copy_integer_and_fill(const _CharT* __buf, ptrdiff_t __len, in __copy_integer_and_fill()
157 _STLP_STATIC_ASSERT((sizeof(streamsize) > sizeof(ptrdiff_t)) || in __copy_integer_and_fill()
158 … ((sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed)) in __copy_integer_and_fill()
159ptrdiff_t __pad = __STATIC_CAST(ptrdiff_t, (min) (__STATIC_CAST(streamsize, (numeric_limits<ptrdif… in __copy_integer_and_fill()
203 ptrdiff_t __len = __iend - __buf; in __put_integer()
235 ptrdiff_t __len = __iend - __buf; in __put_integer()
378 const ptrdiff_t __buf_size = sizeof(__buf) / sizeof(char); in __do_put_integer()
D_iterator_base.h57 template <class _Category, class _Tp, _STLP_DFL_TMPL_PARAM(_Distance,ptrdiff_t),
159 # define _STLP_DIFFERENCE_TYPE(_Iterator) ptrdiff_t
169 typedef ptrdiff_t difference_type;
178 typedef ptrdiff_t difference_type;
188 typedef ptrdiff_t difference_type;
222 inline ptrdiff_t*
224 { return __STATIC_CAST(ptrdiff_t*, 0); }
259 inline ptrdiff_t* _STLP_CALL distance_type(const _Tp*) { return __STATIC_CAST(ptrdiff_t*, 0); }
D_fstream.c245 ptrdiff_t __n = __enext - _M_ext_buf; in overflow()
284 _Filebuf_Tmp_Buf(ptrdiff_t __n) : _M_ptr(0) { _M_ptr = new _CharT[__n]; } in _Filebuf_Tmp_Buf()
333 …streamoff __eadj = _M_base._M_get_offset(_M_ext_buf + __STATIC_CAST(ptrdiff_t, __iadj), _M_ext_bu… in seekoff()
341 ptrdiff_t __ipos = this->gptr() - this->eback(); in seekoff()
515 ptrdiff_t __n = _M_base._M_read(_M_ext_buf_end, _M_ext_buf_EOS - _M_ext_buf_end); in _M_underflow_aux()
669 _M_int_buf_EOS = _M_int_buf + __STATIC_CAST(ptrdiff_t, __n); in _M_allocate_buffers()
670 _M_ext_buf_EOS = _M_ext_buf + __STATIC_CAST(ptrdiff_t, __ebufsiz); in _M_allocate_buffers()
D_rope.h891 typedef ptrdiff_t difference_type;
930 _Self& operator+=(ptrdiff_t __n) {
942 _Self& operator-=(ptrdiff_t __n) {
989 typedef ptrdiff_t difference_type;
1026 _Self& operator+=(ptrdiff_t __n) {
1038 _Self& operator-=(ptrdiff_t __n) {
1056 reference operator[](ptrdiff_t __n) {
1068 inline ptrdiff_t* distance_type(const _Rope_iterator<_CharT,_Alloc>&) { return 0; }
1075 inline ptrdiff_t* distance_type(const _Rope_const_iterator<_CharT,_Alloc>&) { return 0; }
1093 typedef ptrdiff_t difference_type;
[all …]
D_istream.c650 _STLP_STATIC_ASSERT((sizeof(streamsize) > sizeof(ptrdiff_t)) || in __read_buffered()
651 … ((sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed)) in __read_buffered()
652ptrdiff_t __request = __STATIC_CAST(ptrdiff_t, (min) (__STATIC_CAST(streamsize, (numeric_limits<pt… in __read_buffered()
655 ptrdiff_t __chunk = (min) (ptrdiff_t(__p - __first), __request); in __read_buffered()
1037 ptrdiff_t __avail = __buf->_M_egptr() - __buf->_M_gptr(); in _M_ignore_buffered()
1041 const _CharT* __last = __buf->_M_gptr() + __STATIC_CAST(ptrdiff_t, __m); in _M_ignore_buffered()
1043 ptrdiff_t __chunk = __p - __buf->_M_gptr(); in _M_ignore_buffered()
1057 ptrdiff_t __chunk = __p - __buf->_M_gptr(); in _M_ignore_buffered()
1292 ptrdiff_t __avail = __src->_M_egptr() - __first; in __copy_buffered()
D_pthread_alloc.h101 typedef ptrdiff_t difference_type;
193 typedef ptrdiff_t difference_type;
282 typedef ptrdiff_t difference_type;
376 typedef ptrdiff_t difference_type;
/ndk/sources/cxx-stl/gabi++/src/
Ddynamic_cast.cc45 adjust_pointer(const void* p, std::ptrdiff_t off) in adjust_pointer()
71 inline std::ptrdiff_t
76 adjust_pointer(type_info_ptr_address, -sizeof(std::ptrdiff_t)); in get_offset_to_top()
77 return *reinterpret_cast<const std::ptrdiff_t*>(offset_to_top_address); in get_offset_to_top()
87 std::ptrdiff_t offset_to_top = get_offset_to_top(vtable); in get_most_derived_object()
105 const std::ptrdiff_t* virtual_base_offset_address = in get_subobject()
106 static_cast<const std::ptrdiff_t*> (adjust_pointer(vtable, offset)); in get_subobject()
185 std::ptrdiff_t src2dst_offset;
191 const abi::__class_type_info *dst, std::ptrdiff_t offset) in cast_context()
292 std::ptrdiff_t src2dst_offset) in __dynamic_cast()
/ndk/sources/cxx-stl/stlport/stlport/stl/debug/
D_iterator.h49 void _Advance(_Iterator&, ptrdiff_t, const forward_iterator_tag &) in _Advance() argument
53 void _Advance(_Iterator& __it, ptrdiff_t, const bidirectional_iterator_tag &) in _Advance() argument
57 void _Advance(_Iterator& __it, ptrdiff_t __n, const random_access_iterator_tag &) in _Advance()
61 ptrdiff_t _DBG_distance(const _Iterator& __x, const _Iterator& __y, const random_access_iterator_ta… in _DBG_distance()
65 ptrdiff_t _DBG_distance(const _Iterator&, const _Iterator&, const forward_iterator_tag &) { in _DBG_distance()
71 ptrdiff_t _DBG_distance(const _Iterator&, const _Iterator&, const bidirectional_iterator_tag &) { in _DBG_distance()
97 bool _Incrementable(const _Iterator& __it, ptrdiff_t __n, const forward_iterator_tag &) in _Incrementable()
101 bool _Incrementable(const _Iterator& __it, ptrdiff_t __n, const bidirectional_iterator_tag &) { in _Incrementable()
109 bool _Incrementable(const _Iterator& __it, ptrdiff_t __n, const random_access_iterator_tag &) { in _Incrementable()
113 ptrdiff_t __new_pos = (__it._M_iterator - __c->begin()) + __n; in _Incrementable()
[all …]
/ndk/sources/cxx-stl/stlport/src/details/
Dfstream_win32io.cpp389 ptrdiff_t _Filebuf_base::_M_read(char* buf, ptrdiff_t n) { in _M_read()
390 ptrdiff_t readen = 0; in _M_read()
464 bool _Filebuf_base::_M_write(char* buf, ptrdiff_t n) { in _M_write()
466 ptrdiff_t written; in _M_write()
497 ptrdiff_t nextblocksize = (min) (n, (ptrdiff_t)_TEXTBUF_SIZE); in _M_write()
502 ptrdiff_t linelength = nextlf - nextblock; in _M_write()
508 nextblocksize = (min) (ptrdiff_t(endblock - nextblock), in _M_write()
509 (max) (ptrdiff_t(0), ptrdiff_t(endtextbuf - ptrtextbuf))); in _M_write()
Dfstream_stdio.cpp317 ptrdiff_t _Filebuf_base::_M_read(char* buf, ptrdiff_t n) { in _M_read()
323 bool _Filebuf_base::_M_write(char* buf, ptrdiff_t n) in _M_write()
326 ptrdiff_t written = fwrite(buf, 1, n, _M_file); in _M_write()
Dfstream_unistd.cpp260 ptrdiff_t _Filebuf_base::_M_read(char* buf, ptrdiff_t n) in _M_read()
267 bool _Filebuf_base::_M_write(char* buf, ptrdiff_t n) in _M_write()
270 ptrdiff_t written = write(_M_file_id, buf, n); in _M_write()
/ndk/sources/cxx-stl/stlport/src/
Dstrstream.cpp122 ptrdiff_t old_size = epptr() - pbase(); in overflow()
123 ptrdiff_t new_size = (max)(2 * old_size, ptrdiff_t(1)); in overflow()
131 ptrdiff_t old_get_offset; in overflow()
234 if (seeklow + __STATIC_CAST(ptrdiff_t, off) < pbase()) { in seekoff()
245 setg(seeklow, seeklow + __STATIC_CAST(ptrdiff_t, off), egptr()); in seekoff()
247 setg(seeklow, seeklow + __STATIC_CAST(ptrdiff_t, off), pptr()); in seekoff()
249 setg(seeklow, seeklow + __STATIC_CAST(ptrdiff_t, off), epptr()); in seekoff()
Dnum_put.cpp30 static ptrdiff_t
134 ptrdiff_t _STLP_CALL
148 ptrdiff_t _STLP_CALL
Dfstream.cpp79 … __STATIC_CAST(char*, __this->_M_mmap_base) + __STATIC_CAST(ptrdiff_t, __remainder), in _M_doit()
80 … __STATIC_CAST(char*, __this->_M_mmap_base) + __STATIC_CAST(ptrdiff_t, __this->_M_mmap_len)); in _M_doit()
Dcodecvt.cpp90 ptrdiff_t len = (min) (from_end - from, to_limit - to); in do_out()
105 ptrdiff_t len = (min) (from_end - from, to_limit - to); in do_in()
/ndk/sources/host-tools/ndk-stack/elff/
Dmapfile.c91 return (MapFile*)(ptrdiff_t)file_handle; in mapfile_open()
105 return close((int)(ptrdiff_t)handle); in mapfile_close()
125 ret = read((int)(ptrdiff_t)handle, buf, nbyte); in mapfile_read()
145 ssize_t res = lseek((int)(ptrdiff_t)handle, offset, SEEK_SET); in mapfile_read_at()
226 mmap(0, map_size, PROT_READ, MAP_SHARED, (int)(ptrdiff_t)handle, map_offset); in mapfile_map()
/ndk/tests/device/test-stlport/unit/
Distmit_test.cpp45 typedef istream_iterator<char, ptrdiff_t> istream_char_ite;
46 typedef istream_iterator<int, ptrdiff_t> istream_int_ite;
47 typedef istream_iterator<string, ptrdiff_t> istream_string_ite;
/ndk/tests/device/test-gnustl-full/unit/
Distmit_test.cpp45 typedef istream_iterator<char, ptrdiff_t> istream_char_ite;
46 typedef istream_iterator<int, ptrdiff_t> istream_int_ite;
47 typedef istream_iterator<string, ptrdiff_t> istream_string_ite;
/ndk/sources/cxx-stl/gabi++/include/
Dcstddef36 * . ptrdiff_t
44 using ::ptrdiff_t;
/ndk/sources/cxx-stl/system/include/
Dcstddef36 * . ptrdiff_t
44 using ::ptrdiff_t;
/ndk/sources/cxx-stl/stlport/stlport/stl/config/
D_evc.h151 typedef int ptrdiff_t; typedef
269 typedef int ptrdiff_t; typedef

123