Browse Source

Add conditional FASTMOVE_DISABLE_SSE3 to be able to discard SSE specific code, needed for Watcom Assembler support

git-svn-id: trunk@36848 -
pierre 8 years ago
parent
commit
f4ecf87a50
1 changed files with 5 additions and 3 deletions
  1. 5 3
      rtl/i386/fastmove.inc

+ 5 - 3
rtl/i386/fastmove.inc

@@ -595,6 +595,7 @@ asm
   jmp     SmallBackwardMove_3
 end; {Backwards_MMX}
 
+{$ifndef FASTMOVE_DISABLE_SSE3}
 {-------------------------------------------------------------------------}
 {Dest MUST be 16-Byes Aligned, Count MUST be multiple of 16 }
 procedure AlignedFwdMoveSSE_3(const Source; var Dest; Count: Integer);assembler;nostackframe;
@@ -832,6 +833,7 @@ asm
   pop     ebx
   jmp     SmallBackwardMove_3
 end; {Backwards_SSE}
+{$endif ndef FASTMOVE_DISABLE_SSE3}
 
 const
    fastmoveproc_forward : pointer = @Forwards_IA32_3;
@@ -886,13 +888,13 @@ procedure setup_fastmove;{$ifdef SYSTEMINLINE}inline;{$endif}
         fastmoveproc_forward:=@Forwards_Valgrind;
         fastmoveproc_backward:=@Backwards_Valgrind;
       end
-    else
-
-    if has_sse_support then
+{$ifndef FASTMOVE_DISABLE_SSE3}
+    else if has_sse_support then
       begin
         fastmoveproc_forward:=@Forwards_SSE_3;
         fastmoveproc_backward:=@Backwards_SSE_3;
       end
+{$endif ndef FASTMOVE_DISABLE_SSE3}
    else if has_mmx_support then
       begin
         fastmoveproc_forward:=@Forwards_MMX_3;