Skip to content

Instantly share code, notes, and snippets.

@regehr
Created November 13, 2018 14:35
Show Gist options
  • Save regehr/081afdaab38daedb31edbf575183acc5 to your computer and use it in GitHub Desktop.
Save regehr/081afdaab38daedb31edbf575183acc5 to your computer and use it in GitHub Desktop.
#include <assert.h>
int main(void) {
unsigned i = 0;
do {
assert((i / 4532) == (i * 0x39D7C7F7ULL) >> 42);
i++;
} while (i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment