[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] ABS macro

From: Bruno Haible
Subject: Re: [Bug-gnulib] ABS macro
Date: Fri, 16 Jul 2004 19:09:52 +0200
User-agent: KMail/1.5

Oskar Liljeblad wrote:
> Some time ago I wrote to this list about the lack of an ABS
> (absolute value) macro. I'd like to ask again - is there any
> chance we will see an abs module in the near future?

Like Paul, I don't see a major benefit of this macro.
- abs, labs, etc. are what a normal C programmer already uses,
  without portability problems.
- type generic math functions (as in <tgmath.h>) are still very uncommon
  in C.
- The speed of execution is not an argument either, because GCC already
  compiles abs() calls inline.

So what's the point that I missed?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]