Skip to content

Commit 6518b54

Browse files
committed
remove ada_unlikely and ada_likely
1 parent 7eb7727 commit 6518b54

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

include/ada/common_defs.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@
4949
#define ada_unused
5050
#define ada_warn_unused
5151

52-
#ifndef ada_likely
53-
#define ada_likely(x) x
54-
#endif
55-
#ifndef ada_unlikely
56-
#define ada_unlikely(x) x
57-
#endif
58-
5952
#define ADA_PUSH_DISABLE_WARNINGS __pragma(warning(push))
6053
#define ADA_PUSH_DISABLE_ALL_WARNINGS __pragma(warning(push, 0))
6154
#define ADA_DISABLE_VS_WARNING(WARNING_NUMBER) \
@@ -87,13 +80,6 @@
8780
#define ada_unused __attribute__((unused))
8881
#define ada_warn_unused __attribute__((warn_unused_result))
8982

90-
#ifndef ada_likely
91-
#define ada_likely(x) __builtin_expect(!!(x), 1)
92-
#endif
93-
#ifndef ada_unlikely
94-
#define ada_unlikely(x) __builtin_expect(!!(x), 0)
95-
#endif
96-
9783
#define ADA_PUSH_DISABLE_WARNINGS _Pragma("GCC diagnostic push")
9884
// gcc doesn't seem to disable all warnings with all and extra, add warnings
9985
// here as necessary

0 commit comments

Comments
 (0)