Kaydet (Commit) 0beb28ce authored tarafından I-Jui (Ray) Sung's avatar I-Jui (Ray) Sung

GPU Calc: refactor op_financial.cxx to fix warning and bad indentation

Change-Id: I93db1e5d2b03904a3d7787cc16f642ebf4752d85
üst 3e040287
......@@ -2155,10 +2155,8 @@ void OpPrice::GenSlidingWindowFunction(std::stringstream &ss,
ss<<"double tmp3=0;\n ";
ss<<"double tmp4=0,tmp5=0;\n ";
ss<<"double tmp6=0;\n ";
unsigned i = vSubArguments.size();
size_t nItems = 0;
ss <<"\n ";
//while (i-- > 1)
for (size_t i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
......@@ -2248,16 +2246,16 @@ void OpPrice::GenSlidingWindowFunction(std::stringstream &ss,
ss << "return tmp;\n";
ss << "}";
}
void OpPPMT::BinInlineFun(std::set<std::string>& decls,
void OpPPMT::BinInlineFun(std::set<std::string>& decls,
std::set<std::string>& funs)
{
decls.insert(GetZwDecl);
funs.insert(GetZw);
}
void OpPPMT::GenSlidingWindowFunction(std::stringstream &ss,
void OpPPMT::GenSlidingWindowFunction(std::stringstream &ss,
const std::string sSymName, SubArguments &vSubArguments)
{
{
ArgVector argVector;
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
......@@ -2389,7 +2387,7 @@ void OpPrice::GenSlidingWindowFunction(std::stringstream &ss,
ss <<"tmp = pmt - re;\n ";
ss << "return tmp;\n";
ss << "}";
}
}
void OpCoupdaybs::BinInlineFun(std::set<std::string>& decls,
std::set<std::string>& funs)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment