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

is _intel_fast_memset same as _intel_new_memset?

missing__zlw
Beginner
515 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
515 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.
0 Kudos
Reply