/prebuilts/ndk/r11/platforms/android-19/arch-arm/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-19/arch-mips/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-19/arch-x86/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-3/arch-arm/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-4/arch-arm/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-5/arch-arm/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-8/arch-arm/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-9/arch-arm/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-9/arch-mips/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/prebuilts/ndk/r11/platforms/android-9/arch-x86/usr/include/linux/ |
circ_buf.h | 21 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 23 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 25 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;}) 27 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)-1); n <= end ? n : end+1;} [all...] |
/external/mesa3d/src/gallium/auxiliary/rbug/ |
rbug_internal.h | 40 int rbug_connection_write(struct rbug_connection *con, void *data, uint32_t size); 51 #define LEN(size) \ 53 PAD(__len, size); \ 54 __len += size; \ 57 #define LEN_ARRAY(size, name) \ 60 PAD(__len, size); \ 61 __len += size * name##_len; \ 64 #define WRITE(size, type, name) \ 66 PAD(__pos, size); \ 68 __pos += size; \ [all...] |
/external/zopfli/src/zopfli/ |
util.h | 36 The window size for deflate. Must be a power of two. This should be 32768, the 44 window size must be a power of two. 53 Dividing into huge blocks hurts compression, but not much relative to the size. 84 consumes a lot of memory but speeds it up. No effect on compression size. 141 Appends value to dynamically allocated memory, doubling its allocation size 146 size: pointer to the size of the array to append to, type size_t*. This is the 147 size that you consider the array to be, not the internal allocation size. 148 Precondition: allocated size of data is at least a power of two greater than o [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/ |
Alloc.h | 11 void *MyAlloc(size_t size);
18 void *MidAlloc(size_t size);
20 void *BigAlloc(size_t size);
25 #define MidAlloc(size) MyAlloc(size)
27 #define BigAlloc(size) MyAlloc(size)
|
Alloc.c | 23 void *MyAlloc(size_t size)
25 if (size == 0)
29 void *p = malloc(size);
30 fprintf(stderr, "\nAlloc %10d bytes, count = %10d, addr = %8X", size, g_allocCount++, (unsigned)p);
34 return malloc(size);
49 void *MidAlloc(size_t size)
51 if (size == 0)
54 fprintf(stderr, "\nAlloc_Mid %10d bytes; count = %10d", size, g_allocCountMid++);
56 return VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE);
82 SIZE_T size = 0; local [all...] |
/external/compiler-rt/test/asan/TestCases/ |
strcmp_strict.c | 11 size_t size = 100; local 13 char *s1 = (char*)malloc(size); 14 memset(s1, fill, size); 15 char *s2 = (char*)malloc(size); 16 memset(s2, fill, size); 17 s1[size - 1] = 'z'; 18 s2[size - 1] = 'x'; 21 // CHECK: READ of size 101
|
/external/libldac/src/ |
memory_ldac.c | 25 size_t size) 28 size = (((size-1)/LDAC_ALLOC_LINE)+1) * LDAC_ALLOC_LINE; 31 return size; 40 size_t size) 46 p_sfinfo->p_mempos += nmemb * align_ldac(size); 49 p_tmp = calloc(nmemb, size);
|
/external/lzma/C/ |
Alloc.h | 13 void *MyAlloc(size_t size);
20 void *MidAlloc(size_t size);
22 void *BigAlloc(size_t size);
27 #define MidAlloc(size) MyAlloc(size)
29 #define BigAlloc(size) MyAlloc(size)
|
Alloc.c | 23 void *MyAlloc(size_t size)
25 if (size == 0)
29 void *p = malloc(size);
30 fprintf(stderr, "\nAlloc %10d bytes, count = %10d, addr = %8X", size, g_allocCount++, (unsigned)p);
34 return malloc(size);
49 void *MidAlloc(size_t size)
51 if (size == 0)
54 fprintf(stderr, "\nAlloc_Mid %10d bytes; count = %10d", size, g_allocCountMid++);
56 return VirtualAlloc(0, size, MEM_COMMIT, PAGE_READWRITE);
82 SIZE_T size = 0; local [all...] |
/external/tpm2/ |
MemoryLib.c | 25 // know the maximum size of the destination buffer so that there is no possibility of buffer overrun. 31 UINT32 size, // IN: number of octets to moved 32 UINT32 dSize // IN: size of the receive buffer 39 pAssert(size <= dSize); 42 dSize -= size; 43 if (p>q || (p+size <= q)) 45 while(size--) 52 p += size; 53 q += size; 55 while (size-- [all...] |
/toolchain/binutils/binutils-2.25/ld/testsuite/ld-size/ |
size.exp | 1 # Expect script for linker support of size relocations. 24 # Size relications have only been implemented for the ix86 and x86_64, 34 verbose "Size relocations tests not run - no target support" 54 verbose "Native size relocation tests not run - not a native toolchain" 60 verbose "Native size relocation tests not run - no compiler available" 67 {size-1a.c size-1b.c} {} "libsize-1.so"} 70 {size-2a.c size-2b.c} {} "libsize-2.so"} 73 {size-3a.c} {} "libsize-3a.so" [all...] |
/external/google-breakpad/src/google_breakpad/common/ |
minidump_size.h | 47 static size_t size() { return sizeof(T); } function in class:google_breakpad::minidump_size 50 // Explicit specializations for variable-length types. The size returned 51 // for these should be the size for an object without its variable-length 57 static size_t size() { return MDString_minsize; } function in class:google_breakpad::minidump_size 63 static size_t size() { return MDRawThreadList_minsize; } function in class:google_breakpad::minidump_size 69 static size_t size() { return MDCVInfoPDB20_minsize; } function in class:google_breakpad::minidump_size 75 static size_t size() { return MDCVInfoPDB70_minsize; } function in class:google_breakpad::minidump_size 81 static size_t size() { return MDImageDebugMisc_minsize; } function in class:google_breakpad::minidump_size 87 static size_t size() { return MDRawModuleList_minsize; } function in class:google_breakpad::minidump_size 93 static size_t size() { return MDRawMemoryList_minsize; function in class:google_breakpad::minidump_size 102 static size_t size() { return MD_MODULE_SIZE; } function in class:google_breakpad::minidump_size [all...] |
/external/webrtc/webrtc/modules/audio_processing/test/ |
protobuf_utils.cc | 16 // The "wire format" for the size is little-endian. Assume we're running on 21 int32_t size = 0; local 22 if (fread(&size, sizeof(size), 1, file) != 1) 24 if (size <= 0) 27 bytes->reset(new uint8_t[size]); 28 return fread(bytes->get(), sizeof((*bytes)[0]), size, file); 34 size_t size = ReadMessageBytesFromFile(file, &bytes); local 35 if (!size) 39 return msg->ParseFromArray(bytes.get(), size); [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
SizeFileFilter.java | 23 * Filters files based on size, can filter either smaller files or 27 * current directory whose size is greater than 1 MB: 43 /** The size threshold. */ 44 private final long size; field in class:SizeFileFilter 49 * Constructs a new size file filter for files equal to or 50 * larger than a certain size. 52 * @param size the threshold size of the files 53 * @throws IllegalArgumentException if the size is negative 55 public SizeFileFilter(long size) { [all...] |
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/ |
BaseMemAllocation.c | 23 void *malloc (size_t size)
25 return AllocatePool ((UINTN) size);
29 void *realloc (void *ptr, size_t size)
32 // BUG: hardcode OldSize == size! We have no any knowledge about
33 // memory size of original pointer ptr.
35 return ReallocatePool ((UINTN) size, (UINTN) size, ptr);
|
/external/pdfium/core/fxcrt/ |
fxcrt_stream.cpp | 9 bool IFX_SeekableWriteStream::WriteBlock(const void* pData, size_t size) { 10 return WriteBlock(pData, GetSize(), size); 21 size_t IFX_SeekableReadStream::ReadBlock(void* buffer, size_t size) { 25 bool IFX_SeekableStream::WriteBlock(const void* buffer, size_t size) { 26 return WriteBlock(buffer, GetSize(), size);
|