X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libdecnumber%2FdecCommon.c;h=8fc1798e4272516019e4584c5a60dc67f6fc7e91;hb=121b3efd49f98e4049281b3ba7a258e650e40b38;hp=192b5cf02f9c4e995e19083e6efe9b3611046545;hpb=168a2f7744f9a9cdcb53b1861a941cc40291102f;p=deliverable%2Fbinutils-gdb.git diff --git a/libdecnumber/decCommon.c b/libdecnumber/decCommon.c index 192b5cf02f..8fc1798e42 100644 --- a/libdecnumber/decCommon.c +++ b/libdecnumber/decCommon.c @@ -1,5 +1,5 @@ /* Common code for fixed-size types in the decNumber C Library. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007-2018 Free Software Foundation, Inc. Contributed by IBM Corporation. Author Mike Cowlishaw. This file is part of GCC. @@ -713,7 +713,7 @@ decFloat * decFloatFromPacked(decFloat *df, Int exp, const uByte *packed) { /* returns df, which will be canonical or NULL if any of the */ /* requirements are not met (if this case df is unchanged); that */ /* is, the input data must be as returned by decFloatToPacked, */ -/* except that all six sign codes are acccepted. */ +/* except that all six sign codes are accepted. */ /* */ /* No status will be set. */ /* ------------------------------------------------------------------ */ @@ -1157,6 +1157,7 @@ uInt decFloatRadix(const decFloat *df) { return 10; } /* decFloatRadix */ +#if (DECCHECK || DECTRACE) /* ------------------------------------------------------------------ */ /* decFloatShow -- printf a decFloat in hexadecimal and decimal */ /* df is the decFloat to show */ @@ -1183,6 +1184,7 @@ void decFloatShow(const decFloat *df, const char *tag) { printf(">%s> %s [big-endian] %s\n", tag, hexbuf, buff); return; } /* decFloatShow */ +#endif /* ------------------------------------------------------------------ */ /* decFloatToBCD -- get sign, exponent, and BCD8 from a decFloat */