|
From: Florian K. <br...@ac...> - 2012-06-01 17:34:12
|
On 06/01/2012 12:09 PM, sv...@va... wrote:
> +void vex_bzero ( void* sV, UInt n )
> +{
> + UInt i;
> + UChar* s = (UChar*)sV;
> + /* No laughing, please. Just don't call this too often. Thank you
> + for your attention. */
> + for (i = 0; i < n; i++) s[i] = 0;
> +}
>
OK, I'll bite.
How about using __builtin_memset ? gcc has it, clang has it, and we've
been using builtins elsewhere, too.
Florian
|