- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If i want to set the memory to ZERO ..
which one is recommended & why ?? which one is faster & why ??
any insight will help !!
Ipp32f *pSrc;
IppiSize sz = {8,8};
pSrc = ippsMalloc(64);
ippiCopy_32f_C1R(0, pSrc, 4*8, sz);
or
memset(pSrc, 0, 64);
-madan
which one is recommended & why ?? which one is faster & why ??
any insight will help !!
Ipp32f *pSrc;
IppiSize sz = {8,8};
pSrc = ippsMalloc(64);
ippiCopy_32f_C1R(0, pSrc, 4*8, sz);
or
memset(pSrc, 0, 64);
-madan
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
of course it depends on data size. For small sizes it is better to use 1D functions, like ippsZero. For very small sizes memset will faster, just because modern compilers avoids function call in such case and use macro instead.
But for middle and big data sizes, you can use IPP to utilize MMX/SSE/HT features of Intel processors.
Regards,
Vladimir

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