Skip to content

Commit e1630fd

Browse files
committed
define withprob() in all builds
1 parent 9665be4 commit e1630fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jsrc/j.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,17 +290,19 @@ static inline omp_int_t omp_get_num_threads() { return 1;}
290290
#else
291291
#define common(x) likely(x)
292292
#define uncommon(x) unlikely(x)
293-
#define withprob(x,p) x
293+
#define withprob(x,p) (x)
294294
#endif
295295
#else
296296
#define common(x) likely(x)
297297
#define uncommon(x) unlikely(x)
298+
#define withprob(x,p) (x)
298299
#endif
299300
#else
300301
#define likely(x) (!!(x))
301302
#define unlikely(x) (!!(x))
302303
#define common(x) (!!(x))
303304
#define uncommon(x) (!!(x))
305+
#define withprob(x,p) (x)
304306
#endif
305307

306308
#include <stdint.h>

0 commit comments

Comments
 (0)