| 857 | }; |
| 858 | |
| 859 | inline ImPlotTimeUnit GetUnitForRange(double range) { |
| 860 | static double cutoffs[ImPlotTimeUnit_COUNT] = {0.001, 1, 60, 3600, 86400, 2629800, 31557600, IMPLOT_MAX_TIME}; |
| 861 | for (int i = 0; i < ImPlotTimeUnit_COUNT; ++i) { |
| 862 | if (range <= cutoffs[i]) |
| 863 | return (ImPlotTimeUnit)i; |
| 864 | } |
| 865 | return ImPlotTimeUnit_Yr; |
| 866 | } |
| 867 | |
| 868 | inline int LowerBoundStep(int max_divs, const int* divs, const int* step, int size) { |
| 869 | if (max_divs < divs[0]) |
no outgoing calls
no test coverage detected