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

Bug#43530: marked as forwarded (lrint not defined but exists in library)



Your message dated Thu, 26 Aug 1999 20:32:44 -0700
with message-id <v04205525b3ebb6aeccf4@[206.163.71.146]>
and subject line Fwd: Bug#43530: lrint not defined but exists in library
has caused the Debian bug report #43530,
regarding lrint not defined but exists in library
to be marked as having been forwarded to the upstream software
author(s) libc-hacker@sourceware.cygnus.com.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 26 Aug 1999 10:59:05 +0000
Received: (qmail 20176 invoked from network); 26 Aug 1999 10:58:59 -0000
Received: from gaia.rus.uni-stuttgart.de (129.69.1.136)
  by master.debian.org with SMTP; 26 Aug 1999 10:58:59 -0000
Received: from localhost (vulcain@gw-21.wh.uni-stuttgart.de [129.69.166.242])
        by gaia.rus.uni-stuttgart.de (8.8.8/8.8.8) with ESMTP id MAA09133
        for <submit@bugs.debian.org>; Thu, 26 Aug 1999 12:58:35 +0200 (MET DST)
        env-from (erikyyy@studbox.uni-stuttgart.de)
Received: from erik by localhost with local (Exim 3.03 #1 (Debian))
	id 11Jx5Z-0002AQ-00; Thu, 26 Aug 1999 12:49:01 +0200
Date: Thu, 26 Aug 1999 12:49:00 +0200
From: Erik Thiele <erikyyy@studbox.uni-stuttgart.de>
To: submit@bugs.debian.org
Subject: lrint not defined but exists in library
Message-ID: <[🔎] 19990826124900.A8288@vulcain>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/0.95.7i

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/


Reply to: