[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] [PATCH] DFP branch: Fix build for NUMDIGITS_SUPPORT=0
- To: patches@xxxxxxxxxx
- Subject: [patches] [PATCH] DFP branch: Fix build for NUMDIGITS_SUPPORT=0
- From: Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Aug 2008 10:15:27 +0200
Hello,
this is just a trivial fix enabling targets without numdigits support
to build.
Please apply to dfp branch if you think it's ok.
Bye,
-Andreas-
2008-08-14 Andreas Krebbel <krebbel1@xxxxxxxxxx>
* dfp/sysdeps/ieee754r/d32/frexpd32.c: Move definition of
result out of the macro body.
Index: dfp/sysdeps/ieee754r/d32/frexpd32.c
===================================================================
*** dfp/sysdeps/ieee754r/d32/frexpd32.c.orig 2008-08-12
16:15:50.000000000 +0200
--- dfp/sysdeps/ieee754r/d32/frexpd32.c 2008-08-14 10:00:46.000000000 +0200
***************
*** 38,45 ****
DEC_TYPE
INTERNAL_FUNCTION_NAME (DEC_TYPE x, int *y)
{
- #if NUMDIGITS_SUPPORT==1
DEC_TYPE result;
int digits, exponent;
if (isinf(x) || isnan(x))
--- 38,46 ----
DEC_TYPE
INTERNAL_FUNCTION_NAME (DEC_TYPE x, int *y)
{
DEC_TYPE result;
+
+ #if NUMDIGITS_SUPPORT==1
int digits, exponent;
if (isinf(x) || isnan(x))