[alsa-devel] [PATCH] ASoC: prevent compilers from optimising pll calculation into __aeabi__uldivmod
Mark Brown
broonie at opensource.wolfsonmicro.com
Wed Apr 27 10:49:04 CEST 2011
On Wed, Apr 27, 2011 at 04:24:44PM +0800, Barry Song wrote:
> 2011/4/27 Takashi Iwai <tiwai at suse.de>:
> > Don't do this in the low driver level. If any, we should fix do_div()
> > instead.
> do_div is just a macro, it has no problem by itself. only while
> working together with other more codes before do_div, gcc can make
> some codes merging and cause problems.
> if do_div is a function, we'd just fix it.
It's a macro which expands to a problem so we should make it expand to
something which includes the fix as well rather than going round and
fixing each and every caller.
More information about the Alsa-devel
mailing list