- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>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!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page