[PR #208] Change bitwise OR to logical OR #246

Open
opened 2026-01-31 21:30:26 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/qemu/qemu/pull/208

State: closed
Merged: No


My team and I were looking through the QEMU source code and found this line (325) that we think should be re-written to use a logical OR for improved readability and efficiency while retaining semantics.

Readability - simply evaluate binary states on either side of the expression rather than N-bit states
Efficiency - logical OR enables short circuiting in C

**Original Pull Request:** https://github.com/qemu/qemu/pull/208 **State:** closed **Merged:** No --- My team and I were looking through the QEMU source code and found this line (325) that we think should be re-written to use a logical OR for improved readability and efficiency while retaining semantics. Readability - simply evaluate binary states on either side of the expression rather than N-bit states Efficiency - logical OR enables short circuiting in C
claunia added the pull-request label 2026-01-31 21:30:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#246