From ae446c7aae62c294a202e0d9ab3b48e4c2cdd6e4 Mon Sep 17 00:00:00 2001 From: nsz Date: Fri, 9 Mar 2012 15:13:59 +0100 Subject: [PATCH 1/1] fix fdim in tgmath.h --- include/tgmath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tgmath.h b/include/tgmath.h index 09edf49..6926d0f 100644 --- a/include/tgmath.h +++ b/include/tgmath.h @@ -105,7 +105,7 @@ without __GNUC__ the return type is always long double [complex] #define exp2(x) __tg_real(exp2, (x)) #define expm1(x) __tg_real(expm1, (x)) #define fabs(x) __tg_real_complex_fabs(x) -#define fdim(x) __tg_real(fdim, (x)) +#define fdim(x,y) __tg_real_2(fdim, (x), (y)) #define floor(x) __tg_real(floor, (x)) #define fma(x,y,z) __tg_real_fma((x), (y), (z)) #define fmax(x,y) __tg_real_2(fmax, (x), (y)) -- 2.20.1