[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] ABS macro
From: |
Oskar Liljeblad |
Subject: |
Re: [Bug-gnulib] ABS macro |
Date: |
Mon, 19 Jul 2004 11:40:55 +0200 |
User-agent: |
Mutt/1.5.6+20040523i |
On Friday, July 16, 2004 at 19:52, Bruno Haible wrote:
> 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?
I guess the only point is that they're type/size independent, at least
if you are using integer numbers. Having to pick a function among abs,
labs and llabs isn't a problem though.
Regards,
Oskar Liljeblad (address@hidden)