From: Simon Ruderich Date: Sat, 14 Sep 2013 22:15:50 +0000 (+0200) Subject: Add likely() to tracked_fds_find(). X-Git-Tag: 0.1~1 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=ac9101941e5ea97fdec35a480d6270bf68bbab90;p=coloredstderr%2Fcoloredstderr.git Add likely() to tracked_fds_find(). --- diff --git a/src/trackfds.h b/src/trackfds.h index 243e8e0..d45f128 100644 --- a/src/trackfds.h +++ b/src/trackfds.h @@ -402,7 +402,7 @@ inline static int tracked_fds_find(int fd) { return 0; } - if (fd < TRACKFDS_STATIC_COUNT) { + if (likely(fd < TRACKFDS_STATIC_COUNT)) { return tracked_fds[fd]; }