long long & long double types in Linux GCC

long long & long double types in Linux GCC

Post by Michal Szymans » Thu, 23 Mar 1995 21:44:42



There are two non-standard types defined in Linux GCC: long long (8 bytes)
and "long double" (12 bytes, but I think it uses 10 bytes floating point
type supported by 80x87 coprocessor). Both seem to work internally OK,
but is there a way to "printf" such values. Man page for "printf" does mention a
format modifier "L" for long double values, but it is not working. Nothing
about "long long" can be found in manpage.

Any experience with these types?

regards, Michal.

****************************************************************************


  Al. Ujazdowskie 4                   Voice:    48-22-294011 ext 23
  00-478 Warszawa, POLAND             FAX:      48-22-294967
****************************************************************************

 
 
 

long long & long double types in Linux GCC

Post by Ulrich Drepp » Sat, 25 Mar 1995 21:39:49


   There are two non-standard types defined in Linux GCC: long long (8 bytes)
   and "long double" (12 bytes, but I think it uses 10 bytes floating point
   type supported by 80x87 coprocessor). Both seem to work internally OK,
   but is there a way to "printf" such values. Man page for "printf" does mention a
   format modifier "L" for long double values, but it is not working. Nothing
   about "long long" can be found in manpage.

   Any experience with these types?

'long double' is not invented with the GCC, it's ANSI C.  The standard
also says that the output format has to be %Lg etc.

For 'long long int' read the GNU libc info pages.  You can specify the
usage of long long by the modifiers 'L', 'll' or 'q' together with one
of the valid format specifications.  Perhaps you have to get a later
libc version but at least the upcoming libc-5.0 will serve you.

--
-- Uli
________---------------------------------------------------------------
\      / Ulrich Drepper / Univ. at Karlsruhe, Germany / CS Dept. / IPD



        ---------------------------------------------------------------

 
 
 

1. Linux has a long, long, long way to go

        Lack of vendor support won't help you, regardless of OS.

[deletia]

        Although, on a brighter note, Creative seems to be moving
        in our direction with both officially supported audio and
        video drivers. (slashdot.org)

--
                Herding Humans ~ Herding Cats

Neither will do a thing unless they really want to, or         |||
is coerced to the point where it will scratch your eyes out   / | \
as soon as your grip slips.

        In search of sane PPP docs? Try http://penguin.lvcm.com

2. getting mail feedback-- configuration question

3. type long & unsigned long

4. analizing a dump with mdb.

5. Enabling .cgi execution in selected directories

6. RH7.2 2.4.X off_t: long or long long?

7. Override default shell

8. Byteswapping a double or a long long ?

9. Q: about "long long" type..

10. _BSD_OFF_T_ type long long

11. Using the long long type in C and C++ functions

12. Large File System and long long datatype (gcc)