Earlier quoted context omitted.
Karma whoring.
I notice ralphchurch's name is green. That means recently registered, right?
IIRC, this is called Power Leveling.
11–20 of 31 posts
Why do people keep posting this every month???
Why do people keep posting this every month???
Also, I've been here for three years and I don't recall seeing it before, so it can't be posted that often. You must just happen to catch it a lot. I wouldn't have known it was a dupe if you hadn't pointed it out.
It might still need to flush the pipelines when there are several branches in succession but you'd still be able to use branch prediction to predict the two most likely branches, which would help tremendously.
Question: can a processor have two pipelines? When there's a branch it would be able to start loading both branches and just switch the pipeline when the final branch is determined. It might still need to flush the pipelines when there are several branches in succession but you'd still be able to use branch prediction to predict the two most likely branches, which would help tremendously.
The author of the answer has set multiple world records for calculating digits of pi. I highly recommend browsing through his answer history. You can learn more from his answers than from entire computer science classes. http://stackoverflow.com/users/922184/mysticial
C++: http://www.stack-ed.com/#tag/c%2B%2B/user/922184/Mysticial
Performance: http://www.stack-ed.com/#tag/performance/user/922184/Mystici...
Language-Agnostic: http://www.stack-ed.com/#tag/language-agnostic/user/922184/M...
Optimization: http://www.stack-ed.com/#tag/optimization/user/922184/Mystic...
Branch-Prediction: http://www.stack-ed.com/#tag/branch-prediction/user/922184/M...
Question: can a processor have two pipelines? When there's a branch it would be able to start loading both branches and just switch the pipeline when the final branch is determined. It might still need to flush the pipelines when there are several branches in succession but you'd still be able to use branch prediction to predict the two most likely branches, which would help tremendously.
Question: can a processor have two pipelines? When there's a branch it would be able to start loading both branches and just switch the pipeline when the final branch is determined. It might still need to flush the pipelines when there are several branches in succession but you'd still be able to use branch prediction to predict the two most likely branches, which would help tremendously.
I think it's possible, but I think it's more efficient to use a completely separate...thread?...if you have a 2nd core. (Or if you have lots of empty space bubbles in your pipeline, you can just try forcing 2 threads in there, aka Hyperthreading)
Question: can a processor have two pipelines? When there's a branch it would be able to start loading both branches and just switch the pipeline when the final branch is determined. It might still need to flush the pipelines when there are several branches in succession but you'd still be able to use branch prediction to predict the two most likely branches, which would help tremendously.