Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor II
14 Views

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

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
Highlighted
Moderator
14 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
Highlighted
Valued Contributor II
14 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
Highlighted
Moderator
14 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
Highlighted
Valued Contributor II
14 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