diff options
author | Josh Blum | 2013-04-15 01:50:44 -0700 |
---|---|---|
committer | Josh Blum | 2013-04-15 01:50:44 -0700 |
commit | 26a0d8931830d7723f568d1bf8876b0a205e234d (patch) | |
tree | 96c9dec7b0c586b06a3c07a751f8474ece9c481e /lib/gras_impl/output_buffer_queues.hpp | |
parent | 1afc6d4bf5601341f805a13df7ad9a4f99a7d98a (diff) | |
download | sandhi-26a0d8931830d7723f568d1bf8876b0a205e234d.tar.gz sandhi-26a0d8931830d7723f568d1bf8876b0a205e234d.tar.bz2 sandhi-26a0d8931830d7723f568d1bf8876b0a205e234d.zip |
gras: assign a few more missing UNLIKELYs
Diffstat (limited to 'lib/gras_impl/output_buffer_queues.hpp')
-rw-r--r-- | lib/gras_impl/output_buffer_queues.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gras_impl/output_buffer_queues.hpp b/lib/gras_impl/output_buffer_queues.hpp index deea0e1..08869fd 100644 --- a/lib/gras_impl/output_buffer_queues.hpp +++ b/lib/gras_impl/output_buffer_queues.hpp @@ -35,7 +35,7 @@ struct OutputBufferQueues GRAS_FORCE_INLINE void push(const size_t i, const SBuffer &buff) { - if (not _queues[i]) return; //block is likely done, throw out buffer + if GRAS_UNLIKELY(not _queues[i]) return; //block is likely done, throw out buffer _queues[i]->push(buff); _update(i); } @@ -88,7 +88,7 @@ struct OutputBufferQueues GRAS_FORCE_INLINE void _update(const size_t i) { - if (not _queues[i] or _queues[i]->empty()) + if GRAS_UNLIKELY(not _queues[i] or _queues[i]->empty()) { _bitset.reset(i); return; |