]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace constant expressions that contain multiplications by
authorDon Lewis <truckman@FreeBSD.org>
Wed, 1 Jun 2016 20:04:24 +0000 (20:04 +0000)
committerDon Lewis <truckman@FreeBSD.org>
Wed, 1 Jun 2016 20:04:24 +0000 (20:04 +0000)
commitd6736547968acaec33ec1a634347581c9a1b14d8
treea7a0ac14595fcb3872f488ce10d64b46d0506657
parentdc3be4f8724798b4f935f5115aa3216d3480d54d
Replace constant expressions that contain multiplications by
fractional floating point values with integer divides.  This will
eliminate any chance that the compiler will generate code to evaluate
the expression using floating point at runtime.

Suggested by: bde
Submitted by: Rasool Al-Saadi <ralsaadi@swin.edu.au>
MFC after: 8 days (with r300779 and r300949)
sys/netpfil/ipfw/dn_aqm_pie.c
sys/netpfil/ipfw/dn_aqm_pie.h
sys/netpfil/ipfw/dn_sched_fq_pie.c