Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys
Date: Wed, 04 Jan 2017 14:51:01 +0700
From: Robert Elz <kre%munnari.OZ.AU@localhost>
Date: Wed, 04 Jan 2017 14:23:12 +0700
From: Robert Elz <kre%munnari.OZ.AU@localhost>
Message-ID: <3987.1483514592%andromeda.noi.kre.to@localhost>
Ignore this gibberish..
| division into a constant is equvalent to multiplication by its reciprocal,
I still have the impression tha it is possible to do this conversion using
a multiplication, but it isn't that simple...
It is. See fast_divide32(3). Most compilers will automatically
convert divisions by a constant to do something tantamount to it.
Home |
Main Index |
Thread Index |
Old Index