mirror of
https://github.com/google/liblc3.git
synced 2026-04-29 02:04:49 +00:00
Flag hot functions, and disable sanitizing for them
This commit is contained in:
13
src/bits.h
13
src/bits.h
@@ -213,7 +213,7 @@ void lc3_ac_write_renorm(lc3_bits_t *bits);
|
||||
/**
|
||||
* Put a bit
|
||||
*/
|
||||
static inline void lc3_put_bit(lc3_bits_t *bits, int v)
|
||||
LC3_HOT static inline void lc3_put_bit(lc3_bits_t *bits, int v)
|
||||
{
|
||||
lc3_put_bits(bits, v, 1);
|
||||
}
|
||||
@@ -221,7 +221,8 @@ static inline void lc3_put_bit(lc3_bits_t *bits, int v)
|
||||
/**
|
||||
* Put from 1 to 32 bits
|
||||
*/
|
||||
static inline void lc3_put_bits(struct lc3_bits *bits, unsigned v, int n)
|
||||
LC3_HOT static inline void lc3_put_bits(
|
||||
struct lc3_bits *bits, unsigned v, int n)
|
||||
{
|
||||
struct lc3_bits_accu *accu = &bits->accu;
|
||||
|
||||
@@ -236,7 +237,7 @@ static inline void lc3_put_bits(struct lc3_bits *bits, unsigned v, int n)
|
||||
/**
|
||||
* Get a bit
|
||||
*/
|
||||
static inline int lc3_get_bit(lc3_bits_t *bits)
|
||||
LC3_HOT static inline int lc3_get_bit(lc3_bits_t *bits)
|
||||
{
|
||||
return lc3_get_bits(bits, 1);
|
||||
}
|
||||
@@ -244,7 +245,7 @@ static inline int lc3_get_bit(lc3_bits_t *bits)
|
||||
/**
|
||||
* Get from 1 to 32 bits
|
||||
*/
|
||||
static inline unsigned lc3_get_bits(struct lc3_bits *bits, int n)
|
||||
LC3_HOT static inline unsigned lc3_get_bits(struct lc3_bits *bits, int n)
|
||||
{
|
||||
struct lc3_bits_accu *accu = &bits->accu;
|
||||
|
||||
@@ -260,7 +261,7 @@ static inline unsigned lc3_get_bits(struct lc3_bits *bits, int n)
|
||||
/**
|
||||
* Put arithmetic coder symbol
|
||||
*/
|
||||
static inline void lc3_put_symbol(
|
||||
LC3_HOT static inline void lc3_put_symbol(
|
||||
struct lc3_bits *bits, const struct lc3_ac_model *model, unsigned s)
|
||||
{
|
||||
const struct lc3_ac_symbol *symbols = model->s;
|
||||
@@ -280,7 +281,7 @@ static inline void lc3_put_symbol(
|
||||
/**
|
||||
* Get arithmetic coder symbol
|
||||
*/
|
||||
static inline unsigned lc3_get_symbol(
|
||||
LC3_HOT static inline unsigned lc3_get_symbol(
|
||||
lc3_bits_t *bits, const struct lc3_ac_model *model)
|
||||
{
|
||||
const struct lc3_ac_symbol *symbols = model->s;
|
||||
|
||||
Reference in New Issue
Block a user