Combined Floor Ceil & Frac routine?

From: Michael Hansen (dyster_tid_at_hotmail.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 21:56:31 +0100

Hola!

I'm not very much into fp math asm..perhaps one of you guys can answer this
question quickly:
I've often been using floor, ceil and frac with the same variable.. would it
be possible writing a more optimized combined routine?
If so, perhaps you could challenge that in the fastcode project?

/Michael



Relevant Pages

  • Re: String Result
    ... procedure ExpandFloat(Value: Extended; out Ceil: Integer; out Floor: ... procedure ExpandFloat(Value: Extended; out Ceil: Int64; out Floor: ... I was not using any FPU instructions, because the most part of the code to calculate Rnd, Ceil, Floor, Frac is redundant; calculating them together is very fast. ...
    (borland.public.delphi.language.basm)
  • Re: REQUEST: Fastcode Library 0.64 reports ...
    ... There are Ceill and Floor ref functions, in validation package..Delphi math ... And I cant see floor and ceil in your library, ...
    (borland.public.delphi.language.basm)
  • Re: Implementing floor and ceiling
    ... floats and I have to implement floor and ceil for them. ... add .5 and then truncate. ...
    (comp.programming)
  • Re: Rounding up in perl
    ... I tried the ceil() function but get an undefined subroutine ... Here is a Perl ceil/floor equivalent. ... intdoes not use the sign in its process of rounding. ... second code section with floor, ...
    (comp.lang.perl.misc)
  • Re: Implementing floor and ceiling
    ... floats and I have to implement floor and ceil for them. ... truncating helps (most languages have a truncating float-to-int ...
    (comp.programming)