ports/x11-drivers/xf86-video-neomagic/files/patch-src_neo__driver.c
Matthew Rezny 3f87b5cb51 Xorg-servers update to 1.18.4 with driver updates and revision bumps.
Update xf86-video-ati to 7.8.0
Update xf86-video-intel to 2.99.917.20170103
Update xf86-input-synaptics to 1.9.0
Update xf86-input-evdev to 2.10.5
Update xf86-video-r128 to 6.10.2
Update xf86-video-rendition to 4.2.6
New port: xf86-video-geode

PR:		214591,216269,214687,214593,214715,216276,216277,216278,216287,
		216288,216292,216298,214560,216299,216300,216301,216302
Approved by:	swills (mentor, portmgr)
Differential Revision:	https://reviews.freebsd.org/D9436
2017-02-11 14:17:58 +00:00

14 lines
430 B
C

# Double in, double out; use fabs
#
--- src/neo_driver.c.orig 2016-11-25 03:32:57 UTC
+++ src/neo_driver.c
@@ -2952,7 +2952,7 @@ neoCalcVCLK(ScrnInfoPtr pScrn, long freq
for (n = 0; n <= MAX_N; n++)
for (d = 1; d <= MAX_D; d++) {
f_out = (n+1.0)/((d+1.0)*(1<<f))*REF_FREQ;
- f_diff = abs(f_out-f_target);
+ f_diff = fabs(f_out-f_target);
if (f_diff < f_best_diff) {
f_best_diff = f_diff;
n_best = n;