summaryrefslogtreecommitdiff
path: root/src/libFLAC/bitwriter.c
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2007-07-16 06:04:28 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2007-07-16 06:04:28 +0000
commit50bf3debb4b071d7599ea049c029a583fc5a9ec6 (patch)
treead20ca64379d22916cec96ee461009827af612ab /src/libFLAC/bitwriter.c
parent766539637fe43ca6f0022615ee78191737c8f2e2 (diff)
downloadflac-50bf3debb4b071d7599ea049c029a583fc5a9ec6.tar.gz
comment out some optimized branch
Diffstat (limited to 'src/libFLAC/bitwriter.c')
-rw-r--r--src/libFLAC/bitwriter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libFLAC/bitwriter.c b/src/libFLAC/bitwriter.c
index 47133c06..04a5f72b 100644
--- a/src/libFLAC/bitwriter.c
+++ b/src/libFLAC/bitwriter.c
@@ -556,7 +556,7 @@ FLAC__bool FLAC__bitwriter_write_rice_signed_block(FLAC__BitWriter *bw, const FL
msbits = uval >> parameter;
-#if 1 /* OPT: can remove this special case if it doesn't make up for the extra compare */
+#if 0 /* OPT: can remove this special case if it doesn't make up for the extra compare (doesn't make a statistically significant difference with msvc or gcc/x86) */
if(bw->bits && bw->bits + msbits + lsbits <= FLAC__BITS_PER_WORD) { /* i.e. if the whole thing fits in the current bwword */
/* ^^^ if bw->bits is 0 then we may have filled the buffer and have no free bwword to work in */
bw->bits = bw->bits + msbits + lsbits;
@@ -642,7 +642,7 @@ break1:
bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum);
bw->accum = uval;
}
-#if 1
+#if 0
}
#endif
vals++;