MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_math_scale

Method get_math_scale

DSView/pv/data/mathstack.cpp:307–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307double MathStack::get_math_scale()
308{
309 double scale = 0;
310 switch(_type) {
311 case MATH_ADD:
312 case MATH_SUB:
313 scale = 1.0 / DS_CONF_DSO_VDIVS;
314 break;
315 case MATH_MUL:
316 //scale = 1.0 / (DS_CONF_DSO_VDIVS * DS_CONF_DSO_VDIVS);
317 scale = 1.0 / DS_CONF_DSO_VDIVS;
318 break;
319 case MATH_DIV:
320 scale = 1.0 / DS_CONF_DSO_VDIVS;
321 break;
322 }
323
324 return scale;
325}
326
327const double* MathStack::get_math(uint64_t start)
328{

Callers 1

paint_midMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected