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

Converting floats to fixnums



Hello all MCL'ers,

  I am developing a software in which it is vital that I can
  convert a float into a fixnum in the fastest way possible and
  with no memory allocation.

  ROUND, FLOOR and company all return a second float value
  that I don't need and are relatively slow.

  Any idea? Internal undocumented stuff is ok with me...

PS: The method used to obtain the fixnum (i.e. rounding, flooring,
    truncating, ...) is not important.

Any answer will be well appreciated.

*********************************************************************
* Guillaume Cartier                 (514) 844-5294 (maison)         *
* L.A.C.I.M.                        (514) 987-4290 (bureau)         *
* Universite du Quebec a Montreal   (514) 987-8477 (telecopieur)    *
* Montreal, Quebec, Canada          cartier@math.uqam.ca (internet) *
*********************************************************************