diff options
author | Mathis Rosenhauer <rosenhauer@dkrz.de> | 2012-11-28 13:38:14 +0100 |
---|---|---|
committer | Thomas Jahns <jahns@dkrz.de> | 2013-02-19 11:33:01 +0100 |
commit | fabc1b2663e18a0df4892e3236860743e5504ade (patch) | |
tree | 0efb3faef472cb40057a4686bf0e9fffe4453afe /src/decode.h | |
parent | 4e2c4eb985063180eebf81310dacc06091ad4f94 (diff) | |
download | libaec-fabc1b2663e18a0df4892e3236860743e5504ade.tar.gz libaec-fabc1b2663e18a0df4892e3236860743e5504ade.tar.bz2 libaec-fabc1b2663e18a0df4892e3236860743e5504ade.zip |
Slightly faster bit and fs getters, more forced inlining
Diffstat (limited to 'src/decode.h')
-rw-r--r-- | src/decode.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/decode.h b/src/decode.h index d17165c..77c86fc 100644 --- a/src/decode.h +++ b/src/decode.h @@ -65,10 +65,6 @@ #define M_CONTINUE 1 #define M_EXIT 0 -#define SAFE(strm) (strm->avail_in >= strm->state->in_blklen \ - && strm->avail_out >= strm->state->out_blklen) - -#define ROS 5 #define MIN(a, b) (((a) < (b))? (a): (b)) struct internal_state { @@ -85,7 +81,7 @@ struct internal_state { should be the longest possible block */ int out_blklen; /* length of output block in bytes */ int n, i; /* counter for samples */ - int64_t *block; /* block buffer for split-sample options */ + uint32_t *block; /* block buffer for split-sample options */ int se; /* set if second extension option is selected */ uint64_t acc; /* accumulator for currently used bit sequence */ int bitp; /* bit pointer to the next unused bit in accumulator */ |