HomeSort by relevance Sort by last modified time
    Searched refs:size (Results 51 - 75 of 49887) sorted by null

1 23 4 5 6 7 8 91011>>

  /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 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...]
Sort.c 8 #define HeapSortDown(p, k, size, temp) \
11 if (s > size) break; \
12 if (s < size && p[s + 1] > p[s]) s++; \
17 void HeapSort(UInt32 *p, size_t size)
19 if (size <= 1)
23 size_t i = size / 2;
28 HeapSortDown(p, k, size, temp)
36 UInt32 temp = p[size];
37 p[size--] = p[1];
38 HeapSortDown(p, k, size, temp)
    [all...]
  /external/skia/src/ports/
SkMemory_mozalloc.cpp 29 void* sk_realloc_throw(void* addr, size_t size) {
30 return moz_xrealloc(addr, size);
33 void* sk_malloc_flags(size_t size, unsigned flags) {
35 return (flags & SK_MALLOC_THROW) ? moz_xcalloc(size, 1) : calloc(size, 1);
37 return (flags & SK_MALLOC_THROW) ? moz_xmalloc(size) : malloc(size);
  /external/skqp/src/ports/
SkMemory_mozalloc.cpp 29 void* sk_realloc_throw(void* addr, size_t size) {
30 return moz_xrealloc(addr, size);
33 void* sk_malloc_flags(size_t size, unsigned flags) {
35 return (flags & SK_MALLOC_THROW) ? moz_xcalloc(size, 1) : calloc(size, 1);
37 return (flags & SK_MALLOC_THROW) ? moz_xmalloc(size) : malloc(size);
  /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.27/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"
72 {size-1a.c size-1b.c} \
80 {size-2a.c size-2b.c} \
87 {size-3a.c}
    [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/libmojo/ui/gfx/geometry/
size_conversions.cc 11 Size ToFlooredSize(const SizeF& size) {
12 int w = ToFlooredInt(size.width());
13 int h = ToFlooredInt(size.height());
14 return Size(w, h);
17 Size ToCeiledSize(const SizeF& size) {
18 int w = ToCeiledInt(size.width());
19 int h = ToCeiledInt(size.height());
20 return Size(w, h)
    [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/libcxx/fuzzing/
fuzzing.h 20 int sort (const uint8_t *data, size_t size);
21 int stable_sort (const uint8_t *data, size_t size);
22 int partition (const uint8_t *data, size_t size);
23 int partition_copy (const uint8_t *data, size_t size);
24 int stable_partition (const uint8_t *data, size_t size);
25 int unique (const uint8_t *data, size_t size);
26 int unique_copy (const uint8_t *data, size_t size);
30 int nth_element (const uint8_t *data, size_t size);
31 int partial_sort (const uint8_t *data, size_t size);
32 int partial_sort_copy (const uint8_t *data, size_t size);
    [all...]
  /external/libmojo/mojo/public/cpp/bindings/lib/
fixed_buffer.cc 12 FixedBufferForTesting::FixedBufferForTesting(size_t size) {
13 size = internal::Align(size);
15 void* ptr = calloc(size, 1);
16 Initialize(ptr, size);
  /frameworks/av/drm/mediadrm/plugins/clearkey/common/
Utils.cpp 22 if (lhs.size() < rhs.size()) {
24 } else if (lhs.size() > rhs.size()) {
27 return memcmp((void *)lhs.array(), (void *)rhs.array(), rhs.size()) < 0;
  /external/vboot_reference/firmware/2lib/
2common.c 14 int vb2_safe_memcmp(const void *s1, const void *s2, size_t size)
20 if (0 == size)
27 while (size--)
33 int vb2_align(uint8_t **ptr, uint32_t *size, uint32_t align, uint32_t want_size)
41 if (*size < offs)
45 *size -= offs;
48 if (*size < want_size)
54 void vb2_workbuf_init(struct vb2_workbuf *wb, uint8_t *buf, uint32_t size)
57 wb->size = size;
    [all...]
  /toolchain/binutils/binutils-2.27/gold/
reloc-types.h 34 // Pick the ELF relocation accessor class and the size based on
37 template<int sh_type, int size, bool big_endian>
40 template<int size, bool big_endian>
41 struct Reloc_types<elfcpp::SHT_REL, size, big_endian>
43 typedef typename elfcpp::Rel<size, big_endian> Reloc;
44 typedef typename elfcpp::Rel_write<size, big_endian> Reloc_write;
45 static const int reloc_size = elfcpp::Elf_sizes<size>::rel_size;
47 static inline typename elfcpp::Elf_types<size>::Elf_Swxword
51 static inline typename elfcpp::Elf_types<size>::Elf_Swxword
57 typename elfcpp::Elf_types<size>::Elf_Swxword
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_malloc_mac.cc 27 #define COMMON_MALLOC_MEMALIGN(alignment, size) \
29 user_alloc(cur_thread(), StackTrace::GetCurrentPc(), size, alignment)
30 #define COMMON_MALLOC_MALLOC(size) \
31 if (cur_thread()->in_symbolizer) return InternalAlloc(size); \
32 SCOPED_INTERCEPTOR_RAW(malloc, size); \
33 void *p = user_alloc(thr, pc, size)
34 #define COMMON_MALLOC_REALLOC(ptr, size) \
35 if (cur_thread()->in_symbolizer) return InternalRealloc(ptr, size); \
36 SCOPED_INTERCEPTOR_RAW(realloc, ptr, size); \
37 void *p = user_realloc(thr, pc, ptr, size)
    [all...]
  /external/speex/libspeex/
stack_alloc.h 51 * @def ALIGN(stack, size)
53 * Aligns the stack to a 'size' boundary
56 * @param size New size boundary
60 * @def PUSH(stack, size, type)
62 * Allocates 'size' elements of type 'type' on the stack
65 * @param size Number of elements
78 * @def ALLOC(var, size, type)
80 * Allocate 'size' elements of 'type' on stack
83 * @param size Number of element
    [all...]
  /toolchain/binutils/binutils-2.27/gas/testsuite/gas/arm/
bundle-lock.s 10 .macro offset_sequence which, size, offset
12 \which\()_sequence_\size\()_offset_\offset\():
16 test_sequence \size
19 .macro test_offsets_arm size
21 offset_sequence arm, \size, 0
22 offset_sequence arm, \size, 4
23 offset_sequence arm, \size, 8
24 offset_sequence arm, \size, 12
27 .macro test_offsets_thumb size
29 offset_sequence thumb, \size,
    [all...]
  /frameworks/native/libs/gui/
BufferItem.cpp 65 static void addAligned(size_t& size, T /* value */) {
66 size = FlattenableUtils::align<sizeof(T)>(size);
67 size += sizeof(T);
71 size_t size = 0; local
72 addAligned(size, mCrop);
73 addAligned(size, mTransform);
74 addAligned(size, mScalingMode);
75 addAligned(size, low32(mTimestamp));
76 addAligned(size, high32(mTimestamp))
93 size_t size = sizeof(uint32_t); \/\/ Flags local
    [all...]

Completed in 645 milliseconds

1 23 4 5 6 7 8 91011>>