Skip to contentSkip to conversation

don't use floating point in tdfxfb

PATCH New Jakub Bogusz 1 participant 1 message Feb 25, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 don't use floating point in tdfxfb

This patch removes using of floating point operations in tdfxfb - they are really not needed here (these consts are used only in substitutions and comparisons with integers) are cause unresolved symbols on some archs - e.g. on alpha:

*** Warning: "__ltdf2" [drivers/video/tdfxfb.ko] undefined! *** Warning: "__adddf3" [drivers/video/tdfxfb.ko] undefined! *** Warning: "__floatsidf" [drivers/video/tdfxfb.ko] undefined!

Signature · 2 lines
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/
PLD Team        http://www.pld-linux.org/
drivers/video/tdfxfb.c renamed from drivers/video/tdfxfb.c.orig +3 -3
@@ -86,9 +86,9 @@
 #define DPRINTK(a,b...)
 #endif 
 
-#define BANSHEE_MAX_PIXCLOCK 270000.0
-#define VOODOO3_MAX_PIXCLOCK 300000.0
-#define VOODOO5_MAX_PIXCLOCK 350000.0
+#define BANSHEE_MAX_PIXCLOCK 270000
+#define VOODOO3_MAX_PIXCLOCK 300000
+#define VOODOO5_MAX_PIXCLOCK 350000
 
 static struct fb_fix_screeninfo tdfx_fix __initdata = {
 	.id =		"3Dfx",