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="blmblm, post: 4214989"] Hesitant though I am to argue with someone who generally seems far more expert than I am .... I don't get the impression at all that the OP wants a, b, and c evaluated in parallel. As I understand it, he just wants to be sure that there is no branching involved in the evaluation of the condition (a && b && c). I admit I don't have a clear understanding of the platform he's targeting, but it sounds like it somehow involves multiple processing elements [*] executing the same compiled code, and under those circumstances I can vaguely imagine that performance might be better if all these processing elements execute exactly the same instructions (i.e., no branches). [*] The ones that put the "MD" in "SIMD" is what I'm thinking here, though admittedly not with as much clarity as I might like. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Short-circuiting in C
Top