3 ms·
> if (n == 0) > return s; That branch is not needed because memset() is UD if length is 0, but it's nice that it's safer.
by cryptonector 5y ago
> if (n == 0)
> return s;
That branch is not needed because memset() is UD if length is 0, but it's nice that it's safer.
- deleted 5y ago[deleted]
- Filligree 5y agoYou wouldn't rather have an arguably very slighter faster memset, with the caveat that it might explode in your face?