Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7651 Discussions

is _intel_fast_memset same as _intel_new_memset?

missing__zlw
Beginner
171 Views
I am using icc 11.1. Using the profiler, I can see the memset call is actually calling _intel_new_memset.

Is this the same as _intel_fast_memset? Which one performs better? If I need to switch to _intel_fast_memset, how should I do that?

Thanks.
0 Kudos
1 Reply
Judith_W_Intel
Employee
171 Views

__intel_fast_memset is a general purpose function which calls different versions of __intel_new_memset depending upon architecture and CPU type. Assuming inlining it should be just as fast on your particular system as calling _intel_new_memset directly, and a lot more portable.
Reply