mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[memcpy] fix error caused by switch to shorter OPs
This commit is contained in:
		@@ -57,7 +57,7 @@ memcpySSE proc
 | 
			
		||||
 | 
			
		||||
  mov  r10, 7
 | 
			
		||||
  sub  r10, r11
 | 
			
		||||
  imul r10, 10
 | 
			
		||||
  imul r10, 9
 | 
			
		||||
  lea  r9 , @FinalBlocks
 | 
			
		||||
  add  r9 , r10
 | 
			
		||||
  jmp  r9
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const void * end = dst + (length & ~0x7F);
 | 
			
		||||
    const size_t off = (7 - ((length & 0x7F) >> 4)) * 10;
 | 
			
		||||
    const size_t off = (7 - ((length & 0x7F) >> 4)) * 9;
 | 
			
		||||
 | 
			
		||||
    __asm__ __volatile__ (
 | 
			
		||||
      "cmp         %[dst],%[end] \n\t"
 | 
			
		||||
@@ -132,4 +132,4 @@ Place, Suite 330, Boston, MA 02111-1307 USA
 | 
			
		||||
  }
 | 
			
		||||
#else
 | 
			
		||||
  #define memcpySSE memcpy
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user