Skip to content

Commit

Permalink
lib: Minor t_push() optimization - use unlikely()
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and GitLab committed Sep 2, 2016
1 parent 79fe1b2 commit 8cf55b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/data-stack.c
Expand Up @@ -133,7 +133,7 @@ unsigned int t_push(const char *marker)
frame_pos++;
if (frame_pos == BLOCK_FRAME_COUNT) {
/* frame block full */
if (data_stack_frame == 0) {
if (unlikely(data_stack_frame == 0)) {
/* kludgy, but allow this before initialization */
frame_pos = 0;
data_stack_init();
Expand Down

0 comments on commit 8cf55b1

Please sign in to comment.