comparing floating points via "==" or "!="

Alexander Best arundel at freebsd.org
Thu Dec 1 00:00:38 UTC 2011


On Thu Dec  1 11, Adrian Chadd wrote:
> On 1 December 2011 06:44, Alexander Best <arundel at freebsd.org> 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?
> 
> 
> ... where?

the NA1(), NG1() and Q() macros.

cheers.
alex

> 
> adrian


More information about the freebsd-wireless mailing list