On Mon, 01 Dec 2008 08:29:43 -0300 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi Andi, > Thanks, > As Enrico says, your code is really fast, but FWH GPF... Toninho, You have to be sure what alignment you are using for FWH Libs and your application. All _SHOULD_ be recompiled with the same alignment. Followings are codes with note. Change the code if you are using 4 byte alignment ( -a4 ): #ifndef __GNUC__ _asm { mov edi, pDest; mov esi, pSource; mov ecx, 6; /* sizeof( HB_ITEM ) = 24 bytes / 4 = 6 ( -a8 ) */ // mov ecx, 5; /* sizeof( HB_ITEM ) = 20 bytes / 4 = 5 ( -a4 ) */ rep movsd; } #else memcpy( pDest, pSource, sizeof( HB_ITEM ) ); #endif -- Andi ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers