2 * PROJECT: Win32 subsystem
3 * LICENSE: See COPYING in the top level directory
4 * FILE: subsystems/win32/win32k/dib/i386/dib24bpp_hline.c
5 * PURPOSE: ASM optimised 24bpp HLine
6 * PROGRAMMERS: Magnus Olsen
9 .globl _DIB_24BPP_HLine
10 .intel_syntax noprefix
12 .def _DIB_24BPP_HLine;
47 /* For small fills, don't bother doing anything fancy */
49 movzx ecx, word ptr [esp+58]
69 /* Align to 4-byte address */
77 /* This is about 30% faster than the generic C code below */
78 movzx edx, word ptr [esp+58]
126 jnz leftoverfromthemainloop
133 leftoverfromthemainloop:
135 /* Count = Count & 0x03; */
144 inc dword ptr [esp+4]
148 jnz leftoverfromthemainloop