Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 25 of 85) sorted by relevance

1234

/reactos/modules/rostests/winetests/msvcrt/
H A Dheap.c42 mem = p_aligned_malloc(size, alignment); in test_aligned_malloc()
44 if ((alignment & (alignment - 1)) == 0) in test_aligned_malloc()
51 ok(((DWORD_PTR)mem & (alignment ? alignment - 1 : 0)) == 0, in test_aligned_malloc()
71 if ((alignment & (alignment - 1)) == 0) in test_aligned_offset_malloc()
81 ok(((DWORD_PTR)((char *)mem + offset) & (alignment ? alignment - 1 : 0)) == 0, in test_aligned_offset_malloc()
102 if ((alignment & (alignment - 1)) == 0) in test_aligned_realloc()
118 ok(((DWORD_PTR)mem & (alignment ? alignment - 1 : 0)) == 0, in test_aligned_realloc()
133 ok(((DWORD_PTR)mem2 & (alignment ? alignment - 1 : 0)) == 0, in test_aligned_realloc()
174 if ((alignment & (alignment - 1)) == 0) in test_aligned_offset_realloc()
190 ok(((DWORD_PTR)((char *)mem + offset) & (alignment ? alignment - 1 : 0)) == 0, in test_aligned_offset_realloc()
[all …]
/reactos/sdk/lib/ucrt/heap/
H A Dalign.cpp47 _In_ size_t alignment
60 _In_ size_t alignment,
119 size_t const alignment in _aligned_malloc_base() argument
209 size_t const alignment in _aligned_realloc_base() argument
248 size_t const alignment in _aligned_recalloc_base() argument
549 size_t const alignment in _aligned_malloc() argument
561 size_t const alignment, in _aligned_msize() argument
573 size_t const alignment, in _aligned_offset_malloc() argument
587 size_t const alignment, in _aligned_offset_realloc() argument
616 size_t const alignment in _aligned_realloc() argument
[all …]
H A Ddebug_heap.cpp1789 size_t const alignment, in _aligned_malloc_dbg() argument
1799 size_t alignment, in _aligned_offset_malloc_dbg() argument
1808 alignment = (alignment > sizeof(uintptr_t) ? alignment : sizeof(uintptr_t)) - 1; in _aligned_offset_malloc_dbg()
1830 size_t const alignment, in _aligned_realloc_dbg() argument
1842 size_t const alignment, in _aligned_recalloc_dbg() argument
1853 size_t alignment, in _aligned_offset_realloc_dbg() argument
1895 alignment = (alignment > sizeof(uintptr_t) ? alignment : sizeof(uintptr_t)) -1; in _aligned_offset_realloc_dbg()
1906 r_ptr = ((ptr + nonuser_size + offset) & ~alignment) - offset; in _aligned_offset_realloc_dbg()
1919 size_t alignment, in _aligned_msize_dbg() argument
1941 alignment = (alignment > sizeof(uintptr_t) ? alignment : sizeof(uintptr_t)) - 1; in _aligned_msize_dbg()
[all …]
/reactos/sdk/lib/crt/wine/
H A Dheap.c59 #define ALIGN_PTR(ptr, alignment, offset) ((void *) \ argument
61 ~(alignment - 1)) - offset))
396 if(alignment < sizeof(void*)) in _aligned_msize()
397 alignment = sizeof(void*); in _aligned_msize()
587 if ((alignment & (alignment - 1)) != 0) in _aligned_offset_malloc()
601 if (alignment < sizeof(void *)) in _aligned_offset_malloc()
602 alignment = sizeof(void *); in _aligned_offset_malloc()
626 TRACE("(%Iu, %Iu)\n", size, alignment); in _aligned_malloc()
644 if ((alignment & (alignment - 1)) != 0) in _aligned_offset_realloc()
664 if (alignment < sizeof(void *)) in _aligned_offset_realloc()
[all …]
/reactos/sdk/include/psdk/
H A Dgdiplusstringformat.h70 StringAlignment alignment; in GetAlignment() local
71 SetStatus(DllExports::GdipGetStringFormatAlign(nativeFormat, &alignment)); in GetAlignment()
72 return alignment; in GetAlignment()
116 StringAlignment alignment; in GetLineAlignment() local
117 SetStatus(DllExports::GdipGetStringFormatLineAlign(nativeFormat, &alignment)); in GetLineAlignment()
118 return alignment; in GetLineAlignment()
/reactos/dll/opengl/mesa/
H A Dimage.c241 GLint alignment; /* 1, 2 or 4 */ in gl_pixel_addr_in_image() local
258 alignment = packing->Alignment; in gl_pixel_addr_in_image()
272 bytes_per_row = alignment in gl_pixel_addr_in_image()
273 * CEILING( comp_per_pixel*pixels_per_row, 8*alignment ); in gl_pixel_addr_in_image()
282 if (bytes_per_comp>=alignment) { in gl_pixel_addr_in_image()
289 comps_per_row = alignment / bytes_per_comp in gl_pixel_addr_in_image()
290 * CEILING( bytes_per_row, alignment ); in gl_pixel_addr_in_image()
/reactos/sdk/lib/drivers/wdf/kmdf/src/dma/base/
H A Dfxdmaenabler.cpp611 ULONG alignment; in ConfigureBusMasterAdapters() local
655 alignment = readDmaDesc->AdapterObject->DmaOperations-> in ConfigureBusMasterAdapters()
669 alignment > 0) { in ConfigureBusMasterAdapters()
670 alignment -= 1; in ConfigureBusMasterAdapters()
674 alignment); in ConfigureBusMasterAdapters()
691 alignment = simplexDmaDesc->AdapterObject->DmaOperations-> in ConfigureBusMasterAdapters()
705 alignment > 0) { in ConfigureBusMasterAdapters()
706 alignment -= 1; in ConfigureBusMasterAdapters()
710 alignment); in ConfigureBusMasterAdapters()
/reactos/modules/rosapps/applications/explorer-old/dialogs/
H A Dsettings.cpp129 int alignment = id - IDC_ICON_ALIGN_0; in Command() local
131 if (alignment != _alignment_tmp) { in Command()
132 _alignment_tmp = alignment; in Command()
136 SendMessage(g_Globals._hwndShellView, PM_SET_ICON_ALGORITHM, alignment, 0); in Command()
/reactos/sdk/tools/widl/
H A Dtypegen.c45 #define ROUND_SIZE(size, alignment) (((size) + ((alignment) - 1)) & ~((alignment) - 1)) argument
47 #define ROUNDING(size, alignment) (((alignment) - 1) - (((size) + ((alignment) - 1)) & ((alignment)… argument
3787 *alignment = 0; in get_required_buffer_size_type()
3803 *alignment = 4; in get_required_buffer_size_type()
3809 *alignment = 4; in get_required_buffer_size_type()
3904 *alignment = 0; in get_required_buffer_size()
4028 alignment = 1; in print_phase_basetype()
4034 alignment = 2; in print_phase_basetype()
4044 alignment = 4; in print_phase_basetype()
4049 alignment = 8; in print_phase_basetype()
[all …]
H A Dwrite_msft.c1611 int alignment; in add_var_desc() local
1746 alignment = (typeinfo->typeinfo->typekind >> 11) & 0x1f; in add_var_desc()
1747 if (alignment < var_alignment) { in add_var_desc()
1748 alignment = var_alignment; in add_var_desc()
1750 typeinfo->typeinfo->typekind |= alignment << 11 | alignment << 6; in add_var_desc()
1767 typeinfo->typeinfo->size = (typeinfo->datawidth + (alignment - 1)) & ~(alignment - 1); in add_var_desc()
2189 unsigned int size, alignment = 0; in add_typedef_typeinfo() local
2206 size = type_memsize_and_alignment(type, &alignment); in add_typedef_typeinfo()
2213 msft_typeinfo->typeinfo->typekind |= (alignment << 11 | alignment << 6); in add_typedef_typeinfo()
/reactos/dll/win32/rpcrt4/
H A Dndr_marshall.c1902 unsigned char alignment; in array_buffer_size() local
2025 unsigned char alignment; in array_write_variance_and_marshall() local
2148 unsigned char alignment; in array_read_variance_and_unmarshall() local
2307 unsigned char alignment; in array_memory_size() local
4693 unsigned char alignment; member
5156 unsigned char alignment; member
5163 unsigned char alignment; member
5382 unsigned char alignment; in NdrVaryingArrayMarshall() local
5445 unsigned char alignment; in NdrVaryingArrayUnmarshall() local
5511 unsigned char alignment; in NdrVaryingArrayBufferSize() local
[all …]
H A Drpc_assoc.c227 #define ROUND_UP(value, alignment) (((value) + ((alignment) - 1)) & ~((alignment)-1)) argument
H A Drpc_message.c51 #define ROUND_UP_AMOUNT(value, alignment) \ argument
52 (((alignment) - (((value) % (alignment)))) % (alignment))
53 #define ROUND_UP(value, alignment) (((value) + ((alignment) - 1)) & ~((alignment)-1)) argument
/reactos/modules/rosapps/drivers/vfd/
H A Dvfdimg.c112 ULONG alignment; in VfdOpenImage() local
374 alignment = file_alignment.AlignmentRequirement; in VfdOpenImage()
403 alignment = FILE_WORD_ALIGNMENT; in VfdOpenImage()
423 = alignment; in VfdOpenImage()
/reactos/sdk/lib/3rdparty/freetype/src/pshinter/
H A Dpshglob.c551 PSH_Alignment alignment ) in psh_blues_snap_stem() argument
560 alignment->align = PSH_BLUE_ALIGN_NONE; in psh_blues_snap_stem()
579 alignment->align |= PSH_BLUE_ALIGN_TOP; in psh_blues_snap_stem()
580 alignment->align_top = zone->cur_ref; in psh_blues_snap_stem()
601 alignment->align |= PSH_BLUE_ALIGN_BOT; in psh_blues_snap_stem()
602 alignment->align_bot = zone->cur_ref; in psh_blues_snap_stem()
H A Dpshglob.h182 PSH_Alignment alignment );
/reactos/sdk/lib/drivers/virtio/
H A DVirtIOPCIModern.c50 size_t minlen, u32 alignment, in vio_modern_map_capability() argument
69 if (bar_offset & (alignment - 1)) { in vio_modern_map_capability()
70 DPrintf(0, "bar %i offset %u not aligned to %u\n", bar, bar_offset, alignment); in vio_modern_map_capability()
94 …*vio_modern_map_simple_capability(VirtIODevice *vdev, int cap_offset, size_t length, u32 alignment) in vio_modern_map_simple_capability() argument
100 alignment, in vio_modern_map_simple_capability()
/reactos/sdk/include/xdk/
H A Dhalfuncs.h67 ULONG alignment; in HalGetDmaAlignment() local
71 alignment = getDmaAlignment( DmaAdapter ); in HalGetDmaAlignment()
72 return alignment; in HalGetDmaAlignment()
/reactos/boot/freeldr/freeldr/
H A Duefi.cmake108 …k_options(uefildr PRIVATE -Wl,--exclude-all-symbols,--file-alignment,0x200,--section-alignment,0x2…
H A Dpcat.cmake207 …ptions(freeldr_pe PRIVATE -Wl,--exclude-all-symbols,--file-alignment,0x200,--section-alignment,0x2…
/reactos/sdk/lib/3rdparty/freetype/include/freetype/
H A Dftbitmap.h182 FT_Int alignment );
/reactos/sdk/lib/3rdparty/freetype/src/base/
H A Dftbitmap.c507 FT_Int alignment ) in FT_Bitmap_Convert() argument
549 if ( alignment > 0 ) in FT_Bitmap_Convert()
551 pad = (FT_Int)source->width % alignment; in FT_Bitmap_Convert()
553 pad = alignment - pad; in FT_Bitmap_Convert()
/reactos/sdk/lib/3rdparty/libmpg123/
H A Dframe.c18 #define aligned_pointer(p, type, alignment) align_the_pointer(p, alignment) argument
19 static void *align_the_pointer(void *base, unsigned int alignment) in align_the_pointer() argument
27 uintptr_t aoff = baseval % alignment; in align_the_pointer()
30 base, (unsigned int)aoff, alignment); in align_the_pointer()
32 if(aoff) return (char*)base+alignment-aoff; in align_the_pointer()
/reactos/drivers/storage/port/storahci/
H A DNotes.txt95 Also I am not sure about FIS alignment in SrbExtension.
/reactos/sdk/lib/ucrt/string/arm64/
H A Dstrlen.asm82 ; calculate number of bytes until first 16-byte alignment point
85 …beq StrlenMainLoop ; no need to force alignment if already aligned
93 ; safe to do one unaligned 16-byte vector load to force alignment

1234