[beast: 4/16] BSE: use BSE_UNLIKELY instead of a Rapicorn macro
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 4/16] BSE: use BSE_UNLIKELY instead of a Rapicorn macro
- Date: Sat, 30 Sep 2017 01:03:02 +0000 (UTC)
commit 0e171c275ca2c9e1494b74cec03bc143bf3ed7f3
Author: Tim Janik <timj gnu org>
Date: Mon Sep 18 21:53:29 2017 +0200
BSE: use BSE_UNLIKELY instead of a Rapicorn macro
Signed-off-by: Tim Janik <timj gnu org>
bse/bseblockutils.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bse/bseblockutils.hh b/bse/bseblockutils.hh
index 380f244..db58c2f 100644
--- a/bse/bseblockutils.hh
+++ b/bse/bseblockutils.hh
@@ -257,7 +257,7 @@ bse_block_fill_0 (size_t n_values, TYPE *values)
size_t n_bytes = n_values * sizeof (TYPE);
char *p = (char*) values;
uint r = size_t (p) & 3;
- if (RAPICORN_UNLIKELY (r))
+ if (BSE_UNLIKELY (r))
{
r = MIN (r, n_values); // rest for pointer alignment
memset (p, 0, r);
@@ -267,7 +267,7 @@ bse_block_fill_0 (size_t n_values, TYPE *values)
const size_t n_aligned = n_bytes / 4;
wmemset ((wchar_t*) p, 0, n_aligned);
n_bytes -= n_aligned * 4;
- if (RAPICORN_UNLIKELY (n_bytes))
+ if (BSE_UNLIKELY (n_bytes))
{
p += n_aligned * 4;
memset (p, 0, n_bytes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]