abs(long long int) in cstdlib?

Todd Vierling tv@pobox.com
Fri Sep 18 14:02:00 GMT 1998


On Fri, 18 Sep 1998, Marco Manfai Yu wrote:

:     I found out that the abs() function for long long is missing in
: cstdlib for egcs-1.0.3a and egcs-1.1a. My particular machine is a
: i686-pc-linux-gnu but this should be machine independent. On Linux
: there is llabs() in stdlib.h for C. Is there a reason this being not
: left out?

<cstdlib> defines a standard set of functions based on a standard set of
types.  long long isn't a C++ standard type.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)




More information about the Gcc-bugs mailing list