- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't find a fast data buffer initialisation routine in MKL, VML etc (Typical use would be to set all array elements to zero.) I would have thought that this would be a useful routine. I did a lot of work with the Digital Extended Maths Library some years ago which from memory had a fast initialisation routine.
Apologies if there is one and I've missed it
David
Apologies if there is one and I've missed it
David
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
On C/C++ you can use standard
Function: void * memset (void *BLOCK, int C, size_t SIZE)
This function copies the value of C (converted to an `unsigned
char') into each of the first SIZE bytes of the object beginning
at BLOCK. It returns the value of BLOCK.
And in case of using Intel compilers it will be highly optimized.
On C/C++ you can use standard
Function: void * memset (void *BLOCK, int C, size_t SIZE)
This function copies the value of C (converted to an `unsigned
char') into each of the first SIZE bytes of the object beginning
at BLOCK. It returns the value of BLOCK.
And in case of using Intel compilers it will be highly optimized.

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