Ask Stewart: What are the benefits to use Intel IPP string functions

Ask Stewart: What are the benefits to use Intel IPP string functions

I noticed that Intel IPP started offering newfunctions on characters strings in version 4.0, what are the differences or benefits to use Intel IPP string functions comparing to other string implementations: the C functions in "string.h", the C++ standard template library class "string" and the MFC class "CString"?

By the way, do you provide any samples to demonstrate the Intel IPP string functions in your book?


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

The idea underlying the string functions is similar to the idea underlying the rest of the library, whichto provide low-level optimized functions that ahigher-level library or API be able to make use of. While it is possible to use the IPP string functions directly it is probably more convenient to wrap them in a string or text processing class to hide the complexity, and even the use, of the IPP function calls.

In the book, I tried to demonstrate this intended use ofthe functions bywriting and includinga thin layer that mimicks the C, STL, and MFC. So the book lists implementations of several C stdlib functions (such as strcpy, strcmp, strchr), STL functions (such as string::find, string::find_first_of, string::compare), and MFC functions (actually, just CString::Replace, but that's a long one). Each uses the IPP string functions (ippsFind, ippsCompare, ippsRemove) to do the bulk of the work.


Leave a Comment

Please sign in to add a comment. Not a member? Join today