Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Is there a header file with declarations of _intel_sse2_strcpy, _intel_sse2_strlen, etc Intel specific CRT-functions?

SergeyKostrov
Valued Contributor II
369 Views

My question is: Is there a header file with declarations of _intel_sse2_strcpy, _intel_sse2_strlen, etc Intel specific CRT-functions? Thanks in advance.

0 Kudos
4 Replies
JenniferJ
Moderator
369 Views

no, we don't have such. 

the "_intel_sse2_strcpy" is not always used for any strcpy, it depends on many things - size of the buffer, data type, any over-lapping etc. so it's better to let the compiler to decide. 

why would you like to use it explicitly?

Jennifer 

0 Kudos
SergeyKostrov
Valued Contributor II
369 Views
Thanks, Jennifer. >>...so it's better to let the compiler to decide. why would you like to use it explicitly? I wanted to verify _intel_sse2_strcpy performance vs. a standard CRT-function strcpy and it is some kind of a very small R&D. So, are there any Intel C++ compiler switches, related to inlining, or intrinsics, etc, which could force usage of _intel_sse2_strcpy?
0 Kudos
JenniferJ
Moderator
369 Views

Ok. "/Oi-" is the flag to avoid using _intel_sse2_strcpy like:

   > icl str_test.cpp --------will use the _intel_sse2_strcpy

   > icl /Oi- str_test.cpp ------- will not use the _intel_sse2_strcpy

0 Kudos
SergeyKostrov
Valued Contributor II
369 Views
>>Ok. "/Oi-" is the flag to avoid using _intel_sse2_strcpy like: >> >> > icl str_test.cpp --------will use the _intel_sse2_strcpy >> >> > icl /Oi- str_test.cpp ------- will not use the _intel_sse2_strcpy Thank you, Jennifer!
0 Kudos
Reply