Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2008 14:11:03 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/msun/src math_private.h
Message-ID:  <200802221411.m1MEB3B7009617@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         2008-02-22 14:11:03 UTC

  FreeBSD src repository

  Modified files:
    lib/msun/src         math_private.h 
  Log:
  Add an irint() function in inline asm for amd64 and i386.  irint() is
  the same as lrint() except it returns int instead of long.  Though the
  extern lrint() is fairly fast on these arches, it still takes about
  12 cycles longer than the inline version, and 12 cycles is a lot in
  applications where [li]rint() is used to avoid slow conversions that
  are only a couple of times slower.
  
  This is only for internal use.  The libm versions of *rint*() should
  also be inline, but that would take would take more header engineering.
  Implementing irint() instead of lrint() also avoids a conflict with
  the extern declaration of the latter.
  
  Revision  Changes    Path
  1.25      +30 -0     src/lib/msun/src/math_private.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802221411.m1MEB3B7009617>