[beast/devel: 22/26] BSE: use RAPICORN_UNLIKELY instead of UNLIKELY in public header file



commit 6500ea6db45615ce686c5ae78be7b884cdd36a84
Author: Stefan Westerfeld <stefan space twc de>
Date:   Tue May 14 17:35:11 2013 +0200

    BSE: use RAPICORN_UNLIKELY instead of UNLIKELY in public header file
    
    This fixes compilation of external projects that build against libbse.

 bse/bseblockutils.hh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bse/bseblockutils.hh b/bse/bseblockutils.hh
index d36418e..137f5c4 100644
--- a/bse/bseblockutils.hh
+++ b/bse/bseblockutils.hh
@@ -264,7 +264,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 (UNLIKELY (r))
+  if (RAPICORN_UNLIKELY (r))
     {
       r = MIN (r, n_values);    // rest for pointer alignment
       memset (p, 0, r);
@@ -274,7 +274,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 (UNLIKELY (n_bytes))
+  if (RAPICORN_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]