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

Alexander Best arundel at freebsd.org
Wed Nov 30 22:44:22 UTC 2011


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?

cheers.
alex


More information about the freebsd-wireless mailing list