Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-10 14:17:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-10 14:28:52 +0400
commit737e51cb21cc3864dca3da7e754549e08660f193 (patch)
tree531d4180781753bc9ffd0800cd2dc1c4340a6a3e /source/blender/blenlib/intern/BLI_memarena.c
parent02e378bf19d349031fb7397ccf7e26885289f34d (diff)
Mempool/Memarena: hint for unlikely conditions
Diffstat (limited to 'source/blender/blenlib/intern/BLI_memarena.c')
-rw-r--r--source/blender/blenlib/intern/BLI_memarena.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c
index ce04ac61ef4..dd0997c8e1c 100644
--- a/source/blender/blenlib/intern/BLI_memarena.c
+++ b/source/blender/blenlib/intern/BLI_memarena.c
@@ -117,7 +117,7 @@ void *BLI_memarena_alloc(MemArena *ma, size_t size)
* size up to multiple of 8 */
size = PADUP(size, ma->align);
- if (size > ma->cursize) {
+ if (UNLIKELY(size > ma->cursize)) {
if (size > ma->bufsize - (ma->align - 1)) {
ma->cursize = PADUP(size + 1, ma->align);
}