Searched refs:size (Results 51 - 75 of 134) sorted by path

123456

/system/core/libpixelflinger/
H A Dclear.cpp53 const uint32_t size = c->formats[s.format].size; local
54 const int32_t stride = s.stride * size;
55 uint8_t* dst = (uint8_t*)s.data + (l + t*s.stride)*size;
56 w *= size;
64 switch (size) {
H A Draster.cpp107 + (xs + (cb->stride * ys)) * fp->size;
109 + (xd + (cb->stride * yd)) * fp->size;
110 const size_t bpr = cb->stride * fp->size;
111 const size_t rowsize = width * fp->size;
H A Dscanline.cpp286 ScanlineAssembly(needs_t needs, size_t size) argument
287 : Assembly(size), mKey(needs) { }
353 switch (c->formats[cb_format].size) {
510 static inline int blendfactor(uint32_t x, uint32_t size, uint32_t def = 0) argument
512 if (!size)
516 if (size > 16) {
517 x >>= (size - 16);
518 } else if (size < 16) {
519 x = ggl_expand(x, size, 16);
595 static GGLfixed wrapping(int32_t coord, uint32_t size, in argument
2241 const size_t size = ct * fp->size; local
2287 const size_t size = ct * fp->size; local
2300 const size_t size = ct * fp->size; local
2335 const size_t size = ct * fp->size; local
[all...]
H A Dtrap.cpp160 if (halfSize & TRI_HALF) { // size odd
163 } else { // size even
203 void aa_nice_pointx(void *con, const GGLcoord* v, GGLcoord size) argument
207 GGLcoord rad = ((size + 1)>>1);
268 void aa_pointx(void *con, const GGLcoord* v, GGLcoord size) argument
272 GGLcoord rad = ((size + 1)>>1);
457 (x + (cb->stride * y)) * fp->size;
458 const size_t size = ct * fp->size; local
459 memset(dst, 0xFF, size);
[all...]
/system/core/libpixelflinger/codeflinger/
H A DARMAssembler.cpp170 size_t count = mBranchTargets.size();
H A DCodeCache.cpp103 Assembly::Assembly(size_t size)
106 mBase = (uint32_t*)mspace_malloc(getMspace(), size);
108 "Failed to create Assembly of size %zd in executable "
109 "store of size %zd", size, kMaxCodeCacheCapacity);
110 mSize = size;
130 ssize_t Assembly::size() const
146 "of size %zd", newSize, kMaxCodeCacheCapacity);
148 return size();
153 CodeCache::CodeCache(size_t size)
[all...]
H A DCodeCache.h57 Assembly(size_t size);
60 ssize_t size() const;
62 ssize_t resize(size_t size);
81 CodeCache(size_t size);
H A DGGLAssembler.cpp339 ADD(AL, 0, parts.cbPtr.reg, parts.cbPtr.reg, imm(parts.cbPtr.size>>3));
391 const int cb_bits = mCbFormat.size*8;
541 if (need_expander && (fragment.size() < dst_size)) {
549 (mInfo[component].needed || fragment.size()<dst_size))
573 fragment.size(), fragment.flags);
582 fragment.size(), CORRUPTIBLE);
703 const int shift = GGL_COLOR_BITS-fragment.size();
887 uint32_t size = ((bits>=32) ? 0 : (1LU << bits)) - 1; local
888 mask &= size;
890 if (mask == size) {
[all...]
H A DGGLAssembler.h223 inline int size() const { return s; } function in struct:android::GGLAssembler::integer_t
239 inline int mask(int c) const { return ((1<<size(c))-1) << low(c); }
240 inline int size() const { return format.size*8; } function in struct:android::GGLAssembler::pixel_t
241 inline int size(int c) const { return component_size(c); } function in struct:android::GGLAssembler::pixel_t
268 inline int size() const { return h-l; } function in struct:android::GGLAssembler::component_t
272 pointer_t() : reg_t(), size(0) {
275 : reg_t(r, f), size(s) {
278 reg_t::setTo(r, f); size=s;
280 int8_t size; member in struct:android::GGLAssembler::pointer_t
[all...]
H A DMIPSAssembler.cpp1285 // works with strings of limited size (makes a temp copy)
1391 size_t count = mBranchTargets.size();
H A Dblending.cpp77 if (!temp.size()) {
127 if (fb.size() < temp.size()) {
129 int new_size = temp.size() < 8 ? temp.size() : 8;
142 integer_t fragment(temp.reg, temp.size(), temp.flags);
325 // XXX: doesn't work if size==1
355 // btw, we're guaranteed that Ad's size is <= 8, because
445 fragment.reg : scratches.obtain(), fb.size(), CORRUPTIBLE);
446 const int shift = fragment.size()
[all...]
H A Dload_store.cpp33 const int bits = addr.size;
70 const int bits = addr.size;
166 s.size());
175 s.size());
186 expand(d, integer_t(s.reg, s.size(), s.flags), dbits);
199 assert(src.size());
201 int sbits = src.size();
H A Dtexturing.cpp143 const int bits = parts.iterated.size();
144 const uint32_t size = ((bits>=32) ? 0 : (1LU << bits)) - 1; local
157 if (mMasking && ((mask & size)==0)) {
161 if (mCbFormat.size == 1) {
164 } else if (mCbFormat.size == 2) {
282 tmu.bits = tmu.format.size*8;
288 && tmu.format.size!=3; // XXX: only 8, 16 and 32 modes for now
422 if (tmu.format.size == 1) {
427 if (tmu.format.size == 4) {
487 if (tmu.format.size
1136 wrapping( int d, int coord, int size, int tx_wrap, int tx_linear) argument
[all...]
/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp31 ScanlineAssembly(needs_t needs, size_t size) argument
32 : Assembly(size), mKey(needs) { }
/system/core/libpixelflinger/tinyutils/
H A DKeyedVector.h44 inline size_t size() const { return mVector.size(); } function in class:android::KeyedVector
49 //! setst the capacity. capacity can never be reduced less than size()
50 inline ssize_t setCapacity(size_t size) { return mVector.setCapacity(size); } argument
158 if (index<size()) {
H A DSharedBuffer.cpp20 SharedBuffer* SharedBuffer::alloc(size_t size) argument
22 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size));
25 sb->mSize = size;
45 memcpy(sb->data(), data(), size());
H A DSharedBuffer.h28 /*! allocate a buffer of size 'size' and acquire() it.
31 static SharedBuffer* alloc(size_t size);
49 //! get size of the buffer
50 inline size_t size() const;
58 //! get the size of a SharedBuffer object from its data
65 SharedBuffer* editResize(size_t size) const;
71 SharedBuffer* reset(size_t size) const;
111 size_t SharedBuffer::size() const { function in class:android::SharedBuffer
H A DSortedVector.h61 inline size_t size() const { return VectorImpl::size(); } function in class:android::SortedVector
66 //! setst the capacity. capacity can never be reduced less than size()
67 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } argument
185 assert( index<size() );
196 assert( (index>0 ? index : -index)<size() );
197 return *(array() + ((index<0) ? (size()-index) : index));
202 return *(array() + size() - 1);
H A DVector.h61 inline size_t size() const { return VectorImpl::size(); } function in class:android::Vector
66 //! setst the capacity. capacity can never be reduced less than size()
67 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } argument
213 LOG_FATAL_IF( index>=size(),
214 "itemAt: index %d is past size %d", (int)index, (int)size() );
225 LOG_FATAL_IF( (index>0 ? index : -index)>=size(),
226 "mirrorItemAt: index %d is past size
[all...]
H A DVectorImpl.cpp105 return SharedBuffer::sharedBuffer(mStorage)->size() / mItemSize;
112 if (index > size())
114 void* where = _grow(index, vector.size());
116 _do_copy(where, vector.arrayImpl(), vector.size());
123 return insertVectorAt(vector, size());
133 if (index > size())
148 if (size())
149 removeItemsAt(size()-1, 1);
159 insertAt(item, size());
169 return insertAt(item, size());
[all...]
H A DVectorImpl.h25 * reduces code size.
55 inline size_t size() const { return mCount; } function in class:android::VectorImpl
58 ssize_t setCapacity(size_t size);
/system/core/libsparse/
H A Dsparse_crc32.c101 uint32_t sparse_crc32(uint32_t crc_in, const void *buf, int size) argument
107 while (size--)
H A Dsparse_crc32.h19 uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);
H A Dsparse_read.c57 int size; local
60 size = vsnprintf(NULL, 0, fmt, argp);
63 if (size < 0) {
67 at = malloc(size + 1);
73 vsnprintf(at, size, fmt, argp);
75 at[size] = 0;
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp75 bool NetlinkEvent::parseBinaryNetlinkMessage(char *buffer, int size) { argument
76 size_t sz = size;
133 nh = NLMSG_NEXT(nh, size);
163 bool NetlinkEvent::parseAsciiNetlinkMessage(char *buffer, int size) { argument
170 if (size == 0)
174 buffer[size-1] = '\0';
176 end = s + size;
210 bool NetlinkEvent::decode(char *buffer, int size, int format) { argument
212 return parseBinaryNetlinkMessage(buffer, size);
214 return parseAsciiNetlinkMessage(buffer, size);
[all...]

Completed in 2097 milliseconds

123456