[gegl] buffer: add branch hints in gegl-tile-alloc



commit 3db2d54b2e9c00fe7b7b9f6adf173bd9c96ff5a7
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Jul 31 22:47:25 2021 +0200

    buffer: add branch hints in gegl-tile-alloc

 gegl/buffer/gegl-tile-alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gegl/buffer/gegl-tile-alloc.c b/gegl/buffer/gegl-tile-alloc.c
index e1a0d4a9b..1c1256fed 100644
--- a/gegl/buffer/gegl-tile-alloc.c
+++ b/gegl/buffer/gegl-tile-alloc.c
@@ -246,7 +246,7 @@ gegl_tile_block_free (GeglTileBlock  *block,
   else
     *head_block = block->next;
 
-  if (block->next)
+  if (G_LIKELY(block->next))
     block->next->prev = block->prev;
 
   if (! gegl_tile_empty_block)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]