From 31e78c90e2f3c267779237e9cfaa3465e1571a87 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 27 Mar 2017 13:32:44 -0400 Subject: [PATCH] avr: Minor optimization for timer_read_time() / timer_periodic() Tell the compiler that the TOV1 bit is rarely set. Signed-off-by: Kevin O'Connor --- src/avr/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/avr/timer.c b/src/avr/timer.c index 2de97526..c9c3ccca 100644 --- a/src/avr/timer.c +++ b/src/avr/timer.c @@ -119,7 +119,7 @@ timer_read_time(void) union u32_u calc; calc.val = timer_get(); calc.hi = timer_high; - if (!(TIFR1 & (1<