Fix parens on LIKELY in basic operators
We want to hint to the compiler that it's likely that the BOP is unredefined (the bit is 0). Previously we were accidentally hinting to the compiler that it was non-zero due to a misplaced parenthesis.
This commit is contained in:
parent
17559f0420
commit
43f9351177
Notes:
git
2022-12-12 22:06:02 +00:00
@ -58,6 +58,6 @@ MJIT_SYMBOL_EXPORT_END
|
||||
#define FALSE_REDEFINED_OP_FLAG (1 << 11)
|
||||
#define PROC_REDEFINED_OP_FLAG (1 << 12)
|
||||
|
||||
#define BASIC_OP_UNREDEFINED_P(op, klass) (LIKELY(ruby_vm_redefined_flag[(op)]&(klass)) == 0)
|
||||
#define BASIC_OP_UNREDEFINED_P(op, klass) (LIKELY((ruby_vm_redefined_flag[(op)]&(klass)) == 0))
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user