SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : Intel Corporation (INTC)
INTC 36.20+0.1%Dec 26 9:30 AM EST

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: wanna_bmw who wrote (150422)11/29/2001 6:09:14 PM
From: kapkan4u  Read Replies (2) of 186894
 
<I strongly suggest you learn about switch statements yourself before embarrassing yourself further.>

You said this:

"You're a moron. Regardless of the random number, the actual inner-most piece of code is one long switch statement. Only ONE of the statements in a switch statement can be true, so all the 99,999 others will be false, or like I said: Strongly Not-Taken."

Message 16722799

Of course you are the one who is a moron because a large dense switch statement would always be generated as a computed branch into a table. So the inner loop has a computed branch with randomly generated target. This target can not be predicted by a branch predictor. Additionally, after the branch predictor fails, there will be a trace cache miss because the chance of a hit on this code is worse than 1 in 10. Just compare the number of statements with TC's capacity.

Kap
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext