[U-Boot-Users] Compiler question: integer division?
Steven Scholz
steven.scholz at imc-berlin.de
Mon Apr 25 12:30:15 CEST 2005
Wolfgang Denk wrote:
> In message <426CA9EF.6080003 at imc-berlin.de> you wrote:
>
>>How about
>> a = b / 5;
>> ?
>>Will that result in
>> a = (b >> 2) - b;
>
>
> We don't know which architecture you're using, and which version of
> which compiler, so how can we know this?
I have hoped there will be a general answer, like "gcc always/never does
this ..." no matter wich architecture...
Thanks a million for all your comments.
Steven
More information about the U-Boot
mailing list