mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 04:44:50 +00:00 
			
		
		
		
	Implement _intel_fast_(memcpy|memset)
The classic Intel compiler generates calls to these functions when building the SDL library with SDL_LIBC=OFF.
This commit is contained in:
		
							parent
							
								
									5e5b029d6c
								
							
						
					
					
						commit
						d1dc195208
					
				| 
						 | 
				
			
			@ -701,6 +701,19 @@ RETZERO:
 | 
			
		|||
 | 
			
		||||
#endif /* MSC_VER */
 | 
			
		||||
 | 
			
		||||
#if defined(__ICL)
 | 
			
		||||
/* The classic Intel compiler generates calls to _intel_fast_memcpy
 | 
			
		||||
 * and _intel_fast_memset when building an optimized SDL library */
 | 
			
		||||
void *_intel_fast_memcpy(void *dst, const void *src, size_t len)
 | 
			
		||||
{
 | 
			
		||||
    return SDL_memcpy(dst, src, len);
 | 
			
		||||
}
 | 
			
		||||
void *_intel_fast_memset(void *dst, int c, size_t len)
 | 
			
		||||
{
 | 
			
		||||
    return SDL_memset(dst, c, len);
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif /* !HAVE_LIBC && !SDL_STATIC_LIB */
 | 
			
		||||
 | 
			
		||||
/* vi: set ts=4 sw=4 expandtab: */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue