News for hackers. Stuff that matters.
Re:A 100LOC C impl of memset, that is faster than glibc's by bitwize on Friday November 12, 2021 @01:48PM (#29203057)
> There's no standard C function for this. My colleague came up with the following nice trick.

One of the big things about C is that there is no standard library function for anything remotely nontrivial. So successfully coding in C relies on "tricks", and snippets and lore that have been passed on over the years.

Rust, meanwhile, has a check_for_all_zeroes crate or something.

There are no comments on this comment yet.