MCPcopy Create free account
hub / github.com/SatDump/SatDump / LowerBoundStep

Function LowerBoundStep

src-core/imgui/implot/implot.cpp:868–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866}
867
868inline int LowerBoundStep(int max_divs, const int* divs, const int* step, int size) {
869 if (max_divs < divs[0])
870 return 0;
871 for (int i = 1; i < size; ++i) {
872 if (max_divs < divs[i])
873 return step[i-1];
874 }
875 return step[size-1];
876}
877
878inline int GetTimeStep(int max_divs, ImPlotTimeUnit unit) {
879 if (unit == ImPlotTimeUnit_Ms || unit == ImPlotTimeUnit_Us) {

Callers 1

GetTimeStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected