Skip to content

Instantly share code, notes, and snippets.

@kmaglione
Created April 8, 2015 20:51
Show Gist options
  • Save kmaglione/5afaf9adead2417b65ba to your computer and use it in GitHub Desktop.
Save kmaglione/5afaf9adead2417b65ba to your computer and use it in GitHub Desktop.
#include <math.h>
int foo(unsigned int n, int m) {
if (m < 12)
return n / (unsigned)pow(2, m);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment