comparing floating points via "==" or "!="
Alexander Best
arundel at freebsd.org
Thu Dec 1 00:05:29 UTC 2011
On Wed Nov 30 11, Alexander Best wrote:
> hi there,
>
> i played a bit with the gcc -Wfloat-equal warning and noticed that inside
> sys/dev/ath/ath_rate/sample/tx_schedules.h, a lot of comparisons of floating
> points are happening ("=="). is there a better way to deal with this?
i just built GENERIC (incuding all modules) and this is the only place where
direct comparisons of floating points happen. if this can be resolved, i vote
that we add -Wfloat-equal to sys/conf/kern.mk:CWARNFLAGS.
cheers.
alex
>
> cheers.
> alex
More information about the freebsd-wireless
mailing list