__lttng_counter_add: skip effect-less code when global_sum_step=0
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Sep 2022 20:19:06 +0000 (16:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 15 Jul 2024 21:01:43 +0000 (17:01 -0400)
commitbf59e80cf46469333f2b7ad74f294640742baaf5
tree077fc3ffee24e329cb7bc8434120143fcd4ef6e0
parent83ab4b09b075a7076fc0c28fbfc21c632919a8e4
__lttng_counter_add: skip effect-less code when global_sum_step=0

Skip effect-less code in the common case where global_sum_step=0.
This saves about 1.5ns on x86-64.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I62e8d163143780e64d7130051b1013470fef48fe
include/counter/counter-api.h
This page took 0.026055 seconds and 4 git commands to generate.