Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Short-circuiting in C
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Billy Mays, post: 4214463"] Hey CLC, I was wondering if there is a way to avoid the C short circuiting for boolean expressions such as the following: if(a && b && c) { /* Do stuff */ } I am currently doing GPU programming and it would be better to evaluate the entire condition, even if a is 0, since branches are slow. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Short-circuiting in C
Top