Skip to content

Commit bc9317c

Browse files
committed
Rename more static symbols that are often inlined
1 parent f6ecb85 commit bc9317c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+455
-455
lines changed

celt/arch.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ typedef oac_val32 celt_coef;
205205
# define MULT_COEF_TAPS(a, b) SHL32(MULT16_16(a, b), 1)
206206
# define COEF2VAL16(x) EXTRACT16(SHR32(x, 16))
207207

208-
# define celt_isnan(x) 0
208+
# define oaci_celt_isnan(x) 0
209209

210210
# define Q15ONE 32767
211211
# define Q31ONE 2147483647
@@ -276,7 +276,7 @@ typedef float celt_coef;
276276
# ifdef FLOAT_APPROX
277277
/* This code should reliably detect NaN/inf even when -ffast-math is used.
278278
Assumes IEEE 754 format. */
279-
static OAC_INLINE int celt_isnan(float x) {
279+
static OAC_INLINE int oaci_celt_isnan(float x) {
280280
union {float f; oac_uint32 i;} in;
281281
in.f = x;
282282
return ((in.i>>23)&0xFF) == 0xFF && (in.i&0x007FFFFF) != 0;
@@ -286,7 +286,7 @@ static OAC_INLINE int celt_isnan(float x) {
286286
# error \
287287
Cannot build liboac with -ffast-math unless FLOAT_APPROX is defined. This could result in crashes on extreme (e.g. NaN) input
288288
# endif
289-
# define celt_isnan(x) ((x) != (x))
289+
# define oaci_celt_isnan(x) ((x) != (x))
290290
# endif
291291

292292
# define Q15ONE 1.0f
@@ -378,7 +378,7 @@ static OAC_INLINE int celt_isnan(float x) {
378378

379379
# define SIG2RES(a) ((1/CELT_SIG_SCALE)*(a))
380380
# define RES2INT16(a) FLOAT2INT16(a)
381-
# define RES2INT24(a) float2int(32768.f*256.f*(a))
381+
# define RES2INT24(a) oaci_float2int(32768.f*256.f*(a))
382382
# define RES2FLOAT(a) (a)
383383
# define INT16TORES(a) ((a)*(1/CELT_SIG_SCALE))
384384
# define INT24TORES(a) ((1.f/32768.f/256.f)*(a))

celt/bands.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void oaci_anti_collapse(const CELTMode *m, celt_norm *X_, unsigned char *collaps
290290
N0 = m->eBands[i + 1] - m->eBands[i];
291291
/* depth in 1/8 bits */
292292
celt_sig_assert(pulses[i] >= 0);
293-
depth = celt_udiv(1 + pulses[i], (m->eBands[i + 1] - m->eBands[i]))>>LM;
293+
depth = oaci_celt_udiv(1 + pulses[i], (m->eBands[i + 1] - m->eBands[i]))>>LM;
294294

295295
#ifdef FIXED_POINT
296296
thresh32 = SHR32(oaci_celt_exp2(-SHL16(depth, 10 - BITRES)), 1);
@@ -508,7 +508,7 @@ int oaci_spreading_decision(const CELTMode *m, const celt_norm *X, int *average,
508508

509509
/* Only include four last bands (8 kHz and up) */
510510
if (i > m->nbEBands - 4)
511-
hf_sum += celt_udiv(32*(tcount[1] + tcount[0]), N);
511+
hf_sum += oaci_celt_udiv(32*(tcount[1] + tcount[0]), N);
512512
tmp = (2*tcount[2] >= N) + (2*tcount[1] >= N) + (2*tcount[0] >= N);
513513
sum += tmp*spread_weight[i];
514514
nbBands += spread_weight[i];
@@ -517,7 +517,7 @@ int oaci_spreading_decision(const CELTMode *m, const celt_norm *X, int *average,
517517

518518
if (update_hf) {
519519
if (hf_sum)
520-
hf_sum = celt_udiv(hf_sum, C*(4 - m->nbEBands + end));
520+
hf_sum = oaci_celt_udiv(hf_sum, C*(4 - m->nbEBands + end));
521521
*hf_average = (*hf_average + hf_sum)>>1;
522522
hf_sum = *hf_average;
523523
if (*tapset_decision == 2)
@@ -534,7 +534,7 @@ int oaci_spreading_decision(const CELTMode *m, const celt_norm *X, int *average,
534534
/*printf("%d %d %d\n", hf_sum, *hf_average, *tapset_decision);*/
535535
celt_assert(nbBands > 0); /* end has to be non-zero */
536536
celt_assert(sum >= 0);
537-
sum = celt_udiv((oac_int32)sum<<8, nbBands);
537+
sum = oaci_celt_udiv((oac_int32)sum<<8, nbBands);
538538
/* Recursive averaging */
539539
sum = (sum + *average)>>1;
540540
*average = sum;
@@ -634,7 +634,7 @@ static int oaci_compute_qn(int N, int b, int offset, int pulse_cap, int stereo)
634634
/* The upper limit ensures that in a stereo split with itheta==16384, we'll
635635
always have enough bits left over to code at least one pulse in the
636636
side; otherwise it would collapse, since it doesn't get folded. */
637-
qb = celt_sudiv(b + N2*offset, N2);
637+
qb = oaci_celt_sudiv(b + N2*offset, N2);
638638
qb = IMIN(b - pulse_cap - (4<<BITRES), qb);
639639

640640
qb = IMIN(8<<BITRES, qb);
@@ -727,7 +727,7 @@ static void oaci_compute_theta(struct band_ctx *ctx, struct split_ctx *sctx,
727727
/* Check if the selected value of theta will cause the bit allocation
728728
to inject noise on one side. If so, make sure the energy of that side
729729
is zero. */
730-
int unquantized = celt_udiv((oac_int32)itheta*16384, qn);
730+
int unquantized = oaci_celt_udiv((oac_int32)itheta*16384, qn);
731731
imid = oaci_bitexact_cos((oac_int16)unquantized);
732732
iside = oaci_bitexact_cos((oac_int16)(16384 - unquantized));
733733
delta = FRAC_MUL16((N - 1)<<7, oaci_bitexact_log2tan(iside, imid));
@@ -806,7 +806,7 @@ static void oaci_compute_theta(struct band_ctx *ctx, struct split_ctx *sctx,
806806
}
807807
}
808808
celt_assert(itheta >= 0);
809-
itheta = celt_udiv((oac_int32)itheta*16384, qn);
809+
itheta = oaci_celt_udiv((oac_int32)itheta*16384, qn);
810810
itheta_q30 = (oac_int32)itheta<<16;
811811
if (encode && stereo) {
812812
if (itheta == 0)
@@ -954,8 +954,8 @@ static unsigned oaci_quant_partition(struct band_ctx *ctx, celt_norm *X,
954954
mid = oaci_celt_cos_norm32(sctx.itheta_q30);
955955
side = oaci_celt_cos_norm32((1<<30) - sctx.itheta_q30);
956956
#else
957-
mid = celt_cos_norm2(sctx.itheta_q30*(1.f/(1<<30)));
958-
side = celt_cos_norm2(1.f - sctx.itheta_q30*(1.f/(1<<30)));
957+
mid = oaci_celt_cos_norm2(sctx.itheta_q30*(1.f/(1<<30)));
958+
side = oaci_celt_cos_norm2(1.f - sctx.itheta_q30*(1.f/(1<<30)));
959959
#endif
960960

961961
/* Give more bits to low-energy MDCTs than they would otherwise deserve */
@@ -1103,8 +1103,8 @@ unsigned oaci_cubic_quant_partition(struct band_ctx *ctx, celt_norm *X, int N, i
11031103
g1 = oaci_celt_cos_norm32(itheta_q30);
11041104
g2 = oaci_celt_cos_norm32((1<<30) - itheta_q30);
11051105
#else
1106-
g1 = celt_cos_norm2(itheta_q30*(1.f/(1<<30)));
1107-
g2 = celt_cos_norm2(1.f - itheta_q30*(1.f/(1<<30)));
1106+
g1 = oaci_celt_cos_norm2(itheta_q30*(1.f/(1<<30)));
1107+
g2 = oaci_celt_cos_norm2(1.f - itheta_q30*(1.f/(1<<30)));
11081108
#endif
11091109
if (itheta_q30 == 0) {
11101110
b1 = b;
@@ -1144,7 +1144,7 @@ static unsigned oaci_quant_band(struct band_ctx *ctx, celt_norm *X,
11441144

11451145
longBlocks = B0 == 1;
11461146

1147-
N_B = celt_udiv(N_B, B);
1147+
N_B = oaci_celt_udiv(N_B, B);
11481148

11491149
/* Special case for one sample */
11501150
if (N == 1) {
@@ -1287,8 +1287,8 @@ static unsigned oaci_quant_band_stereo(struct band_ctx *ctx, celt_norm *X, celt_
12871287
mid = oaci_celt_cos_norm32(sctx.itheta_q30);
12881288
side = oaci_celt_cos_norm32((1<<30) - sctx.itheta_q30);
12891289
#else
1290-
mid = celt_cos_norm2(sctx.itheta_q30*(1.f/(1<<30)));
1291-
side = celt_cos_norm2(1.f - sctx.itheta_q30*(1.f/(1<<30)));
1290+
mid = oaci_celt_cos_norm2(sctx.itheta_q30*(1.f/(1<<30)));
1291+
side = oaci_celt_cos_norm2(1.f - sctx.itheta_q30*(1.f/(1<<30)));
12921292
#endif
12931293

12941294
/* This is a special case for N=2 that only works for stereo and takes
@@ -1510,7 +1510,7 @@ void oaci_quant_all_bands(int encode, const CELTMode *m, int start, int end,
15101510
remaining_bits = total_bits - tell;
15111511
ctx.total_bits = total_bits;
15121512
if (i <= codedBands - 1) {
1513-
curr_balance = celt_sudiv(balance, IMIN(3, codedBands - i));
1513+
curr_balance = oaci_celt_sudiv(balance, IMIN(3, codedBands - i));
15141514
b = IMAX(0, IMIN(16383, IMIN(remaining_bits, pulses[i] + curr_balance)));
15151515
} else {
15161516
b = 0;

celt/celt.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ typedef struct {
168168
#define CELT_SET_SILK_INFO(x) CELT_SET_SILK_INFO_REQUEST, celt_check_silkinfo_ptr(x)
169169

170170

171-
static OAC_INLINE oac_int32 bits_to_bitrate(oac_int32 bits, oac_int32 Fs, oac_int32 frame_size) {
171+
static OAC_INLINE oac_int32 oaci_bits_to_bitrate(oac_int32 bits, oac_int32 Fs, oac_int32 frame_size) {
172172
return bits*(6*Fs/frame_size)/6;
173173
}
174174

175-
static OAC_INLINE oac_int32 bitrate_to_bits(oac_int32 bitrate, oac_int32 Fs, oac_int32 frame_size) {
175+
static OAC_INLINE oac_int32 oaci_bitrate_to_bits(oac_int32 bitrate, oac_int32 Fs, oac_int32 frame_size) {
176176
return bitrate*6/(6*Fs/frame_size);
177177
}
178178

@@ -237,7 +237,7 @@ static const unsigned char fromOacTable[16] = {
237237
0x00, 0x08, 0x10, 0x18
238238
};
239239

240-
static OAC_INLINE int toOac(unsigned char c) {
240+
static OAC_INLINE int oaci_toOac(unsigned char c) {
241241
int ret = 0;
242242
if (c < 0xA0)
243243
ret = toOacTable[c>>3];
@@ -247,7 +247,7 @@ static OAC_INLINE int toOac(unsigned char c) {
247247
return ret|(c&0x7);
248248
}
249249

250-
static OAC_INLINE int fromOac(unsigned char c) {
250+
static OAC_INLINE int oaci_fromOac(unsigned char c) {
251251
if (c < 0x80)
252252
return -1;
253253
else

celt/celt_decoder.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ void oaci_update_plc_state(LPCNetPLCState *lpcnet, celt_sig *decode_mem[2], floa
627627
for (j = 0; j < SINC_ORDER + 1; j++) {
628628
sum += buf48k[3*i + j + offset]*sinc_filter[j];
629629
}
630-
buf16k[i] = float2int(MIN32(32767.f, MAX32(-32767.f, sum)));
630+
buf16k[i] = oaci_float2int(MIN32(32767.f, MAX32(-32767.f, sum)));
631631
}
632632
tmp_read_post = lpcnet->fec_read_pos;
633633
tmp_fec_skip = lpcnet->fec_skip;
@@ -1126,7 +1126,7 @@ int oaci_celt_decode_with_ec_dred(CELTDecoder * OAC_RESTRICT st, const unsigned
11261126
if (mode->Fs == 48000 && mode->shortMdctSize == 120)
11271127
# endif
11281128
{
1129-
data0 = fromOac(data0);
1129+
data0 = oaci_fromOac(data0);
11301130
if (data0 < 0)
11311131
return OAC_INVALID_PACKET;
11321132
}
@@ -1457,7 +1457,7 @@ int oaci_celt_decode_with_ec_dred(CELTDecoder * OAC_RESTRICT st, const unsigned
14571457
RESTORE_STACK;
14581458
if (oaci_ec_tell(dec) > 8*len)
14591459
return OAC_INTERNAL_ERROR;
1460-
if (ec_get_error(dec))
1460+
if (oaci_ec_get_error(dec))
14611461
st->error = 1;
14621462
return frame_size/st->downsample;
14631463
}

celt/celt_encoder.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ static int oaci_transient_analysis(const oac_val32 * OAC_RESTRICT in, int len, i
434434
before it does any damage later on. If these asserts are disabled (no hardening), then the table
435435
lookup a few lines below (id = ...) is likely to crash dur to an out-of-bounds read. DO NOT FIX
436436
that crash on NaN since it could result in a worse issue later on. */
437-
celt_assert(!celt_isnan(tmp[0]));
438-
celt_assert(!celt_isnan(norm));
437+
celt_assert(!oaci_celt_isnan(tmp[0]));
438+
celt_assert(!oaci_celt_isnan(norm));
439439
for (i = 12; i < len2 - 5; i += 4) {
440440
int id;
441441
#ifdef FIXED_POINT
@@ -1790,7 +1790,7 @@ int oaci_celt_encode_with_ec(CELTEncoder * OAC_RESTRICT st, const oac_res * pcm,
17901790
if (mode->Fs == 48000 && mode->shortMdctSize == 120)
17911791
# endif
17921792
{
1793-
int c0 = toOac(compressed[0]);
1793+
int c0 = oaci_toOac(compressed[0]);
17941794
if (c0 < 0) {
17951795
RESTORE_STACK;
17961796
return OAC_BAD_ARG;
@@ -1808,7 +1808,7 @@ int oaci_celt_encode_with_ec(CELTEncoder * OAC_RESTRICT st, const oac_res * pcm,
18081808
nbCompressedBytes = IMIN(nbCompressedBytes, packet_size_cap);
18091809

18101810
if (st->vbr && st->bitrate != OAC_BITRATE_MAX) {
1811-
vbr_rate = bitrate_to_bits(st->bitrate, mode->Fs, frame_size)<<BITRES;
1811+
vbr_rate = oaci_bitrate_to_bits(st->bitrate, mode->Fs, frame_size)<<BITRES;
18121812
#if defined(CUSTOM_MODES) || defined(ENABLE_OAC_CUSTOM_API)
18131813
if (st->signalling)
18141814
vbr_rate -= 8<<BITRES;
@@ -1981,7 +1981,7 @@ int oaci_celt_encode_with_ec(CELTEncoder * OAC_RESTRICT st, const oac_res * pcm,
19811981
oaci_compute_mdcts(mode, shortBlocks, in, freq, C, CC, LM, st->upsample, st->arch);
19821982
/* This should catch any NaN in the CELT input. Since we're not supposed to see any (they're filtered
19831983
at the Oac layer), just abort. */
1984-
celt_assert(!celt_isnan(freq[0]) && (C == 1 || !celt_isnan(freq[N])));
1984+
celt_assert(!oaci_celt_isnan(freq[0]) && (C == 1 || !oaci_celt_isnan(freq[N])));
19851985
if (CC == 2 && C == 1)
19861986
tf_chan = 0;
19871987
oaci_compute_band_energies(mode, freq, bandE, effEnd, C, LM, st->arch);
@@ -2551,7 +2551,7 @@ int oaci_celt_encode_with_ec(CELTEncoder * OAC_RESTRICT st, const oac_res * pcm,
25512551
#endif
25522552

25532553
RESTORE_STACK;
2554-
if (ec_get_error(enc))
2554+
if (oaci_ec_get_error(enc))
25552555
return OAC_INTERNAL_ERROR;
25562556
else
25572557
return nbCompressedBytes;

celt/cwrs.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ void oaci_get_required_bits(oac_int16 *_bits, int _n, int _maxk, int _frac) {
472472
}
473473
# endif
474474

475-
static oac_uint32 icwrs(int _n, const int *_y) {
475+
static oac_uint32 oaci_icwrs(int _n, const int *_y) {
476476
oac_uint32 i;
477477
int j;
478478
int k;
@@ -491,10 +491,10 @@ static oac_uint32 icwrs(int _n, const int *_y) {
491491

492492
void oaci_encode_pulses(const int *_y, int _n, int _k, ec_enc *_enc) {
493493
celt_assert(_k > 0);
494-
oaci_ec_enc_uint(_enc, icwrs(_n, _y), CELT_PVQ_V(_n, _k));
494+
oaci_ec_enc_uint(_enc, oaci_icwrs(_n, _y), CELT_PVQ_V(_n, _k));
495495
}
496496

497-
static oac_val32 cwrsi(int _n, int _k, oac_uint32 _i, int *_y) {
497+
static oac_val32 oaci_cwrsi(int _n, int _k, oac_uint32 _i, int *_y) {
498498
oac_uint32 p;
499499
int s;
500500
int k0;
@@ -569,7 +569,7 @@ static oac_val32 cwrsi(int _n, int _k, oac_uint32 _i, int *_y) {
569569
}
570570

571571
oac_val32 oaci_decode_pulses(int *_y, int _n, int _k, ec_dec *_dec) {
572-
return cwrsi(_n, _k, oaci_ec_dec_uint(_dec, CELT_PVQ_V(_n, _k)), _y);
572+
return oaci_cwrsi(_n, _k, oaci_ec_dec_uint(_dec, CELT_PVQ_V(_n, _k)), _y);
573573
}
574574

575575
#else /* SMALL_FOOTPRINT */
@@ -634,7 +634,7 @@ static oac_uint32 oaci_ncwrs_urow(unsigned _n, unsigned _k, oac_uint32 *_u) {
634634
_y: Returns the vector of pulses.
635635
_u: Must contain entries [0..._k+1] of row _n of U() on input.
636636
Its contents will be destructively modified.*/
637-
static oac_val32 cwrsi(int _n, int _k, oac_uint32 _i, int *_y, oac_uint32 *_u) {
637+
static oac_val32 oaci_cwrsi(int _n, int _k, oac_uint32 _i, int *_y, oac_uint32 *_u) {
638638
int j;
639639
oac_int16 val;
640640
oac_val32 yy = 0;
@@ -673,7 +673,7 @@ static OAC_INLINE oac_uint32 icwrs1(const int *_y, int *_k) {
673673
of size _n with associated sign bits.
674674
_y: The vector of pulses, whose sum of absolute values must be _k.
675675
_nc: Returns V(_n,_k).*/
676-
static OAC_INLINE oac_uint32 icwrs(int _n, int _k, oac_uint32 *_nc, const int *_y,
676+
static OAC_INLINE oac_uint32 oaci_icwrs(int _n, int _k, oac_uint32 *_nc, const int *_y,
677677
oac_uint32 *_u) {
678678
oac_uint32 i;
679679
int j;
@@ -725,7 +725,7 @@ void oaci_encode_pulses(const int *_y, int _n, int _k, ec_enc *_enc) {
725725
SAVE_STACK;
726726
celt_assert(_k > 0);
727727
ALLOC(u, _k + 2U, oac_uint32);
728-
i = icwrs(_n, _k, &nc, _y, u);
728+
i = oaci_icwrs(_n, _k, &nc, _y, u);
729729
oaci_ec_enc_uint(_enc, i, nc);
730730
RESTORE_STACK;
731731
}
@@ -736,7 +736,7 @@ oac_val32 oaci_decode_pulses(int *_y, int _n, int _k, ec_dec *_dec) {
736736
SAVE_STACK;
737737
celt_assert(_k > 0);
738738
ALLOC(u, _k + 2U, oac_uint32);
739-
ret = cwrsi(_n, _k, oaci_ec_dec_uint(_dec, oaci_ncwrs_urow(_n, _k, u)), _y, u);
739+
ret = oaci_cwrsi(_n, _k, oaci_ec_dec_uint(_dec, oaci_ncwrs_urow(_n, _k, u)), _y, u);
740740
RESTORE_STACK;
741741
return ret;
742742
}

celt/entcode.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ struct ec_ctx {
123123
int error;
124124
};
125125

126-
static OAC_INLINE oac_uint32 ec_range_bytes(ec_ctx *_this) {
126+
static OAC_INLINE oac_uint32 oaci_ec_range_bytes(ec_ctx *_this) {
127127
return _this->offs;
128128
}
129129

130-
static OAC_INLINE unsigned char *ec_get_buffer(ec_ctx *_this) {
130+
static OAC_INLINE unsigned char *oaci_ec_get_buffer(ec_ctx *_this) {
131131
return _this->buf;
132132
}
133133

134-
static OAC_INLINE int ec_get_error(ec_ctx *_this) {
134+
static OAC_INLINE int oaci_ec_get_error(ec_ctx *_this) {
135135
return _this->error;
136136
}
137137

@@ -154,7 +154,7 @@ static OAC_INLINE int oaci_ec_tell(ec_ctx *_this) {
154154
oac_uint32 oaci_ec_tell_frac(ec_ctx *_this);
155155

156156
/* Tested exhaustively for all n and for 1<=d<=256 */
157-
static OAC_INLINE oac_uint32 celt_udiv(oac_uint32 n, oac_uint32 d) {
157+
static OAC_INLINE oac_uint32 oaci_celt_udiv(oac_uint32 n, oac_uint32 d) {
158158
celt_sig_assert(d > 0);
159159
# ifdef USE_SMALL_DIV_TABLE
160160
if (d > 256)
@@ -170,13 +170,13 @@ static OAC_INLINE oac_uint32 celt_udiv(oac_uint32 n, oac_uint32 d) {
170170
# endif
171171
}
172172

173-
static OAC_INLINE oac_int32 celt_sudiv(oac_int32 n, oac_int32 d) {
173+
static OAC_INLINE oac_int32 oaci_celt_sudiv(oac_int32 n, oac_int32 d) {
174174
celt_sig_assert(d > 0);
175175
# ifdef USE_SMALL_DIV_TABLE
176176
if (n < 0)
177-
return -(oac_int32)celt_udiv(-n, d);
177+
return -(oac_int32)oaci_celt_udiv(-n, d);
178178
else
179-
return celt_udiv(n, d);
179+
return oaci_celt_udiv(n, d);
180180
# else
181181
return n/d;
182182
# endif

celt/entdec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void oaci_ec_dec_init(ec_dec *_this, unsigned char *_buf, oac_uint32 _storage) {
171171

172172
unsigned oaci_ec_decode(ec_dec *_this, unsigned _ft) {
173173
unsigned s;
174-
_this->ext = celt_udiv(_this->rng, _ft);
174+
_this->ext = oaci_celt_udiv(_this->rng, _ft);
175175
s = (unsigned)(_this->val/_this->ext);
176176
return _ft - EC_MINI(s + 1, _ft);
177177
}

celt/entenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void oaci_ec_enc_init(ec_enc *_this, unsigned char *_buf, oac_uint32 _size) {
159159

160160
void oaci_ec_encode(ec_enc *_this, unsigned _fl, unsigned _fh, unsigned _ft) {
161161
oac_uint32 r;
162-
r = celt_udiv(_this->rng, _ft);
162+
r = oaci_celt_udiv(_this->rng, _ft);
163163
if (_fl > 0) {
164164
_this->val += _this->rng - IMUL32(r, (_ft - _fl));
165165
_this->rng = IMUL32(r, (_fh - _fl));

0 commit comments

Comments
 (0)