File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
* Copyright (C) 2010-2012 Romain Tartière
8
8
* Copyright (C) 2010-2013 Philippe Teuwen
9
9
* Copyright (C) 2012-2013 Ludovic Rousseau
10
+ * See AUTHORS file for a more comprehensive list of contributors.
10
11
* Additional contributors of this file:
11
12
*
12
13
* Redistribution and use in source and binary forms, with or without
@@ -45,7 +46,7 @@ uint8_t
45
46
oddparity (const uint8_t bt )
46
47
{
47
48
// cf http://graphics.stanford.edu/~seander/bithacks.html#ParityParallel
48
- return (0x9669 >> ((bt ^(bt >> 4 )) & 0xF )) & 1 ;
49
+ return (0x9669 >> ((bt ^ (bt >> 4 )) & 0xF )) & 1 ;
49
50
}
50
51
51
52
void
Original file line number Diff line number Diff line change 7
7
* Copyright (C) 2010-2012 Romain Tartière
8
8
* Copyright (C) 2010-2013 Philippe Teuwen
9
9
* Copyright (C) 2012-2013 Ludovic Rousseau
10
+ * See AUTHORS file for a more comprehensive list of contributors.
10
11
* Additional contributors of this file:
11
12
*
12
13
* Redistribution and use in source and binary forms, with or without
You can’t perform that action at this time.
0 commit comments