MCPcopy Create free account
hub / github.com/MegEngine/MegCC / interpolate_linear

Function interpolate_linear

compiler/script/tool/cv_remap_table.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static short global_table[INTER_TAB_SIZE * INTER_TAB_SIZE * 2 * 2];
29static bool init_table = false;
30static inline void interpolate_linear(float x, float* coeffs) {
31 coeffs[0] = 1.f - x;
32 coeffs[1] = x;
33}
34static inline void init_inter_tab_1d(float* tab, int tabsz) {
35 float scale = 1.f / tabsz;
36 for (int i = 0; i < tabsz; ++i, tab += 2)

Callers 1

init_inter_tab_1dFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected