Re: [PHP-DEV] C switch() statement From: Andi Gutmans (andi <email protected>)
Date: 01/28/00

At 09:00 AM 1/28/00 -0500, rasmus <email protected> wrote:
> > 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

#if (WINNT|WIN32)
                         default:
                                 __assume(0);
                                 break;
#endif

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>