[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] ABS macro
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] ABS macro |
Date: |
Thu, 01 Jul 2004 10:38:10 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Oskar Liljeblad <address@hidden> writes:
> Some time ago I wrote to this list about the lack of an ABS
> (absolute value) macro.
Hmm, I looked at the archives, and I didn't see any followup to the
following somewhat-skeptical comment about ABS:
... why not use the absolute-value functions of stdlib.h, inttypes.h,
math.h and tgmath.h? Admittedly they're a bit of a mess (abs, labs,
llabs, imaxabs, fabs, fabsf, fabsl, etc.), but they're the standard
way to do it. And they should do the right thing with NaNs and -0.0,
whereas the macro won't.
-- <http://lists.gnu.org/archive/html/bug-gnulib/2003-09/msg00270.html>