| 11094 | |
| 11095 | template <typename FP> |
| 11096 | FP step(FP start, FP direction, int steps) { |
| 11097 | for (int i = 0; i < steps; ++i) { |
| 11098 | start = std::nextafter(start, direction); |
| 11099 | } |
| 11100 | return start; |
| 11101 | } |
| 11102 | |
| 11103 | } // end anonymous namespace |
| 11104 |