Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Getting rid of int_pow. #16
I was browsing the source when I noticed int_pow. First, I didn't like that it uses the simple linear algorithm. Second, it is only used twice, in the thread file, and for computing powers of two. Why write a function to multiply a number by 2, n time, in a loop, when you could do a simple bitshift and assignment?