[fpc-devel]Assembly routines problem

Anton Tichawa anton.tichawa at chello.at
Wed Nov 13 20:36:17 CET 2002


hi, andrew!

> I know little assembly and DO NOT want to waste my time learning more,

well, I LIKE ASSEMBLER, and i don't consider the time i spent with assembler 
being wasted ;)

two weeks ago i translated an fpc-procedure for simple graphic rendering to 
assembly, and it worked great!

it's hard to answer your questions without knowing the codes. i can take a 
look at it if you want to.

maybe you can try, instead, to rewrite these 3 procedures in pascal and see 
if and how fast it works?

ciao,

anton

On Wednesday 13 November 2002 19:07, you wrote:

> I am porting some low-level(proprietary) components to FPC. They in turn
> use a unit with some basic scaling routines, which are in assembly..
>
> but the routines in question will not compile.. so first.. for Delphi
> assembly compatibility do I have to change assembler mode.. like to AT&T
> Vs. Intel? 2nd do routines like these already exist in the FPC, so that
> I can simply get rid of them? The headers declare them(the routines
> which won't compile) as :
>
> { Scales up floating point Value into whole integer Value  }
> function ScaleUp(Value: Extended; Places: integer): Integer;
>
> { Scales down whole integer Value into floating point Value }
> function ScaleDown(Value: Integer; Places: integer): Extended;
>
> { Checks double for valid values for 52-bit integer }
> function ValidInt52(Value: Double): Boolean;
>
>
> For the first two I do not understand why floor/ceil aren't being used
> anyway.. and for the 3rd I do not see what purpose it could possible
> serve. But since I don't use it directly and I am not familiar enough
> with the components internals, I cannot say for certain that it will
> work fine without them.
>
> Anybody help is appreciated.
>
> Andrew
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list