Home
last modified time | relevance | path

Searched refs:ALIGNMENT (Results 1 – 25 of 27) sorted by relevance

12

/external/oss-fuzz/projects/jbig2dec/
Djbig2_fuzzer.cc26 #define ALIGNMENT ((size_t) 16) macro
50 if (size > SIZE_MAX - ALIGNMENT) in jbig2_fuzzer_alloc()
52 if (size + ALIGNMENT > MAX_ALLOCATION - used) in jbig2_fuzzer_alloc()
53 return jbig2_fuzzer_reached_limit(0, size + ALIGNMENT); in jbig2_fuzzer_alloc()
55 ptr = (char *) malloc(size + ALIGNMENT); in jbig2_fuzzer_alloc()
60 used += size + ALIGNMENT; in jbig2_fuzzer_alloc()
62 return ptr + ALIGNMENT; in jbig2_fuzzer_alloc()
71 if (ptr < (void *) ALIGNMENT) in jbig2_fuzzer_free()
74 ptr = (char *) ptr - ALIGNMENT; in jbig2_fuzzer_free()
77 used -= size + ALIGNMENT; in jbig2_fuzzer_free()
[all …]
/external/oss-fuzz/projects/mupdf/
Dpdf_fuzzer.cc26 #define ALIGNMENT ((size_t) 16) macro
50 if (size > SIZE_MAX - ALIGNMENT) in fz_malloc_ossfuzz()
52 if (size + ALIGNMENT > MAX_ALLOCATION - used) in fz_malloc_ossfuzz()
53 return fz_limit_reached_ossfuzz(0, size + ALIGNMENT); in fz_malloc_ossfuzz()
55 ptr = (char *) malloc(size + ALIGNMENT); in fz_malloc_ossfuzz()
60 used += size + ALIGNMENT; in fz_malloc_ossfuzz()
62 return ptr + ALIGNMENT; in fz_malloc_ossfuzz()
71 if (ptr < (void *) ALIGNMENT) in fz_free_ossfuzz()
74 ptr = (char *) ptr - ALIGNMENT; in fz_free_ossfuzz()
77 used -= size + ALIGNMENT; in fz_free_ossfuzz()
[all …]
/external/eigen/test/
Ddynalloc.cpp13 #define ALIGNMENT EIGEN_MAX_ALIGN_BYTES macro
15 #define ALIGNMENT 1 macro
25 VERIFY(internal::UIntPtr(p)%ALIGNMENT==0); in check_handmade_aligned_malloc()
34 for(int i = ALIGNMENT; i < 1000; i++) in check_aligned_malloc()
37 VERIFY(internal::UIntPtr(p)%ALIGNMENT==0); in check_aligned_malloc()
46 for(int i = ALIGNMENT; i < 1000; i++) in check_aligned_new()
49 VERIFY(internal::UIntPtr(p)%ALIGNMENT==0); in check_aligned_new()
58 for(int i = ALIGNMENT; i < 400; i++) in check_aligned_stack_alloc()
61 VERIFY(internal::UIntPtr(p)%ALIGNMENT==0); in check_aligned_stack_alloc()
87 if(T::SizeAtCompileTime % ALIGNMENT == 0) in check_dynaligned()
[all …]
/external/llvm-project/lld/test/MachO/
Dcommon-symbol-coalescing.s13 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=SMALLER-ALIGNMENT
15 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=SMALLER-ALIGNMENT
20 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=LARGER-ALIGNMENT
22 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=SMALLER-ALIGNMENT
25 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=LARGER-ALIGNMENT
27 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=LARGER-ALIGNMENT
30 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=LARGER-ALIGNMENT
32 # RUN: llvm-objdump --section-headers --syms %t/test | FileCheck %s --check-prefix=LARGER-ALIGNMENT
34 # SMALLER-ALIGNMENT-LABEL: Sections:
35 # SMALLER-ALIGNMENT: __common {{[0-9a-f]+}} [[#%x, COMMON_START:]] BSS
[all …]
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DBindingsHelper.java17 public static final int ALIGNMENT = 8; field in BindingsHelper
79 return (size + ALIGNMENT - 1) & ~(ALIGNMENT - 1); in align()
86 return (size + ALIGNMENT - 1) & ~(ALIGNMENT - 1); in align()
DEncoder.java58 assert bufferSize % BindingsHelper.ALIGNMENT == 0; in EncoderState()
344 byte[] bytes = new byte[(v.length + 7) / BindingsHelper.ALIGNMENT]; in encode()
346 for (int j = 0; j < BindingsHelper.ALIGNMENT; ++j) { in encode()
347 int booleanIndex = BindingsHelper.ALIGNMENT * i + j; in encode()
DDecoder.java78 if (start % BindingsHelper.ALIGNMENT != 0) { in claimMemory()
334 byte[] bytes = new byte[(si.elementsOrVersion + 7) / BindingsHelper.ALIGNMENT]; in readBooleans()
339 for (int j = 0; j < BindingsHelper.ALIGNMENT; ++j) { in readBooleans()
340 int booleanIndex = i * BindingsHelper.ALIGNMENT + j; in readBooleans()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DBindingsHelperTest.java53 for (int i = 0; i < 3 * BindingsHelper.ALIGNMENT; ++i) { in testAlign()
56 Assert.assertTrue(j % BindingsHelper.ALIGNMENT == 0); in testAlign()
57 Assert.assertTrue(j - i < BindingsHelper.ALIGNMENT); in testAlign()
/external/libdrm/libkms/
Dradeon.c42 #define ALIGNMENT 512 macro
99 pitch = (pitch + ALIGNMENT - 1) & ~(ALIGNMENT - 1); in radeon_bo_create()
112 arg.alignment = ALIGNMENT; in radeon_bo_create()
/external/xz-java/src/org/tukaani/xz/
DX86Options.java19 private static final int ALIGNMENT = 1; field in X86Options
22 super(ALIGNMENT); in X86Options()
DARMThumbOptions.java19 private static final int ALIGNMENT = 2; field in ARMThumbOptions
22 super(ALIGNMENT); in ARMThumbOptions()
DIA64Options.java19 private static final int ALIGNMENT = 16; field in IA64Options
22 super(ALIGNMENT); in IA64Options()
DARMOptions.java19 private static final int ALIGNMENT = 4; field in ARMOptions
22 super(ALIGNMENT); in ARMOptions()
DPowerPCOptions.java19 private static final int ALIGNMENT = 4; field in PowerPCOptions
22 super(ALIGNMENT); in PowerPCOptions()
DSPARCOptions.java19 private static final int ALIGNMENT = 4; field in SPARCOptions
22 super(ALIGNMENT); in SPARCOptions()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Deigen_tensor_reduced_instantiations_google.h116 #define TENSOR_CONTRACTION_DISPATCH(METHOD, ALIGNMENT, ARGS) \ argument
120 METHOD<true, true, false, ALIGNMENT> ARGS; \
Deigen_tensor_reduced_instantiations_oss.h116 #define TENSOR_CONTRACTION_DISPATCH(METHOD, ALIGNMENT, ARGS) \ argument
120 METHOD<true, true, false, ALIGNMENT> ARGS; \
/external/python/cpython3/Python/
Dpyarena.c14 #define ALIGNMENT 8 macro
86 b->ab_offset = (char *)_Py_ALIGN_UP(b->ab_mem, ALIGNMENT) - in block_new()
105 size = _Py_SIZE_ROUND_UP(size, ALIGNMENT); in block_alloc()
/external/python/cpython2/Python/
Dpyarena.c15 #define ALIGNMENT 8 macro
16 #define ALIGNMENT_MASK (ALIGNMENT - 1)
/external/OpenCL-CTS/test_conformance/basic/
Dtest_progvar.cpp25 #define ALIGNMENT 128 macro
951 cl_uchar* write_data = (cl_uchar*)align_malloc(write_data_size, ALIGNMENT); in l_write_read_for_type()
952 cl_uchar* read_data = (cl_uchar*)align_malloc(read_data_size, ALIGNMENT); in l_write_read_for_type()
1101 cl_uchar* write_data = (cl_uchar*)align_malloc(write_data_size, ALIGNMENT); in l_init_write_read_for_type()
1102 cl_uchar* read_data = (cl_uchar*)align_malloc(read_data_size, ALIGNMENT); in l_init_write_read_for_type()
1287 cl_uchar* buffer = (cl_uchar*) align_malloc( arr_size, ALIGNMENT ); in l_capacity()
1461 cl_uchar* uchar_data = (cl_uchar*)align_malloc(sizeof(cl_uchar), ALIGNMENT); in l_user_type()
1462 cl_uint* uint_data = (cl_uint*)align_malloc(sizeof(cl_uint), ALIGNMENT); in l_user_type()
/external/llvm-project/llvm/test/DebugInfo/X86/
Daligned_stack_var.ll8 ; and ALIGNMENT,%rsp ; (%rsp and %rbp are different now)
/external/llvm/test/DebugInfo/X86/
Daligned_stack_var.ll8 ; and ALIGNMENT,%rsp ; (%rsp and %rbp are different now)
/external/swiftshader/third_party/marl/include/marl/
Dmemory.h46 template <size_t SIZE, size_t ALIGNMENT>
48 struct alignas(ALIGNMENT) type {
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs927 const ALIGNMENT: usize = 64; in elem_exp_consttime() constant
928 assert_eq!(ALIGNMENT % LIMB_BYTES, 0); in elem_exp_consttime()
929 let mut table = vec![0; ((TABLE_ENTRIES + 3) * num_limbs) + ALIGNMENT]; in elem_exp_consttime()
931 let misalignment = (table.as_ptr() as usize) % ALIGNMENT; in elem_exp_consttime()
932 let table = &mut table[((ALIGNMENT - misalignment) / LIMB_BYTES)..]; in elem_exp_consttime()
933 assert_eq!((table.as_ptr() as usize) % ALIGNMENT, 0); in elem_exp_consttime()
/external/python/cpython2/Objects/
Dobmalloc.c157 #define ALIGNMENT 8 /* must be 2^N */ macro
159 #define ALIGNMENT_MASK (ALIGNMENT - 1)
180 #define NB_SMALL_SIZE_CLASSES (SMALL_REQUEST_THRESHOLD / ALIGNMENT)

12