From 5e1695c5ba9c02d6849576c12f23f591d859b0ca Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Jun 2010 18:49:26 +0000 Subject: [PATCH] drop fmax checks as the code is no longer used git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1797 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 5 +++++ urjtag/configure.ac | 6 ------ urjtag/src/tap/cable/generic.c | 7 ------- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 6242d25f..a8a84e02 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2010-06-23 Mike Frysinger + + * configure.ac (fmax): Drop fmax check as it is no longer used. + * src/tap/cable/generic.c (fmax): Drop now unused fmax fallback. + 2010-06-22 Mike Frysinger * src/tap/usbconn/libftdi.c (usbconn_ftdi_flush): Fix gcc printf warning. diff --git a/urjtag/configure.ac b/urjtag/configure.ac index deff72cf..b2454eed 100644 --- a/urjtag/configure.ac +++ b/urjtag/configure.ac @@ -717,12 +717,6 @@ AS_IF([test "x$relocatable" = xyes], [ ]) -dnl Is fmax() provided by libm? -AC_CHECK_LIB([m], [fmax], [ - AC_DEFINE(HAVE_FMAX, 1, [Define if -lm provides fmax()]) -]) - - dnl Enable use of DMALLOC library? AC_ARG_ENABLE(dmalloc, [AS_HELP_STRING([--enable-dmalloc], [Enable heap debugging with dmalloc library])], diff --git a/urjtag/src/tap/cable/generic.c b/urjtag/src/tap/cable/generic.c index 79a13d69..c5b007d1 100644 --- a/urjtag/src/tap/cable/generic.c +++ b/urjtag/src/tap/cable/generic.c @@ -39,13 +39,6 @@ #include - -#ifndef HAVE_FMAX -/* workaround for libm implementations that don't provide the fmax() function */ -#define fmax(_f1_,_f2_) ( (_f1_) > (_f2_) ? (_f1_) : (_f2_) ) -#endif - - static void print_vector (urj_log_level_t ll, int len, char *vec) {