This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Adapting switch(x){case(y):...} with hashing


<<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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]