compute next and previous window with modulo arithmetic

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 file changed