/external/open-vcdiff/src/ |
H A D | instruction_map.h | 37 // inst (also known as instruction type), size, and mode and arriving at 54 // Finds an opcode that has the given inst, size, and mode for its first 59 // If this function returns kNoOpcode for size > 0, the caller will 60 // usually want to try again with size == 0 to find an opcode that 61 // doesn't have a fixed size value. 63 // If this function returns kNoOpcode for size == 0, it is an error condition, 65 // of expressing all combinations of inst and mode with size=0. 68 unsigned char size, 70 return first_instruction_map_.Lookup(inst, size, mode); 75 // the first opcode, and has the given inst, size, an 67 LookupFirstOpcode(unsigned char inst, unsigned char size, unsigned char mode) const argument 82 LookupSecondOpcode(unsigned char first_opcode, unsigned char inst, unsigned char size, unsigned char mode) const argument 97 Add(unsigned char inst, unsigned char size, unsigned char mode, unsigned char opcode) argument 109 Lookup(unsigned char inst, unsigned char size, unsigned char mode) const argument [all...] |
/external/skia/legacy/src/core/ |
H A D | SkMask.cpp | 16 Sk64 size; local 17 size.setMul(a, b); 18 if (size.is32() && size.isPos()) { 19 return size.get32(); 29 size_t size = this->computeImageSize(); local 31 size = safeMul32(size, 3); 33 return size; 39 uint8_t* SkMask::AllocImage(size_t size) { argument [all...] |
/external/skia/src/core/ |
H A D | SkMask.cpp | 16 Sk64 size; local 17 size.setMul(a, b); 18 if (size.is32() && size.isPos()) { 19 return size.get32(); 29 size_t size = this->computeImageSize(); local 31 size = safeMul32(size, 3); 33 return size; 39 uint8_t* SkMask::AllocImage(size_t size) { argument [all...] |
H A D | SkBuffer.h | 18 The RBuffer is given the buffer to read from, with either a specified size 19 or no size (in which case no range checking is performed). It is iillegal 35 SkRBuffer(const void* data, size_t size) { argument 36 SkASSERT(data != 0 || size == 0); 39 fStop = (const char*)data + size; 46 /** Return the total size of the data pointer. Only defined if the length was 49 size_t size() const { return fStop - fData; } function in class:SkRBuffer 59 void read(void* buffer, size_t size) { argument 60 if (size) { 61 this->readNoSizeCheck(buffer, size); 97 SkWBuffer(void* data, size_t size) argument 105 reset(void* data, size_t size) argument 115 write(const void* buffer, size_t size) argument [all...] |
H A D | SkStream.cpp | 41 size_t SkStream::skip(size_t size) argument 43 /* Check for size == 0, and just return 0. If we passed that 45 size of the stream. 47 return size ? this->read(NULL, size) : 0; 97 size_t size = this->readU32(); local 98 if (0 == size) { 101 void* buffer = sk_malloc_throw(size); 102 this->read(buffer, size); 103 return SkData::NewFromMalloc(buffer, size); 265 read(void* buffer, size_t size) argument 279 newFromParams(const void* src, size_t size, bool copyData) argument 292 SkMemoryStream(size_t size) argument 297 SkMemoryStream(const void* src, size_t size, bool copyData) argument 316 setMemoryOwned(const void* src, size_t size) argument 322 setMemory(const void* src, size_t size, bool copyData) argument 354 read(void* buffer, size_t size) argument 453 read(void* buffer, size_t size) argument 556 write(const void* buffer, size_t size) argument 579 SkMemoryWStream(void* buffer, size_t size) argument 584 write(const void* buffer, size_t size) argument 610 init(size_t size) argument 617 append(const void* data, size_t size) argument 658 size_t size; local 693 size_t size = block->written(); local 714 size_t size = block->written(); local 737 size_t size = block->written(); local 781 write(const void* buffer, size_t size) argument [all...] |
/external/webkit/Source/WebKit2/Shared/ |
H A D | WebData.h | 43 static PassRefPtr<WebData> createWithoutCopying(const unsigned char* bytes, size_t size, FreeDataFunction freeDataFunction, const void* context) argument 45 return adoptRef(new WebData(bytes, size, freeDataFunction, context)); 48 static PassRefPtr<WebData> create(const unsigned char* bytes, size_t size) argument 52 if (size) { 53 copiedBytes = static_cast<unsigned char*>(fastMalloc(size)); 54 memcpy(copiedBytes, bytes, size); 57 return createWithoutCopying(copiedBytes, size, fastFreeBytes, 0); 62 return create(buffer.data(), buffer.size()); 71 size_t size() const { return m_size; } function in class:WebKit::WebData 74 WebData(const unsigned char* bytes, size_t size, FreeDataFunctio argument [all...] |
/external/chromium/net/disk_cache/ |
H A D | mapped_file_posix.cc | 16 void* MappedFile::Init(const FilePath& name, size_t size) { argument 21 if (!size) 22 size = GetLength(); 24 buffer_ = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, 31 view_size_ = size; 37 return Read(block->buffer(), block->size(), offset); 42 return Write(block->buffer(), block->size(), offset);
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_allocator_testlib.cc | 73 void *malloc(size_t size) { argument 76 void *p = allocator.Allocate(&cache, size, 8); 77 SANITIZER_MALLOC_HOOK(p, size); 88 void *calloc(size_t nmemb, size_t size) { argument 91 size *= nmemb; 92 void *p = allocator.Allocate(&cache, size, 8, false); 93 memset(p, 0, size); 94 SANITIZER_MALLOC_HOOK(p, size); 98 void *realloc(void *p, size_t size) { argument 104 p = allocator.Reallocate(&cache, p, size, 111 memalign(size_t alignment, size_t size) argument 119 posix_memalign(void **memptr, size_t alignment, size_t size) argument 127 valloc(size_t size) argument [all...] |
/external/eigen/test/eigen2/ |
H A D | eigen2_first_aligned.cpp | 13 void test_eigen2_first_aligned_helper(Scalar *array, int size) argument 15 const int packet_size = sizeof(Scalar) * ei_packet_traits<Scalar>::size; 16 VERIFY(((std::size_t(array) + sizeof(Scalar) * ei_alignmentOffset(array, size)) % packet_size) == 0); 20 void test_eigen2_none_aligned_helper(Scalar *array, int size) argument 22 VERIFY(ei_packet_traits<Scalar>::size == 1 || ei_alignmentOffset(array, size) == size);
|
/external/skia/include/core/ |
H A D | SkReader32.h | 24 SkReader32(const void* data, size_t size) { argument 25 this->setMemory(data, size); 28 void setMemory(const void* data, size_t size) { argument 30 SkASSERT(SkAlign4(size) == size); 33 fStop = (const char*)data + size; 36 uint32_t size() const { return SkToU32(fStop - fBase); } function in class:SkReader32 43 bool isAvailable(uint32_t size) const { return fCurr + size <= fStop; } 49 SkASSERT(offset <= this->size()); 83 skip(size_t size) argument 96 read(void* dst, size_t size) argument 110 size_t size = path->readFromMemory(this->peek()); local 116 size_t size = matrix->readFromMemory(this->peek()); local 127 size_t size = rgn->readFromMemory(this->peek()); local [all...] |
H A D | SkWriter32.h | 50 uint32_t size() const { return this->bytesWritten(); } function in class:SkWriter32 54 // size MUST be multiple of 4 55 uint32_t* reserve(size_t size) { argument 56 SkASSERT(SkAlign4(size) == size); 59 if (NULL == block || block->available() < size) { 60 block = this->doReserve(size); 62 fSize += size; 63 return block->alloc(size); 66 void reset(void* storage, size_t size); 117 size_t size = path.writeToMemory(NULL); local 123 size_t size = matrix.writeToMemory(NULL); local 129 size_t size = rgn.writeToMemory(NULL); local 135 writeMul4(const void* values, size_t size) argument 143 write(const void* values, size_t size) argument 209 alloc(size_t size) argument 230 Create(size_t size) argument 240 initFromStorage(void* storage, size_t size) argument [all...] |
/external/smack/src/org/jivesoftware/smack/filter/ |
H A D | OrFilter.java | 36 private int size; field in class:OrFilter 48 size = 0; 62 size = 2; 79 if (size == filters.length) { 87 filters[size] = filter; 88 size++; 92 for (int i=0; i<size; i++) {
|
/external/v8/src/mips/ |
H A D | cpu-mips.cc | 60 void CPU::FlushICache(void* start, size_t size) { argument 62 if (size == 0) { 69 // fails in deserializer for a size of Page::kPageSize (1MB), 72 if (size >= static_cast<size_t>(Page::kPageSize)) { 75 res = syscall(__NR_cacheflush, start, size, ICACHE); 81 char *end = reinterpret_cast<char *>(start) + size; 88 res = syscall(__NR_cacheflush, start, size, ICACHE); 99 Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), start, size);
|
/external/webkit/Source/WebCore/svg/ |
H A D | SVGTransformList.cpp | 54 unsigned size = this->size(); local 55 if (!size) 58 for (unsigned i = 0; i < size; ++i) 67 unsigned size = this->size(); local 68 for (unsigned i = 0; i < size; ++i) {
|
/external/chromium/sdch/open-vcdiff/src/ |
H A D | encodetable.cc | 119 // instructions_and_sizes_, followed by a representation of its size 120 // if the opcode does not implicitly give the instruction size. 123 // of which contains the opcode 0x02 (ADD size 1). Because that was the 125 // EncodeInstruction is then called with inst = VCD_COPY, size = 4, mode = 0. 127 // opcode 0xA3 (ADD size 1 + COPY size 4 mode 0). 130 // have implicit sizes, meaning that the size of the instruction will not 134 // double-instruction opcode (say, COPY size 0 mode 0 + ADD size 0) 135 // followed by the size o 140 EncodeInstruction(VCDiffInstructionType inst, size_t size, unsigned char mode) argument 210 Add(const char* data, size_t size) argument 216 Copy(int32_t offset, size_t size) argument 245 Run(size_t size, unsigned char byte) argument 251 CalculateLengthOfSizeAsVarint(size_t size) argument 255 AppendSizeToString(size_t size, string* out) argument 259 AppendSizeToOutputString( size_t size, OutputStringInterface* out) argument [all...] |
/external/eigen/Eigen/src/Eigen2Support/ |
H A D | VectorBlock.h | 19 MatrixBase<Derived>::start(Index size) argument 22 return VectorBlock<Derived>(derived(), 0, size); 28 MatrixBase<Derived>::start(Index size) const 31 return VectorBlock<const Derived>(derived(), 0, size); 37 MatrixBase<Derived>::end(Index size) argument 40 return VectorBlock<Derived>(derived(), this->size() - size, size); 46 MatrixBase<Derived>::end(Index size) const 49 return VectorBlock<const Derived>(derived(), this->size() [all...] |
/external/kernel-headers/original/asm-generic/ |
H A D | ioctl.h | 5 * size of the parameter structure in the lower 14 bits of the 7 * Encoding the size of the parameter structure in the ioctl request 11 * NOTE: This limits the max parameter size to 16kB -1 ! 44 #define _IOC(dir,type,nr,size) \ 48 ((size) << _IOC_SIZESHIFT)) 50 /* provoke compile error for invalid uses of size argument */ 59 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) 60 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) [all...] |
/external/kernel-headers/original/asm-mips/ |
H A D | ioctl.h | 57 #define _IOC(dir, type, nr, size) \ 61 ((size) << _IOC_SIZESHIFT)) 63 /* provoke compile error for invalid uses of size argument */ 72 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) 73 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 74 #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 75 #define _IOR_BAD(type, nr, size) _IO [all...] |
/external/valgrind/main/coregrind/m_gdbserver/ |
H A D | valgrind-low-amd64.c | 153 transfer_direction dir, int size, Bool *mod) 165 case 0: VG_(transfer) (&amd64->guest_RAX, buf, dir, size, mod); break; 166 case 1: VG_(transfer) (&amd64->guest_RBX, buf, dir, size, mod); break; 167 case 2: VG_(transfer) (&amd64->guest_RCX, buf, dir, size, mod); break; 168 case 3: VG_(transfer) (&amd64->guest_RDX, buf, dir, size, mod); break; 169 case 4: VG_(transfer) (&amd64->guest_RSI, buf, dir, size, mod); break; 170 case 5: VG_(transfer) (&amd64->guest_RDI, buf, dir, size, mod); break; 171 case 6: VG_(transfer) (&amd64->guest_RBP, buf, dir, size, mod); break; 172 case 7: VG_(transfer) (&amd64->guest_RSP, buf, dir, size, mod); break; 173 case 8: VG_(transfer) (&amd64->guest_R8, buf, dir, size, mo 152 transfer_register(ThreadId tid, int abs_regno, void * buf, transfer_direction dir, int size, Bool *mod) argument [all...] |
H A D | valgrind-low-ppc32.c | 180 transfer_direction dir, int size, Bool *mod) 192 case 0: VG_(transfer) (&ppc32->guest_GPR0, buf, dir, size, mod); break; 193 case 1: VG_(transfer) (&ppc32->guest_GPR1, buf, dir, size, mod); break; 194 case 2: VG_(transfer) (&ppc32->guest_GPR2, buf, dir, size, mod); break; 195 case 3: VG_(transfer) (&ppc32->guest_GPR3, buf, dir, size, mod); break; 196 case 4: VG_(transfer) (&ppc32->guest_GPR4, buf, dir, size, mod); break; 197 case 5: VG_(transfer) (&ppc32->guest_GPR5, buf, dir, size, mod); break; 198 case 6: VG_(transfer) (&ppc32->guest_GPR6, buf, dir, size, mod); break; 199 case 7: VG_(transfer) (&ppc32->guest_GPR7, buf, dir, size, mod); break; 200 case 8: VG_(transfer) (&ppc32->guest_GPR8, buf, dir, size, mo 179 transfer_register(ThreadId tid, int abs_regno, void * buf, transfer_direction dir, int size, Bool *mod) argument [all...] |
/external/compiler-rt/lib/asan/ |
H A D | asan_malloc_linux.cc | 25 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size) 27 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) 28 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size) 29 DECLARE_REAL_AND_INTERCEPTOR(void*, memalign, uptr boundary, uptr size) 72 INTERCEPTOR(void*, malloc, uptr size) { argument 74 return asan_malloc(size, &stack); 77 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument 83 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; 90 return asan_calloc(nmemb, size, &stack); 93 INTERCEPTOR(void*, realloc, void *ptr, uptr size) { [all...] |
/external/dropbear/libtomcrypt/src/pk/asn1/der/set/ |
H A D | der_encode_setof.c | 22 unsigned long size; member in struct:edge 32 r = XMEMCMP(A->start, B->start, MIN(A->size, B->size)); 34 if (r == 0 && A->size != B->size) { 35 if (A->size > B->size) { 36 for (x = B->size; x < A->size; x++) { 42 for (x = A->size; [all...] |
/external/skia/legacy/include/core/ |
H A D | SkBuffer.h | 18 The RBuffer is given the buffer to read from, with either a specified size 19 or no size (in which case no range checking is performed). It is iillegal 35 SkRBuffer(const void* data, size_t size) { argument 36 SkASSERT(data != 0 || size == 0); 39 fStop = (const char*)data + size; 46 /** Return the total size of the data pointer. Only defined if the length was 49 size_t size() const { return fStop - fData; } function in class:SkRBuffer 59 void read(void* buffer, size_t size) { argument 60 if (size) { 61 this->readNoSizeCheck(buffer, size); 97 SkWBuffer(void* data, size_t size) argument 105 reset(void* data, size_t size) argument 115 write(const void* buffer, size_t size) argument [all...] |
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
H A D | FluidSimHeightMap.java | 66 * @param size
67 * size the size of the terrain to be generated
85 * if size of the terrain is not greater that zero, or number of
89 public FluidSimHeightMap(int size, int iterations, float minInitialHeight, float maxInitialHeight, float viscosity, float waveSpeed, float timestep, float nodeDistance, long seed) throws Exception {
argument 90 if (size <= 0 || iterations <= 0 || minInitialHeight >= maxInitialHeight) {
92 "Either size of the terrain is not greater that zero, "
98 this.size = size;
115 * @param size
123 FluidSimHeightMap(int size, int iterations) argument [all...] |
/external/eigen/test/ |
H A D | map.cpp | 21 Index size = m.size(); local 24 Scalar* array1 = internal::aligned_new<Scalar>(size); 25 Scalar* array2 = internal::aligned_new<Scalar>(size); 26 Scalar* array3 = new Scalar[size+1]; 29 Map<VectorType, Aligned>(array1, size) = VectorType::Random(size); 30 Map<VectorType, Aligned>(array2, size) = Map<VectorType,Aligned>(array1, size); 31 Map<VectorType>(array3unaligned, size) 52 Index rows = m.rows(), cols = m.cols(), size = rows*cols; local 81 Index size = m.size(); local [all...] |