Re: to be effcient or not to be efficient

Tuukka Toivonen <[email protected]>
Newsgroups gmane.comp.multimedia.media-api
Message-ID <Pine.GSO.4.58.0401072019000.13044@stekt37>
On Wed, 7 Jan 2004, Tuukka Toivonen wrote:

>Actually I'm surprised if an optimizing C compiler can't do it

Just checked: gcc-2.95.4 can do it automatically, without even any
optimization. So use large switch...case without fear, C compiler can
optimize it into a single table lookup and a jump.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.