PandA-2024.02
|
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | SIZE 100 |
#define | IN_END 100 |
Functions | |
int | encode (int, int) |
void | decode (int) |
int | filtez (int *bpl, int *dlt) |
void | upzero (int dlt, int *dlti, int *bli) |
int | filtep (int rlt1, int al1, int rlt2, int al2) |
int | quantl (int el, int detl) |
int | logscl (int il, int nbl) |
int | scalel (int nbl, int shift_constant) |
int | uppol2 (int al1, int al2, int plt, int plt1, int plt2) |
int | uppol1 (int al1, int apl2, int plt, int plt1) |
int | logsch (int ih, int nbh) |
void | reset () |
int | abs (int n) |
void | adpcm_main () |
int | main () |
Variables | |
int | tqmf [24] |
const int | h [24] |
int | xl |
int | xh |
int | accumc [11] |
int | accumd [11] |
int | xout1 |
int | xout2 |
int | xs |
int | xd |
int | il |
int | szl |
int | spl |
int | sl |
int | el |
const int | qq4_code4_table [16] |
const int | qq6_code6_table [64] |
int | delay_bpl [6] |
int | delay_dltx [6] |
const int | wl_code_table [16] |
const int | ilb_table [32] |
int | nbl |
int | al1 |
int | al2 |
int | plt |
int | plt1 |
int | plt2 |
int | dlt |
int | rlt |
int | rlt1 |
int | rlt2 |
const int | decis_levl [30] |
int | detl |
const int | quant26bt_pos [31] |
const int | quant26bt_neg [31] |
int | deth |
int | sh |
int | eh |
const int | qq2_code2_table [4] |
const int | wh_code_table [4] |
int | dh |
int | ih |
int | nbh |
int | szh |
int | sph |
int | ph |
int | yh |
int | rh |
int | delay_dhx [6] |
int | delay_bph [6] |
int | ah1 |
int | ah2 |
int | ph1 |
int | ph2 |
int | rh1 |
int | rh2 |
int | ilr |
int | rl |
int | dec_deth |
int | dec_detl |
int | dec_dlt |
int | dec_del_bpl [6] |
int | dec_del_dltx [6] |
int | dec_plt |
int | dec_plt1 |
int | dec_plt2 |
int | dec_szl |
int | dec_spl |
int | dec_sl |
int | dec_rlt1 |
int | dec_rlt2 |
int | dec_rlt |
int | dec_al1 |
int | dec_al2 |
int | dl |
int | dec_nbl |
int | dec_dh |
int | dec_nbh |
int | dec_del_bph [6] |
int | dec_del_dhx [6] |
int | dec_szh |
int | dec_rh1 |
int | dec_rh2 |
int | dec_ah1 |
int | dec_ah2 |
int | dec_ph |
int | dec_sph |
int | dec_sh |
int | dec_ph1 |
int | dec_ph2 |
const int | test_data [SIZE] |
int | compressed [SIZE] |
int | result [SIZE] |
const int | test_compressed [SIZE] |
const int | test_result [SIZE] |
#define IN_END 100 |
Definition at line 776 of file adpcm.c.
Referenced by adpcm_main(), and main().
#define SIZE 100 |
Definition at line 775 of file adpcm.c.
Referenced by check_data(), data_to_input(), data_to_output(), input_to_data(), main(), merge(), ms_mergesort(), and output_to_data().
int abs | ( | int | n | ) |
Definition at line 236 of file adpcm.c.
Referenced by __attribute__(), encode(), and quantl().
void adpcm_main | ( | ) |
void decode | ( | int | input | ) |
Definition at line 401 of file adpcm.c.
References accumc, accumd, dec_ah1, dec_ah2, dec_al1, dec_al2, dec_del_bph, dec_del_bpl, dec_del_dhx, dec_del_dltx, dec_deth, dec_detl, dec_dh, dec_dlt, dec_nbh, dec_nbl, dec_ph, dec_ph1, dec_ph2, dec_plt, dec_plt1, dec_plt2, dec_rh1, dec_rh2, dec_rlt, dec_rlt1, dec_rlt2, dec_sh, dec_sl, dec_sph, dec_spl, dec_szh, dec_szl, dl, filtep(), filtez(), h, ih, il, ilr, L, logsch(), logscl(), qq2_code2_table, qq4_code4_table, qq6_code6_table, rh, rl, scalel(), uppol1(), uppol2(), upzero(), xd, xout1, xout2, and xs.
Referenced by adpcm_main().
int encode | ( | int | xin1, |
int | xin2 | ||
) |
Definition at line 248 of file adpcm.c.
Referenced by adpcm_main().
int filtep | ( | int | rlt1, |
int | al1, | ||
int | rlt2, | ||
int | al2 | ||
) |
int filtez | ( | int * | bpl, |
int * | dlt | ||
) |
Definition at line 581 of file adpcm.c.
Referenced by __attribute__(), decode(), and encode().
int logsch | ( | int | ih, |
int | nbh | ||
) |
Definition at line 754 of file adpcm.c.
References ih, L, and wh_code_table.
Referenced by __attribute__(), decode(), and encode().
int logscl | ( | int | il, |
int | nbl | ||
) |
Definition at line 634 of file adpcm.c.
References L, and wl_code_table.
Referenced by __attribute__(), decode(), and encode().
int main | ( | void | ) |
Definition at line 859 of file adpcm.c.
References adpcm_main(), compressed, IN_END, main_result, result, test_compressed, and test_result.
int quantl | ( | int | el, |
int | detl | ||
) |
Definition at line 608 of file adpcm.c.
References abs(), decis_levl, L, quant26bt_neg, and quant26bt_pos.
Referenced by __attribute__(), and encode().
void reset | ( | ) |
Definition at line 540 of file adpcm.c.
References accumc, accumd, ah1, ah2, al1, al2, dec_ah1, dec_ah2, dec_al1, dec_al2, dec_del_bph, dec_del_bpl, dec_del_dhx, dec_del_dltx, dec_deth, dec_detl, dec_nbh, dec_nbl, dec_ph1, dec_ph2, dec_plt1, dec_plt2, dec_rh1, dec_rh2, dec_rlt1, dec_rlt2, delay_bph, delay_bpl, delay_dhx, delay_dltx, deth, detl, nbh, nbl, ph1, ph2, plt1, plt2, rh1, rh2, rlt1, rlt2, and tqmf.
Referenced by ParallelMemoryFuBinding::add_to_SM(), adpcm_main(), connectClockAndReset(), classic_datapath::InternalExec(), and datapath_parallel_cs::InternalExec().
int scalel | ( | int | nbl, |
int | shift_constant | ||
) |
int uppol1 | ( | int | al1, |
int | apl2, | ||
int | plt, | ||
int | plt1 | ||
) |
int uppol2 | ( | int | al1, |
int | al2, | ||
int | plt, | ||
int | plt1, | ||
int | plt2 | ||
) |
void upzero | ( | int | dlt, |
int * | dlti, | ||
int * | bli | ||
) |
int ah1 |
Definition at line 196 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int ah2 |
Definition at line 196 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int al1 |
Definition at line 141 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int al2 |
Definition at line 141 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int compressed[SIZE] |
Definition at line 800 of file adpcm.c.
Referenced by adpcm_main(), and main().
const int decis_levl[30] |
int delay_bph[6] |
Definition at line 194 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int delay_bpl[6] |
Definition at line 124 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int delay_dhx[6] |
Definition at line 192 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int delay_dltx[6] |
Definition at line 126 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int deth |
Definition at line 175 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int detl |
Definition at line 154 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int dh |
Definition at line 188 of file adpcm.c.
Referenced by __attribute__(), and encode().
int dl |
Definition at line 212 of file adpcm.c.
Referenced by decode(), meilp_solver::set_debug_level(), and meilp_solver::setMaximumSeconds().
int dlt |
Definition at line 143 of file adpcm.c.
Referenced by __attribute__(), encode(), and upzero().
int eh |
Definition at line 177 of file adpcm.c.
Referenced by __attribute__(), and encode().
int el |
Definition at line 105 of file adpcm.c.
Referenced by __attribute__(), determine_memory_accesses::analyze_node(), treeVocabularyTokenTypes::bison2token(), treeVocabularyTokenTypes::check_tokens(), BitLatticeManipulator::constructor_bitstring(), constructor_range(), create_tree_manager::createCostTable(), encode(), PragmaAnalysis::Exec(), node_kind_prec_info::print(), xml_foreach_t::xml_foreach_t(), xml_ite_block_t::xml_ite_block_t(), and attribute::xwrite().
const int h[24] |
Definition at line 87 of file adpcm.c.
Referenced by __attribute__(), calc_sha_256(), decode(), encode(), init_array(), and print_array().
int ih |
int il |
Definition at line 105 of file adpcm.c.
Referenced by __attribute__(), decode(), and encode().
const int ilb_table[32] |
int nbh |
Definition at line 189 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int nbl |
Definition at line 140 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int ph |
Definition at line 190 of file adpcm.c.
Referenced by __attribute__(), and encode().
int ph1 |
Definition at line 197 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int ph2 |
Definition at line 197 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int plt |
Definition at line 142 of file adpcm.c.
Referenced by __attribute__(), and encode().
int plt1 |
Definition at line 142 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int plt2 |
Definition at line 142 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
const int qq2_code2_table[4] |
Definition at line 179 of file adpcm.c.
Referenced by __attribute__(), decode(), and encode().
const int qq4_code4_table[16] |
Definition at line 107 of file adpcm.c.
Referenced by __attribute__(), decode(), and encode().
const int qq6_code6_table[64] |
Definition at line 113 of file adpcm.c.
Referenced by decode().
const int quant26bt_neg[31] |
const int quant26bt_pos[31] |
int result[SIZE] |
Definition at line 800 of file adpcm.c.
Referenced by __attribute__(), _DEFUN(), coloring_based_clique_covering< vertex_type >::add_vertex(), bipartite_matching_clique_covering< vertex_type >::add_vertex(), adpcm_main(), black_scholes(), compareMemVarsPair(), TTT_maximal_weighted_clique< Graph >::compute_delta_weight(), TTT_maximal_weighted_clique_fast< Graph >::compute_delta_weight(), create_control_flow_checker(), klut_network_ext::create_lt_v(), PhiOpNode::eval(), UnaryOpNode::eval(), SigmaOpNode::eval(), BinaryOpNode::eval(), TernaryOpNode::eval(), LoadOpNode::eval(), fixedpt_sin(), coloring_based_clique_covering< vertex_type >::get_clique(), bipartite_matching_clique_covering< vertex_type >::get_clique(), Translator::get_exponential_notation(), TTT_maximal_weighted_clique< Graph >::get_max_weight_vertex(), TTT_maximal_weighted_clique_fast< Graph >::get_max_weight_vertex(), TTT_maximal_weighted_clique< Graph >::get_max_weighted_adiacent_intersection(), TTT_maximal_weighted_clique_fast< Graph >::get_max_weighted_adiacent_intersection(), operation::get_type_supported_string(), getint(), bash_flow_wrapper::getStringValue(), NanoXploreWrapper::getStringValue(), AlteraWrapper::getStringValue(), LatticeWrapper::getStringValue(), XilinxWrapper::getStringValue(), hash1(), hash2(), hash3(), hash4(), hls_fp_accumulator(), HWCallInjection::InternalExec(), intersection(), main(), make_copy(), make_random(), maxNumbers(), ModuleArchitecture::ModuleArchitecture(), product(), PseudoCasual(), ref_fp_accumulator(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), LatticeWrapper::toString(), AlteraWrapper::toString(), XilinxWrapper::toString(), unordered_set_difference(), and unordered_set_intersection().
int rh1 |
Definition at line 198 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int rh2 |
Definition at line 198 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
int rlt |
Definition at line 144 of file adpcm.c.
Referenced by __attribute__(), and encode().
int rlt1 |
int rlt2 |
int sh |
Definition at line 176 of file adpcm.c.
Referenced by __attribute__(), encode(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), and LatticeWrapper::toString().
int sl |
Definition at line 105 of file adpcm.c.
Referenced by __attribute__(), Autocorrelation(), tree_manager::check_ssa_uses(), tree_manager::collapse_into(), encode(), string_cst_fix::Exec(), PragmaAnalysis::Exec(), InterfaceInfer::Exec(), CallGraphManager::expandCallGraphFromFunction(), tree_helper::get_used_variables(), tree_helper::GetFunctionSize(), AllocationInformation::GetToDspRegisterDelay(), NI_SSA_liveness::Initialize(), simple_code_motion::Initialize(), Bit_Value::Initialize(), tree_manipulation::InlineFunctionCall(), parm_decl_taken_address_fix::InternalExec(), FixStructsPassedByValue::InternalExec(), HWCallInjection::InternalExec(), PredicateStatements::InternalExec(), SerializeMutualExclusions::InternalExec(), UnComparisonLowering::InternalExec(), SDCCodeMotion::InternalExec(), use_counting::InternalExec(), BasicBlocksCfgComputation::InternalExec(), SwitchFix::InternalExec(), remove_clobber_ga::InternalExec(), FixVdef::InternalExec(), ExtractGimpleCondOp::InternalExec(), UpdateSchedule::InternalExec(), extract_patterns::InternalExec(), call_expr_fix::InternalExec(), eSSA::InternalExec(), rebuild_initialization::InternalExec(), fanout_opt::InternalExec(), NI_SSA_liveness::InternalExec(), BlockFix::InternalExec(), parm2ssa::InternalExec(), compute_implicit_calls::InternalExec(), SplitReturn::InternalExec(), FunctionCallTypeCleanup::InternalExec(), hls_div_cg_ext::InternalExec(), determine_memory_accesses::InternalExec(), CondExprRestructuring::InternalExec(), commutative_expr_restructuring::InternalExec(), VarDeclFix::InternalExec(), virtual_phi_nodes_split::InternalExec(), simple_code_motion::InternalExec(), short_circuit_taf::InternalExec(), dead_code_elimination::InternalExec(), CSE::InternalExec(), FunctionCallOpt::InternalExec(), lut_transformation::InternalExec(), CheckSystemType::InternalExec(), IR_lowering::InternalExec(), soft_float_cg_ext::InternalExec(), tree_helper::is_a_nop_function_decl(), rebuild_initialization2::look_for_ROMs(), Bit_Value_opt::optimize(), InterfaceInfer::setReadInterface(), InterfaceInfer::setWriteInterface(), Schedule::UpdateTime(), FunctionFrontendFlowStep::WriteBBGraphDot(), and BasicBlocksProfilingCWriter::WriteGlobalDeclarations().
int sph |
Definition at line 190 of file adpcm.c.
Referenced by __attribute__(), and encode().
int spl |
Definition at line 105 of file adpcm.c.
Referenced by __attribute__(), and encode().
int szh |
Definition at line 189 of file adpcm.c.
Referenced by __attribute__(), and encode().
int szl |
Definition at line 105 of file adpcm.c.
Referenced by __attribute__(), and encode().
const int test_compressed[SIZE] |
Definition at line 801 of file adpcm.c.
Referenced by main().
const int test_data[SIZE] |
Definition at line 778 of file adpcm.c.
Referenced by adpcm_main().
const int test_result[SIZE] |
Definition at line 813 of file adpcm.c.
Referenced by main().
int tqmf[24] |
Definition at line 83 of file adpcm.c.
Referenced by __attribute__(), encode(), and reset().
const int wh_code_table[4] |
const int wl_code_table[16] |
int xh |
Definition at line 93 of file adpcm.c.
Referenced by __attribute__(), and encode().
int xl |
Definition at line 93 of file adpcm.c.
Referenced by __attribute__(), and encode().
int xout1 |
Definition at line 99 of file adpcm.c.
Referenced by adpcm_main(), and decode().
int xout2 |
Definition at line 99 of file adpcm.c.
Referenced by adpcm_main(), and decode().
int yh |
Definition at line 190 of file adpcm.c.
Referenced by __attribute__(), and encode().