From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 30 22:44:22 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 934031065673; Wed, 30 Nov 2011 22:44:22 +0000 (UTC) Date: Wed, 30 Nov 2011 22:44:22 +0000 From: Alexander Best To: freebsd-wireless@freebsd.org Message-ID: <20111130224422.GA36424@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: comparing floating points via "==" or "!=" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 22:44:22 -0000 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