@@ -94,13 +94,7 @@ const uint_least8_t canard_len_to_dlc[65] = {
9494};
9595
9696static size_t smaller (const size_t a , const size_t b ) { return (a < b ) ? a : b ; }
97- static size_t larger (const size_t a , const size_t b ) { return (a > b ) ? a : b ; }
98- static uint64_t min_u64 (const uint64_t a , const uint64_t b ) { return (a < b ) ? a : b ; }
99- static uint64_t max_u64 (const uint64_t a , const uint64_t b ) { return (a > b ) ? a : b ; }
100- static int64_t min_i64 (const int64_t a , const int64_t b ) { return (a < b ) ? a : b ; }
101- static int64_t max_i64 (const int64_t a , const int64_t b ) { return (a > b ) ? a : b ; }
102- static canard_us_t sooner (const canard_us_t a , const canard_us_t b ) { return min_i64 (a , b ); }
103- static canard_us_t later (const canard_us_t a , const canard_us_t b ) { return max_i64 (a , b ); }
97+ static canard_us_t later (const canard_us_t a , const canard_us_t b ) { return (a > b ) ? a : b ; }
10498
10599// Used if intrinsics are not available.
106100// http://en.wikipedia.org/wiki/Hamming_weight#Efficient_implementation
@@ -1976,8 +1970,7 @@ static void ingest_frame(canard_t* const self,
19761970 const uint_least8_t iface_index ,
19771971 const frame_t frame )
19781972{
1979- // Update the node-ID occupancy/collision monitoring states before routing the message.
1980- // We do this only on start frames only mostly to manage load.
1973+ // Update the node-ID occupancy/collision before routing. Only on start frames to manage load.
19811974 if (frame .start ) {
19821975 node_id_occupancy_update (self , frame .src );
19831976 }
0 commit comments