Skip to content

Instantly share code, notes, and snippets.

@jimsynz
Created September 29, 2011 00:41
Show Gist options
  • Save jimsynz/1249710 to your computer and use it in GitHub Desktop.
Save jimsynz/1249710 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <math.h>
int main() {
int i;
for (i = 0; i < 256; i++) {
int x = ((int)pow(2, (i / 32.0)) / 2);
printf("%d: %d\n", i, x);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment