This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Adapting switch(x){case(y):...} with hashing
- To: jawalker at stl dot quik dot com, meissner at cygnus dot com
- Subject: Re: Adapting switch(x){case(y):...} with hashing
- From: dewar at gnat dot com (Robert Dewar)
- Date: Fri, 1 Dec 2000 15:34:41 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org
<<One concern is that many of our embedded machines don't have divide
instructions, and/or the divide instructions takes an ungoodly amount of cycles
(also if the divide emulation functions happened to contain a switch that the
compiler would do via hashing).
>>
Why on earth would one choose to do a divide, given that this is indeed
the case?