Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 205371 Details for
Bug 286576
internal compiler error: Segmentation fault when building opencore-amr
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
output with -save-temps
pitch_fr.i (text/plain), 49.72 KB, created by
Mounir Lamouri (volkmar) (RETIRED)
on 2009-09-27 12:22:08 UTC
(
hide
)
Description:
output with -save-temps
Filename:
MIME Type:
Creator:
Mounir Lamouri (volkmar) (RETIRED)
Created:
2009-09-27 12:22:08 UTC
Size:
49.72 KB
patch
obsolete
># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" ># 1 "<built-in>" ># 1 "<command-line>" ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" ># 87 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.h" 1 ># 64 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.h" ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/typedef.h" 1 ># 69 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/typedef.h" ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/gsm_amr_typedefs.h" 1 ># 54 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/gsm_amr_typedefs.h" ># 1 "../oscl/oscl_base.h" 1 ># 22 "../oscl/oscl_base.h" ># 1 "/usr/include/stdint.h" 1 3 4 ># 26 "/usr/include/stdint.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 330 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 348 "/usr/include/sys/cdefs.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 349 "/usr/include/sys/cdefs.h" 2 3 4 ># 331 "/usr/include/features.h" 2 3 4 ># 354 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 5 "/usr/include/gnu/stubs.h" 2 3 4 > > ># 1 "/usr/include/gnu/stubs-32.h" 1 3 4 ># 8 "/usr/include/gnu/stubs.h" 2 3 4 ># 355 "/usr/include/features.h" 2 3 4 ># 27 "/usr/include/stdint.h" 2 3 4 ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 28 "/usr/include/stdint.h" 2 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/stdint.h" 2 3 4 ># 37 "/usr/include/stdint.h" 3 4 >typedef signed char int8_t; >typedef short int int16_t; >typedef int int32_t; > > > >__extension__ >typedef long long int int64_t; > > > > >typedef unsigned char uint8_t; >typedef unsigned short int uint16_t; > >typedef unsigned int uint32_t; > > > > > >__extension__ >typedef unsigned long long int uint64_t; > > > > > > >typedef signed char int_least8_t; >typedef short int int_least16_t; >typedef int int_least32_t; > > > >__extension__ >typedef long long int int_least64_t; > > > >typedef unsigned char uint_least8_t; >typedef unsigned short int uint_least16_t; >typedef unsigned int uint_least32_t; > > > >__extension__ >typedef unsigned long long int uint_least64_t; > > > > > > >typedef signed char int_fast8_t; > > > > > >typedef int int_fast16_t; >typedef int int_fast32_t; >__extension__ >typedef long long int int_fast64_t; > > > >typedef unsigned char uint_fast8_t; > > > > > >typedef unsigned int uint_fast16_t; >typedef unsigned int uint_fast32_t; >__extension__ >typedef unsigned long long int uint_fast64_t; ># 126 "/usr/include/stdint.h" 3 4 >typedef int intptr_t; > > >typedef unsigned int uintptr_t; ># 138 "/usr/include/stdint.h" 3 4 >__extension__ >typedef long long int intmax_t; >__extension__ >typedef unsigned long long int uintmax_t; ># 23 "../oscl/oscl_base.h" 2 > >typedef int8_t int8; >typedef uint8_t uint8; >typedef int16_t int16; >typedef uint16_t uint16; >typedef int32_t int32; >typedef uint32_t uint32; >typedef int64_t int64; >typedef uint64_t uint64; ># 55 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/gsm_amr_typedefs.h" 2 ># 76 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/gsm_amr_typedefs.h" >typedef int8 Word8; > > > >typedef uint8 UWord8; ># 89 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/gsm_amr_typedefs.h" >typedef int16 Word16; > > > > >typedef uint16 UWord16; ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/gsm_amr_typedefs.h" >typedef int32 Word32; > > > >typedef uint32 UWord32; > > > > > > > >typedef int Bool; ># 151 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/gsm_amr_typedefs.h" >typedef int32 Flag; ># 70 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/typedef.h" 2 ># 65 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/mode.h" 1 ># 63 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/mode.h" > enum Mode { MR475 = 0, > MR515, > MR59, > MR67, > MR74, > MR795, > MR102, > MR122, > > MRDTX, > > N_MODES > > }; ># 66 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.h" 2 ># 99 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.h" > typedef struct > { > Word16 T0_prev_subframe; > } Pitch_frState; > > > > > > > Word16 Pitch_fr_init(Pitch_frState **st); > > > > > > > Word16 Pitch_fr_reset(Pitch_frState *st); > > > > > void Pitch_fr_exit(Pitch_frState **st); > > > > > Word16 Pitch_fr( > Pitch_frState *st, > enum Mode mode, > Word16 T_op[], > Word16 exc[], > Word16 xn[], > Word16 h[], > > Word16 L_subfr, > Word16 i_subfr, > Word16 *pit_frac, > Word16 *resu3, > Word16 *ana_index, > Flag *pOverflow > ); ># 88 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/oper_32b.h" 1 ># 59 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/oper_32b.h" ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/typedef.h" 1 ># 60 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/oper_32b.h" 2 > ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/div_32.h" 1 ># 65 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/div_32.h" ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basicop_malloc.h" 1 ># 86 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basicop_malloc.h" > extern Flag Overflow; > extern Flag Carry; ># 66 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/div_32.h" 2 ># 104 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/div_32.h" > Word32 Div_32(Word32 L_num, > Word16 L_denom_hi, > Word16 L_denom_lo, > Flag *pOverflow) ; ># 62 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/oper_32b.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_comp.h" 1 ># 104 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_comp.h" > Word32 L_Comp(Word16 hi, Word16 lo, Flag *pOverflow); ># 63 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/oper_32b.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_extract.h" 1 ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_extract.h" > void L_Extract(Word32 L_var, > Word16 *pL_var_hi, > Word16 *pL_var_lo, > Flag *pOverflow); ># 64 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/oper_32b.h" 2 ># 89 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/cnst.h" 1 ># 90 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/enc_lag3.h" 1 ># 95 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/enc_lag3.h" > typedef struct > { > Word16 past_gain; > } agcState; > > > > > > Word16 > Enc_lag3( > Word16 T0, > Word16 T0_frac, > Word16 T0_prev, > Word16 T0_min, > Word16 T0_max, > Word16 delta_flag, > Word16 flag4, > Flag *pOverflow > ); ># 91 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/enc_lag6.h" 1 ># 105 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/enc_lag6.h" > Word16 Enc_lag6( > Word16 T0, > Word16 T0_frac, > Word16 T0_min, > Word16 delta_flag, > Flag *pOverflow > ); ># 92 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/inter_36.h" 1 ># 102 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/inter_36.h" > Word16 Interpol_3or6( > Word16 *x, > Word16 frac, > Word16 flag3, > Flag *pOverflow > ); ># 93 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/inv_sqrt.h" 1 ># 88 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/inv_sqrt.h" > extern Word16 inv_sqrt_tbl[]; ># 105 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/inv_sqrt.h" > Word32 Inv_sqrt( > Word32 L_x, > Flag *pOverflow > ); ># 94 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/convolve.h" 1 ># 72 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/convolve.h" > void Convolve( > Word16 x[], > Word16 h[], > Word16 y[], > Word16 L > ); ># 95 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 > ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 1 ># 75 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" 1 ># 118 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word32 L_add(register Word32 L_var1, register Word32 L_var2, Flag *pOverflow) > { > Word32 L_sum; > > L_sum = L_var1 + L_var2; > > if ((L_var1 ^ L_var2) >= 0) > { > if ((L_sum ^ L_var1) < 0) > { > L_sum = (L_var1 < 0) ? (Word32)0x80000000L : (Word32)0x7fffffffL; > *pOverflow = 1; > } > } > > return (L_sum); > } ># 157 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word32 L_sub(register Word32 L_var1, register Word32 L_var2, > register Flag *pOverflow) > { > Word32 L_diff; > > L_diff = L_var1 - L_var2; > > if ((L_var1 ^ L_var2) < 0) > { > if ((L_diff ^ L_var1) & (Word32)0x80000000L) > { > L_diff = (L_var1 < 0L) ? (Word32)0x80000000L : (Word32)0x7fffffffL; > *pOverflow = 1; > } > } > > return (L_diff); > } ># 199 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) > { > Word32 result; > Word32 L_sum; > result = (Word32) var1 * var2; > if (result != (Word32) 0x40000000L) > { > L_sum = (result << 1) + L_var3; > > > if ((L_var3 ^ result) > 0) > { > if ((L_sum ^ L_var3) < 0) > { > L_sum = (L_var3 < 0) ? (Word32)0x80000000L : (Word32)0x7fffffffL; > *pOverflow = 1; > } > } > } > else > { > *pOverflow = 1; > L_sum = (Word32)0x7fffffffL; > } > return (L_sum); > } ># 247 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) > { > register Word32 L_product; > > L_product = (Word32) var1 * var2; > > if (L_product != (Word32) 0x40000000L) > { > L_product <<= 1; > } > else > { > *pOverflow = 1; > L_product = (Word32)0x7fffffffL; > } > > return (L_product); > } ># 291 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) > { > Word32 result; > > result = L_mult(var1, var2, pOverflow); > result = L_sub(L_var3, result, pOverflow); > > return (result); > } ># 321 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word32 Mpy_32(Word16 L_var1_hi, > Word16 L_var1_lo, > Word16 L_var2_hi, > Word16 L_var2_lo, > Flag *pOverflow) > { > Word32 L_product; > Word32 L_sum; > Word32 product32; > > (void)(pOverflow); > L_product = (Word32) L_var1_hi * L_var2_hi; > > if (L_product != (Word32) 0x40000000L) > { > L_product <<= 1; > } > else > { > L_product = (Word32)0x7fffffffL; > } > > > product32 = ((Word32) L_var1_hi * L_var2_lo) >> 15; > > > L_sum = L_product + (product32 << 1); > > if ((L_product ^ product32) > 0) > { > if ((L_sum ^ L_product) < 0) > { > L_sum = (L_product < 0) ? (Word32)0x80000000L : (Word32)0x7fffffffL; > } > } > > L_product = L_sum; > > > product32 = ((Word32) L_var1_lo * L_var2_hi) >> 15; > > > L_sum = L_product + (product32 << 1); > > if ((L_product ^ product32) > 0) > { > if ((L_sum ^ L_product) < 0) > { > L_sum = (L_product < 0) ? (Word32)0x80000000L : (Word32)0x7fffffffL; > } > } > return (L_sum); > } ># 395 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word32 Mpy_32_16(Word16 L_var1_hi, > Word16 L_var1_lo, > Word16 var2, > Flag *pOverflow) > { > > Word32 L_product; > Word32 L_sum; > Word32 result; > L_product = (Word32) L_var1_hi * var2; > > if (L_product != (Word32) 0x40000000L) > { > L_product <<= 1; > } > else > { > *pOverflow = 1; > L_product = (Word32)0x7fffffffL; > } > > result = ((Word32)L_var1_lo * var2) >> 15; > > L_sum = L_product + (result << 1); > > if ((L_product ^ result) > 0) > { > if ((L_sum ^ L_product) < 0) > { > L_sum = (L_product < 0) ? (Word32)0x80000000L : (Word32)0x7fffffffL; > *pOverflow = 1; > } > } > return (L_sum); > > } ># 453 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op_c_equivalent.h" > static inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) > { > register Word32 product; > > product = ((Word32) var1 * var2) >> 15; > > > > > > if (product > 0x00007fffL) > { > *pOverflow = 1; > product = (Word32) (Word16)0x7fff; > } > > > > > return ((Word16) product); > } > > > static inline Word32 amrnb_fxp_mac_16_by_16bb(Word32 L_var1, Word32 L_var2, Word32 L_var3) > { > Word32 result; > > result = L_var3 + L_var1 * L_var2; > > return result; > } > > static inline Word32 amrnb_fxp_msu_16_by_16bb(Word32 L_var1, Word32 L_var2, Word32 L_var3) > { > Word32 result; > > result = L_var3 - L_var1 * L_var2; > > return result; > } ># 76 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 > > > > > ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/add.h" 1 ># 106 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/add.h" > Word16 add(Word16 var1, Word16 var2, Flag *pOverflow); ># 82 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/div_s.h" 1 ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/div_s.h" > Word16 div_s(Word16 var1, Word16 var2); ># 83 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 > ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/extract_h.h" 1 ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/extract_h.h" > Word16 extract_h(Word32 L_var1); ># 85 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/extract_l.h" 1 ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/extract_l.h" > Word16 extract_l(Word32 L_var1); ># 86 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_deposit_h.h" 1 ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_deposit_h.h" > Word32 L_deposit_h(Word16 var1); ># 87 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_deposit_l.h" 1 ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_deposit_l.h" > Word32 L_deposit_l(Word16 var1); ># 88 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_shr_r.h" 1 ># 104 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_shr_r.h" > Word32 L_shr_r(Word32 L_var1, Word16 var2, Flag *pOverflow); ># 89 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/mult_r.h" 1 ># 106 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/mult_r.h" > Word16 mult_r(Word16 var1, Word16 var2, Flag *pOverflow); ># 90 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/norm_l.h" 1 ># 107 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/norm_l.h" > Word16 norm_l(Word32 L_var1); ># 91 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/norm_s.h" 1 ># 106 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/norm_s.h" > Word16 norm_s(Word16 var1); ># 92 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/round.h" 1 ># 106 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/round.h" > Word16 pv_round(Word32 L_var1, Flag *pOverflow); ># 93 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/shr_r.h" 1 ># 104 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/shr_r.h" > Word16 shr_r(Word16 var1, Word16 var2, Flag *pOverflow); ># 94 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/sub.h" 1 ># 106 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/sub.h" > Word16 sub(Word16 var1, Word16 var2, Flag *pOverflow); ># 95 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/shr.h" 1 ># 106 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/shr.h" > Word16 shr(Word16 var1, Word16 var2, Flag *pOverflow); ># 96 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_abs.h" 1 ># 100 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_abs.h" > Word32 L_abs(Word32 L_var1); ># 97 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 1 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_negate.h" 1 ># 103 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/l_negate.h" > Word32 L_negate(Word32 L_var1); ># 98 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" 2 ># 164 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" > static inline Word32 Mac_32(Word32 L_var3, > Word16 L_var1_hi, > Word16 L_var1_lo, > Word16 L_var2_hi, > Word16 L_var2_lo, > Flag *pOverflow) > { > Word16 product; > > L_var3 = L_mac(L_var3, L_var1_hi, L_var2_hi, pOverflow); > > product = mult(L_var1_hi, L_var2_lo, pOverflow); > L_var3 = L_mac(L_var3, product, 1, pOverflow); > > product = mult(L_var1_lo, L_var2_hi, pOverflow); > L_var3 = L_mac(L_var3, product, 1, pOverflow); > > return (L_var3); > } ># 208 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" > static inline Word32 Mac_32_16(Word32 L_var3, > Word16 L_var1_hi, > Word16 L_var1_lo, > Word16 var2, > Flag *pOverflow) > { > Word16 product; > > L_var3 = L_mac(L_var3, L_var1_hi, var2, pOverflow); > > product = mult(L_var1_lo, var2, pOverflow); > L_var3 = L_mac(L_var3, product, 1, pOverflow); > > return (L_var3); > } ># 244 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" > static inline Word16 negate(Word16 var1) > { > return (((var1 == (Word16)0x8000) ? (Word16)0x7fff : -var1)); > } ># 275 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" > static inline Word16 shl(Word16 var1, Word16 var2, Flag *pOverflow) > { > Word16 var_out = 0; > > (void)(pOverflow); > > if (var2 < 0) > { > var2 = -var2; > if (var2 < 15) > { > var_out = var1 >> var2; > } > > } > else > { > var_out = var1 << var2; > if (var_out >> var2 != var1) > { > var_out = (var1 >> 15) ^ (Word16)0x7fff; > } > } > return (var_out); > } ># 327 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" > static inline Word32 L_shl(Word32 L_var1, Word16 var2, Flag *pOverflow) > { > Word32 L_var_out = 0; > > (void)(pOverflow); > > if (var2 > 0) > { > L_var_out = L_var1 << var2; > if (L_var_out >> var2 != L_var1) > { > L_var_out = (L_var1 >> 31) ^ (Word32)0x7fffffffL; > } > } > else > { > var2 = -var2; > if (var2 < 31) > { > L_var_out = L_var1 >> var2; > } > > } > > return (L_var_out); > } ># 380 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" > static inline Word32 L_shr(Word32 L_var1, Word16 var2, Flag *pOverflow) > { > Word32 L_var_out = 0; > > (void)(pOverflow); > > if (var2 > 0) > { > if (var2 < 31) > { > L_var_out = L_var1 >> var2; > } > } > else > { > var2 = -var2; > > L_var_out = L_var1 << (var2) ; > if ((L_var_out >> (var2)) != L_var1) > { > L_var_out = (L_var1 >> 31) ^ (Word32)0x7fffffffL; > } > > } > > return (L_var_out); > } ># 430 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/common/include/basic_op.h" > static inline Word16 abs_s(Word16 var1) > { > > Word16 y = var1 - (var1 < 0); > y = y ^(y >> 15); > return (y); > > } ># 97 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 1 "../oscl/oscl_mem.h" 1 ># 26 "../oscl/oscl_mem.h" ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.2/include/stddef.h" 1 3 4 ># 214 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.2/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 326 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.2/include/stddef.h" 3 4 >typedef long int wchar_t; ># 34 "/usr/include/stdlib.h" 2 3 4 > > ># 96 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > > > > > >__extension__ typedef struct > { > long long int quot; > long long int rem; > } lldiv_t; > > ># 140 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; > > > > >extern double atof (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern int atoi (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int atol (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern float strtof (__const char *__restrict __nptr, > char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >extern long double strtold (__const char *__restrict __nptr, > char **__restrict __endptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 207 "/usr/include/stdlib.h" 3 4 > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 277 "/usr/include/stdlib.h" 3 4 > >extern __inline __attribute__ ((__gnu_inline__)) double >__attribute__ ((__nothrow__)) atof (__const char *__nptr) >{ > return strtod (__nptr, (char **) ((void *)0)); >} >extern __inline __attribute__ ((__gnu_inline__)) int >__attribute__ ((__nothrow__)) atoi (__const char *__nptr) >{ > return (int) strtol (__nptr, (char **) ((void *)0), 10); >} >extern __inline __attribute__ ((__gnu_inline__)) long int >__attribute__ ((__nothrow__)) atol (__const char *__nptr) >{ > return strtol (__nptr, (char **) ((void *)0), 10); >} > > > > >__extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int >__attribute__ ((__nothrow__)) atoll (__const char *__nptr) >{ > return strtoll (__nptr, (char **) ((void *)0), 10); >} > ># 378 "/usr/include/stdlib.h" 3 4 > > >extern int rand (void) __attribute__ ((__nothrow__)); > >extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); > ># 469 "/usr/include/stdlib.h" 3 4 > > >extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > >extern void *calloc (size_t __nmemb, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > > > > > > > > > > >extern void *realloc (void *__ptr, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__)); > >extern void free (void *__ptr) __attribute__ ((__nothrow__)); > ># 511 "/usr/include/stdlib.h" 3 4 > > >extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > ># 527 "/usr/include/stdlib.h" 3 4 > > > > >extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > >extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > >extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >extern char *__secure_getenv (__const char *__name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 640 "/usr/include/stdlib.h" 3 4 > > > > > >extern int system (__const char *__command) ; > ># 670 "/usr/include/stdlib.h" 3 4 >typedef int (*__compar_fn_t) (__const void *, __const void *); ># 680 "/usr/include/stdlib.h" 3 4 > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))) ; > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); ># 699 "/usr/include/stdlib.h" 3 4 >extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > > > >__extension__ extern long long int llabs (long long int __x) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > > > > > > > >extern div_t div (int __numer, int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern ldiv_t ldiv (long int __numer, long int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > > > > >__extension__ extern lldiv_t lldiv (long long int __numer, > long long int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > ># 784 "/usr/include/stdlib.h" 3 4 > > > >extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > __attribute__ ((__nothrow__)); > ># 891 "/usr/include/stdlib.h" 3 4 > ># 27 "../oscl/oscl_mem.h" 2 ># 1 "/usr/include/string.h" 1 3 4 ># 28 "/usr/include/string.h" 3 4 > > > > > ># 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.2/include/stddef.h" 1 3 4 ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > ># 57 "/usr/include/string.h" 3 4 > > >extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 82 "/usr/include/string.h" 3 4 > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 181 "/usr/include/string.h" 3 4 > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); ># 240 "/usr/include/string.h" 3 4 > > >extern size_t strlen (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 254 "/usr/include/string.h" 3 4 > > >extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); > ># 294 "/usr/include/string.h" 3 4 >extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 420 "/usr/include/string.h" 3 4 ># 1 "/usr/include/bits/string.h" 1 3 4 ># 421 "/usr/include/string.h" 2 3 4 > > ># 1 "/usr/include/bits/string2.h" 1 3 4 ># 80 "/usr/include/bits/string2.h" 3 4 >typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2; >typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3; >typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4; >typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5; >typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6; >typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7; >typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8; ># 394 "/usr/include/bits/string2.h" 3 4 >extern void *__rawmemchr (const void *__s, int __c); ># 969 "/usr/include/bits/string2.h" 3 4 >extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c1 (__const char *__s, int __reject); >extern __inline __attribute__ ((__gnu_inline__)) size_t >__strcspn_c1 (__const char *__s, int __reject) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject) > ++__result; > return __result; >} > >extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c2 (__const char *__s, int __reject1, > int __reject2); >extern __inline __attribute__ ((__gnu_inline__)) size_t >__strcspn_c2 (__const char *__s, int __reject1, int __reject2) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2) > ++__result; > return __result; >} > >extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c3 (__const char *__s, int __reject1, > int __reject2, int __reject3); >extern __inline __attribute__ ((__gnu_inline__)) size_t >__strcspn_c3 (__const char *__s, int __reject1, int __reject2, > int __reject3) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2 && __s[__result] != __reject3) > ++__result; > return __result; >} ># 1045 "/usr/include/bits/string2.h" 3 4 >extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c1 (__const char *__s, int __accept); >extern __inline __attribute__ ((__gnu_inline__)) size_t >__strspn_c1 (__const char *__s, int __accept) >{ > register size_t __result = 0; > > while (__s[__result] == __accept) > ++__result; > return __result; >} > >extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline __attribute__ ((__gnu_inline__)) size_t >__strspn_c2 (__const char *__s, int __accept1, int __accept2) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2) > ++__result; > return __result; >} > >extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline __attribute__ ((__gnu_inline__)) size_t >__strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2 > || __s[__result] == __accept3) > ++__result; > return __result; >} ># 1121 "/usr/include/bits/string2.h" 3 4 >extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline __attribute__ ((__gnu_inline__)) char * >__strpbrk_c2 (__const char *__s, int __accept1, int __accept2) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} > >extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline __attribute__ ((__gnu_inline__)) char * >__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, > int __accept3) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 > && *__s != __accept3) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} ># 1172 "/usr/include/bits/string2.h" 3 4 >extern __inline __attribute__ ((__gnu_inline__)) char *__strtok_r_1c (char *__s, char __sep, char **__nextp); >extern __inline __attribute__ ((__gnu_inline__)) char * >__strtok_r_1c (char *__s, char __sep, char **__nextp) >{ > char *__result; > if (__s == ((void *)0)) > __s = *__nextp; > while (*__s == __sep) > ++__s; > __result = ((void *)0); > if (*__s != '\0') > { > __result = __s++; > while (*__s != '\0') > if (*__s++ == __sep) > { > __s[-1] = '\0'; > break; > } > } > *__nextp = __s; > return __result; >} ># 1204 "/usr/include/bits/string2.h" 3 4 >extern char *__strsep_g (char **__stringp, __const char *__delim); ># 1222 "/usr/include/bits/string2.h" 3 4 >extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_1c (char **__s, char __reject); >extern __inline __attribute__ ((__gnu_inline__)) char * >__strsep_1c (char **__s, char __reject) >{ > register char *__retval = *__s; > if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) > *(*__s)++ = '\0'; > return __retval; >} > >extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_2c (char **__s, char __reject1, char __reject2); >extern __inline __attribute__ ((__gnu_inline__)) char * >__strsep_2c (char **__s, char __reject1, char __reject2) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} > >extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_3c (char **__s, char __reject1, char __reject2, > char __reject3); >extern __inline __attribute__ ((__gnu_inline__)) char * >__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} ># 424 "/usr/include/string.h" 2 3 4 ># 432 "/usr/include/string.h" 3 4 > ># 28 "../oscl/oscl_mem.h" 2 ># 98 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" 2 ># 125 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >static const struct >{ > Word16 max_frac_lag; > Word16 flag3; > Word16 first_frac; > Word16 last_frac; > Word16 delta_int_low; > Word16 delta_int_range; > Word16 delta_frc_low; > Word16 delta_frc_range; > Word16 pit_min; >} mode_dep_parm[N_MODES] = >{ > { 84, 1, -2, 2, 5, 10, 5, 9, 20 }, > { 84, 1, -2, 2, 5, 10, 5, 9, 20 }, > { 84, 1, -2, 2, 3, 6, 5, 9, 20 }, > { 84, 1, -2, 2, 3, 6, 5, 9, 20 }, > { 84, 1, -2, 2, 3, 6, 5, 9, 20 }, > { 84, 1, -2, 2, 3, 6, 10, 19, 20 }, > { 84, 1, -2, 2, 3, 6, 5, 9, 20 }, > { 94, 0, -3, 3, 3, 6, 5, 9, 18 } >}; ># 311 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >static void Norm_Corr(Word16 exc[], > Word16 xn[], > Word16 h[], > Word16 L_subfr, > Word16 t_min, > Word16 t_max, > Word16 corr_norm[], > Flag *pOverflow) >{ > Word16 i; > Word16 j; > Word16 k; > Word16 corr_h; > Word16 corr_l; > Word16 norm_h; > Word16 norm_l; > Word32 s; > Word32 s2; > Word16 excf[40]; > Word16 scaling; > Word16 h_fac; > Word16 *s_excf; > Word16 scaled_excf[40]; > Word16 *p_s_excf; > Word16 *p_excf; > Word16 temp; > Word16 *p_x; > Word16 *p_h; > > k = -t_min; > > > > Convolve(&exc[k], h, excf, L_subfr); > > > s = 0; > p_s_excf = scaled_excf; > p_excf = excf; > > for (j = (L_subfr >> 1); j != 0; j--) > { > temp = *(p_excf++); > *(p_s_excf++) = temp >> 2; > s += (Word32) temp * temp; > temp = *(p_excf++); > *(p_s_excf++) = temp >> 2; > s += (Word32) temp * temp; > } > > > if (s <= (67108864L >> 1)) > { > s_excf = excf; > h_fac = 12; > scaling = 0; > } > else > { > > s_excf = scaled_excf; > h_fac = 14; > scaling = 2; > } > > > > for (i = t_min; i <= t_max; i++) > { > > > s = s2 = 0; > p_x = xn; > p_s_excf = s_excf; > j = L_subfr >> 1; > > while (j--) > { > s += (Word32) * (p_x++) * *(p_s_excf); > s2 += ((Word32)(*(p_s_excf)) * (*(p_s_excf))); > p_s_excf++; > s += (Word32) * (p_x++) * *(p_s_excf); > s2 += ((Word32)(*(p_s_excf)) * (*(p_s_excf))); > p_s_excf++; > } > > s2 = s2 << 1; > s2 = Inv_sqrt(s2, pOverflow); > norm_h = (Word16)(s2 >> 16); > norm_l = (Word16)((s2 >> 1) - (norm_h << 15)); > corr_h = (Word16)(s >> 15); > corr_l = (Word16)((s) - (corr_h << 15)); > > > > s = Mpy_32(corr_h, corr_l, norm_h, norm_l, pOverflow); > > corr_norm[i] = (Word16) s ; > > > if (i != t_max) > { > k--; > temp = exc[k]; > p_s_excf = &s_excf[L_subfr - 1]; > p_h = &h[L_subfr - 1]; > > p_excf = &s_excf[L_subfr - 2]; > for (j = (L_subfr - 1) >> 1; j != 0; j--) > { > s = ((Word32) temp * *(p_h--)) >> h_fac; > *(p_s_excf--) = (Word16) s + *(p_excf--); > s = ((Word32) temp * *(p_h--)) >> h_fac; > *(p_s_excf--) = (Word16) s + *(p_excf--); > } > > s = ((Word32) temp * *(p_h)) >> h_fac; > *(p_s_excf--) = (Word16) s + *(p_excf); > > *(p_s_excf) = temp >> scaling; > } > > } > return; >} ># 564 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >static void searchFrac( > Word16 *lag, > Word16 *frac, > > Word16 last_frac, > Word16 corr[], > Word16 flag3, > > Flag *pOverflow >) >{ > Word16 i; > Word16 max; > Word16 corr_int; > > > > > max = Interpol_3or6(&corr[*lag], *frac, flag3, pOverflow); > > > for (i = *frac + 1; i <= last_frac; i++) > { > corr_int = Interpol_3or6(&corr[*lag], i, flag3, pOverflow); > if (corr_int > max) > { > max = corr_int; > *frac = i; > } > } > > if (flag3 == 0) > { > > > if (*frac == -3) > { > *frac = 3; > (*lag)--; > } > } > else > { > > > if (*frac == -2) > { > *frac = 1; > (*lag)--; > } > if (*frac == 2) > { > *frac = -1; > (*lag)++; > } > } >} ># 718 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >static void getRange( > Word16 T0, > Word16 delta_low, > Word16 delta_range, > Word16 pitmin, > Word16 pitmax, > Word16 *t0_min, > Word16 *t0_max, > Flag *pOverflow) >{ > > Word16 temp; > (void)(pOverflow); > > temp = *t0_min; > temp = T0 - delta_low; > if (temp < pitmin) > { > temp = pitmin; > } > *t0_min = temp; > > temp += delta_range; > if (temp > pitmax) > { > temp = pitmax; > *t0_min = pitmax - delta_range; > } > *t0_max = temp; > >} ># 838 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >Word16 Pitch_fr_init(Pitch_frState **state) >{ > Pitch_frState* s; > > if (state == (Pitch_frState **) ((void *)0)) > { > > return -1; > } > *state = ((void *)0); > > > if ((s = (Pitch_frState *) malloc(sizeof(Pitch_frState))) == ((void *)0)) > { > > return -1; > } > > Pitch_fr_reset(s); > *state = s; > > return 0; >} ># 941 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >Word16 Pitch_fr_reset(Pitch_frState *state) >{ > > if (state == (Pitch_frState *) ((void *)0)) > { > > return -1; > } > > state->T0_prev_subframe = 0; > > return 0; >} ># 1033 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >void Pitch_fr_exit(Pitch_frState **state) >{ > if (state == ((void *)0) || *state == ((void *)0)) > return; > > > free(*state); > *state = ((void *)0); > > return; >} ># 1362 "../opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/pitch_fr.cpp" >Word16 Pitch_fr( > Pitch_frState *st, > enum Mode mode, > Word16 T_op[], > Word16 exc[], > Word16 xn[], > Word16 h[], > > Word16 L_subfr, > Word16 i_subfr, > Word16 *pit_frac, > Word16 *resu3, > Word16 *ana_index, > Flag *pOverflow >) >{ > Word16 i; > Word16 t_min; > Word16 t_max; > Word16 t0_min = 0; > Word16 t0_max; > Word16 max; > Word16 lag; > Word16 frac; > Word16 tmp_lag; > Word16 *corr; > Word16 corr_v[40]; > > Word16 max_frac_lag; > Word16 flag3; > Word16 flag4; > Word16 last_frac; > Word16 delta_int_low; > Word16 delta_int_range; > Word16 delta_frc_low; > Word16 delta_frc_range; > Word16 pit_min; > Word16 frame_offset; > Word16 delta_search; > > > > > > max_frac_lag = mode_dep_parm[mode].max_frac_lag; > flag3 = mode_dep_parm[mode].flag3; > frac = mode_dep_parm[mode].first_frac; > last_frac = mode_dep_parm[mode].last_frac; > delta_int_low = mode_dep_parm[mode].delta_int_low; > delta_int_range = mode_dep_parm[mode].delta_int_range; > > delta_frc_low = mode_dep_parm[mode].delta_frc_low; > delta_frc_range = mode_dep_parm[mode].delta_frc_range; > pit_min = mode_dep_parm[mode].pit_min; > > > > > > delta_search = 1; > > if ((i_subfr == 0) || (i_subfr == 80)) > { > > > > if (((mode != MR475) && (mode != MR515)) || (i_subfr != 80)) > { > > > > > delta_search = 0; > > > > > frame_offset = 1; > if (i_subfr == 0) > frame_offset = 0; > > > > > getRange(T_op[frame_offset], delta_int_low, delta_int_range, > pit_min, 143, &t0_min, &t0_max, pOverflow); > } > else > { > > > getRange(st->T0_prev_subframe, delta_frc_low, delta_frc_range, > pit_min, 143, &t0_min, &t0_max, pOverflow); > } > } > else > { > > > > > getRange(st->T0_prev_subframe, delta_frc_low, delta_frc_range, > pit_min, 143, &t0_min, &t0_max, pOverflow); > } > > > > > > t_min = sub(t0_min, 4, pOverflow); > t_max = add(t0_max, 4, pOverflow); > > corr = &corr_v[-t_min]; > > > > > > Norm_Corr(exc, xn, h, L_subfr, t_min, t_max, corr, pOverflow); > > > > > > max = corr[t0_min]; > lag = t0_min; > > for (i = t0_min + 1; i <= t0_max; i++) > { > if (corr[i] >= max) > { > max = corr[i]; > lag = i; > } > } > > > > > if ((delta_search == 0) && (lag > max_frac_lag)) > { > > > > > frac = 0; > } > else > { > > > > > if ((delta_search != 0) && > ((mode == MR475) || (mode == MR515) || > (mode == MR59) || (mode == MR67))) > { > > > > > > tmp_lag = st->T0_prev_subframe; > if (sub(sub(tmp_lag, t0_min, pOverflow), 5, pOverflow) > 0) > tmp_lag = add(t0_min, 5, pOverflow); > if (sub(sub(t0_max, tmp_lag, pOverflow), 4, pOverflow) > 0) > tmp_lag = sub(t0_max, 4, pOverflow); > > if ((lag == tmp_lag) || (lag == (tmp_lag - 1))) > { > > > > searchFrac(&lag, &frac, last_frac, corr, flag3, pOverflow); > > } > else if (lag == (tmp_lag - 2)) > { > > frac = 0; > searchFrac(&lag, &frac, last_frac, corr, flag3, pOverflow); > } > else if (lag == (tmp_lag + 1)) > { > > last_frac = 0; > searchFrac(&lag, &frac, last_frac, corr, flag3, pOverflow); > } > else > { > > frac = 0; > } > } > else > > searchFrac(&lag, &frac, last_frac, corr, flag3, pOverflow); > } > > > > > > if (flag3 != 0) > { > > > > flag4 = 0; > if ((mode == MR475) || (mode == MR515) || > (mode == MR59) || (mode == MR67)) > { > flag4 = 1; > } > > > > *ana_index = Enc_lag3(lag, frac, st->T0_prev_subframe, > t0_min, t0_max, delta_search, flag4, pOverflow); > > > } > else > { > > > *ana_index = Enc_lag6(lag, frac, t0_min, delta_search, pOverflow); > > } > > > > > > st->T0_prev_subframe = lag; > > > > > > *resu3 = flag3; > > *pit_frac = frac; > > return (lag); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 286576
:
205343
| 205371 |
205373