mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue