Implement _intel_fast_(memcpy|memset)

The classic Intel compiler generates calls to these functions when
building the SDL library with SDL_LIBC=OFF.
main
Anonymous Maarten 2023-03-23 06:45:19 +01:00 committed by Anonymous Maarten
parent 99a799ad8b
commit 513025b182
1 changed files with 13 additions and 0 deletions

View File

@ -700,4 +700,17 @@ RETZERO:
#endif /* MSC_VER */ #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 */ #endif /* !HAVE_LIBC && !SDL_STATIC_LIB */