This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fwd: Bug#43530: lrint not defined but exists in library


>Subject: Bug#43530: lrint not defined but exists in library
>Date: Thu, 26 Aug 1999 12:49:00 +0200
>From: Erik Thiele <erikyyy@studbox.uni-stuttgart.de>
>To: submit@bugs.debian.org
>
>Package: libc6-dev
>Version: 2.1.2-0pre10
>Severity: important
>
>erik@vulcain:~/teilkrei > cat delme.c
>#include <math.h>
>#include <stdio.h>
>
>int main()
>{
>double x=-3.3;
>printf("%d\n",lrint(x));
>return 0;
>};
>erik@vulcain:~/teilkrei > gcc -Wall delme.c -lm
>delme.c: In function `main':
>delme.c:7: warning: implicit declaration of function `lrint'
>erik@vulcain:~/teilkrei > ./a.out
>-3
>erik@vulcain:~/teilkrei > info "(libc)Rounding Functions"
>*snipsnap*
>   The functions listed here perform operations such as rounding and
>truncation of floating-point values. Some of these functions convert
>floating point numbers to integer values.  They are all declared in
>`math.h'.
>*snipsnap*
> - Function: long int lrint (double X)
> - Function: long int lrintf (float X)
> - Function: long int lrintl (long double X)
>     These functions are just like `rint', but they return a `long int'
>     instead of a floating-point number.
>*snipsnap*
>
>
>bug: docu sais lrint is defined, but test shows it is not defined.
>but it is implemented in libm and works correctly.
>
>
>cu
>erik
>
>--
>EMAIL: erikyyy@studbox.uni-stuttgart.de                  \\\\
>       thieleek@tick.informatik.uni-stuttgart.de         o `QQ'_
>IRC:   erikyyy                                            /   __8
>WWW:   http://wwwcip.rus.uni-stuttgart.de/~inf24628/      '  `
>       http://tick.informatik.uni-stuttgart.de/~thieleek/
>
>
>--
>To UNSUBSCRIBE, email to debian-bugs-dist-request@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
-- 
Joel Klecker (aka Espy)                    Debian GNU/Linux Developer
<URL:mailto:jk@espy.org>                 <URL:mailto:espy@debian.org>
<URL:http://web.espy.org/>               <URL:http://www.debian.org/>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]