Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] svn commit: trunk/buildroot/package/input-tools
@ 2008-05-11  6:44 ulf at uclibc.org
  0 siblings, 0 replies; 2+ messages in thread
From: ulf at uclibc.org @ 2008-05-11  6:44 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2008-05-10 23:44:20 -0700 (Sat, 10 May 2008)
New Revision: 21966

Log:
Bump joystick version

Modified:
   trunk/buildroot/package/input-tools/input-tools.mk


Changeset:
Modified: trunk/buildroot/package/input-tools/input-tools.mk
===================================================================
--- trunk/buildroot/package/input-tools/input-tools.mk	2008-05-11 06:43:50 UTC (rev 21965)
+++ trunk/buildroot/package/input-tools/input-tools.mk	2008-05-11 06:44:20 UTC (rev 21966)
@@ -6,7 +6,7 @@
 
 INPUT_TOOLS_VERSION:=20051019
 INPUT_TOOLS_SOURCE:=joystick_$(INPUT_TOOLS_VERSION).orig.tar.gz
-INPUT_TOOLS_PATCH:=joystick_$(INPUT_TOOLS_VERSION)-1.1.diff.gz
+INPUT_TOOLS_PATCH:=joystick_$(INPUT_TOOLS_VERSION)-2.diff.gz
 INPUT_TOOLS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/j/joystick/
 INPUT_TOOLS_DIR:=$(BUILD_DIR)/joystick-$(INPUT_TOOLS_VERSION).orig
 INPUT_TOOLS_CAT:=$(ZCAT)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] svn commit: trunk/buildroot/package/input-tools
@ 2009-01-18 10:53 ulf at uclibc.org
  0 siblings, 0 replies; 2+ messages in thread
From: ulf at uclibc.org @ 2009-01-18 10:53 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2009-01-18 10:53:06 +0000 (Sun, 18 Jan 2009)
New Revision: 24899

Log:
Change use of rint, which is only supported for X86 in uClibc to generic rounding

Added:
   trunk/buildroot/package/input-tools/joystick-20051019-rint.patch


Changeset:
Added: trunk/buildroot/package/input-tools/joystick-20051019-rint.patch
===================================================================
--- trunk/buildroot/package/input-tools/joystick-20051019-rint.patch	                        (rev 0)
+++ trunk/buildroot/package/input-tools/joystick-20051019-rint.patch	2009-01-18 10:53:06 UTC (rev 24899)
@@ -0,0 +1,18 @@
+diff -urN joystick-20051019.orig/utils/jscal.c joystick-20051019/utils/jscal.c
+--- joystick-20051019.orig/utils/jscal.c	2004-10-19 09:51:52.000000000 +0200
++++ joystick-20051019/utils/jscal.c	2009-01-18 10:48:50.000000000 +0100
+@@ -141,10 +141,10 @@
+ 	c = 32767.0 / (inputs.cmin[1] - inputs.cmax[0]);
+ 	d = 32767.0 / (inputs.cmin[2] - inputs.cmax[1]);
+ 
+-	results[0] = rint(a);
+-	results[1] = rint(b);
+-	results[2] = rint(c*16384.0);
+-	results[3] = rint(d*16384.0);
++	results[0] = (int) (a + 0.5);
++	results[1] = (int) (b + 0.5);
++	results[2] = (int) (c*16384.0 + 0.5);
++	results[3] = (int) (d*16384.0 + 0.5);
+ 
+ 	return 1;
+ }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-18 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-11  6:44 [Buildroot] svn commit: trunk/buildroot/package/input-tools ulf at uclibc.org
  -- strict thread matches above, loose matches on Subject: below --
2009-01-18 10:53 ulf at uclibc.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox