Re: GCC does not support lrint ?

From: daeron (daeron_at_some.net)
Date: 10/02/04


Date: Sun, 03 Oct 2004 03:08:36 +1000

Philip Paeps wrote:
>
> It appears there is no lrint()-family of functions in FreeBSD
> (yet), but unless you're dealing with longs, rint() should
> probably do what you want.
>
> It's a function, not a type:
>  
<http://www.opengroup.org/onlinepubs/009695399/functions/lrint.html>
>
> Just stick something like this in whatever file that happens
> to need lrint():
>
> #if defined(__FreeBSD__)
> #   define lrint(x) rint(x)
> #   define lrintf(x) rintf(x)
> #endif

Ar, Thank you, you get the scholar & gentleman award for the
day ;-)

 
> Also see <http://www.freebsd.org/projects/c99/index.html> for
> the status of C99 support in FreeBSD.
>
>  - Philip
>



Relevant Pages

  • Re: mtree vs tripwire
    ... On Wed, 14 Jan 2004, D J Hawkey Jr wrote: ... FreeBSD is all I'm dealing ... As others have mentioned, raw mtree and diff ...
    (FreeBSD-Security)
  • Re: freebsd router with cable modem
    ... I mean do I need to setup ppp in freebsd just ... like the way of dealing with connecting ADSL service? ... I'm unable to get to my own box due to network changes by my ISP (until I ... I just followed the "FreeBSD handbook" section on www.freebsd.org. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: mtree vs tripwire
    ... D J Hawkey Jr writes: ... FreeBSD is all I'm dealing ... Mtree works as well if not slightly better ...
    (FreeBSD-Security)
  • Re: Opinion please on quick and dirty
    ... zope installed and running on your FreeBSD box. ... Adding instructions for howto do this with portupgrade would be helpful, ... e.g. dealing with the 'make instance'. ... Ian Tegebo ...
    (freebsd-questions)