Search found 1 match
- 2023-02-10, 20:01:26
- Forum: Agner's CPU blog
- Topic: Branch Predictor and Instruction Pipelining, how can I prove the existence of it?
- Replies: 3
- Views: 66236
Branch Predictor and Instruction Pipelining, how can I prove the existence of it?
I was reading the source code of gstreamer and saw some "g_likely()" macros. I know it's something related to branch predicting and I wanted to write a demo to test how much speed can benefit from this. Then I wrote some c++ codes like following, expecting one is faster than another. #define likely(...