i've tested, now you can too

This commit is contained in:
Brian West committed 2012-12-20 20:08:42 -06:00
1 parent d3fcfa8245
commit d67b96af8a
94 files changed
+25305 -2005

No files matched your search

+14 -13
View File
@@ -1,20 +1,20 @@
/*
Copyright (C) 2010 Perens LLC <bruce@perens.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
All rights reserved.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1, as
published by the Free Software Foundation. This program is
distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "defines.h"
#include "quantise.h"
#include <stdio.h>
@@ -81,7 +81,8 @@ unpack(
unsigned int fieldWidth/* Width of the field in BITS, not bytes. */
)
{
unsigned int field = 0;
unsigned int field = 0;
unsigned int t;
do {
unsigned int bI = *bitIndex;
@@ -96,7 +97,7 @@ unpack(
} while ( fieldWidth != 0 );
/* Convert from Gray code to binary. Works for maximum 8-bit fields. */
unsigned int t = field ^ (field >> 8);
t = field ^ (field >> 8);
t ^= (t >> 4);
t ^= (t >> 2);
t ^= (t >> 1);