* [PATCH] don't use floating point in tdfxfb
@ 2004-02-25 11:55 Jakub Bogusz
0 siblings, 0 replies; only message in thread
From: Jakub Bogusz @ 2004-02-25 11:55 UTC (permalink / raw)
To: linux-kernel, linux-fbdev-devel
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
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!
--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
PLD Team http://www.pld-linux.org/
[-- Attachment #2: linux-tdfxfb-nofloat.patch --]
[-- Type: text/plain, Size: 513 bytes --]
--- linux-2.6.3/drivers/video/tdfxfb.c.orig 2004-02-24 11:08:06.000000000 +0100
+++ linux-2.6.3/drivers/video/tdfxfb.c 2004-02-25 12:33:09.000000000 +0100
@@ -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",
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-25 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-25 11:55 [PATCH] don't use floating point in tdfxfb Jakub Bogusz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).