MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / LowerBoundStep

Function LowerBoundStep

Source/3rdParty/implot/implot.cpp:914–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914inline int LowerBoundStep(int max_divs, const int* divs, const int* step, int size) {
915 if (max_divs < divs[0])
916 return 0;
917 for (int i = 1; i < size; ++i) {
918 if (max_divs < divs[i])
919 return step[i-1];
920 }
921 return step[size-1];
922}
923
924inline int GetTimeStep(int max_divs, ImPlotTimeUnit unit) {
925 if (unit == ImPlotTimeUnit_Ms || unit == ImPlotTimeUnit_Us) {

Callers 1

GetTimeStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected