Re: C switch() statement
| From: | rasmus@php.net | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: C switch() statement | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-14976@lists.php.net to get a copy of this message | ||
> Do you guys know a way to hint to GCC that the values the switch() will get
> will always be one of the case: statements so that it can optimize it?
> I found a way in Visual C++ and it made the switch() statement 5 opcodes
> instead of 10.
I deleted your previous commit msg a little too fast. How do you do this
hint in Visual C++?
-Rasmus