Skip to content

Commit

Permalink
fix isPow2
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcdonell committed Feb 6, 2017
1 parent 826f70d commit 5dc6178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Data/Array/Accelerate/Math/FFT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,7 @@ append xs ys


isPow2 :: Int -> Bool
isPow2 0 = True
isPow2 1 = False
isPow2 x = x .&. (x-1) P.== 0

0 comments on commit 5dc6178

Please sign in to comment.