Created
April 11, 2018 12:22
-
-
Save Heegiiny/7a97a075bbcd6643a25c74471bf575c4 to your computer and use it in GitHub Desktop.
Revisions
-
Heegiiny created this gist
Apr 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ uint16_t flip9bits(uint16_t in) { uint16_t out; for (int i = 0; i < 9; i++) { out <<= 1; out |= in & 1; in >>= 1; } return out; }