toon-members
[Top][All Lists]
Advanced

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

Re: [Toon-members] TooN helpers.h


From: E. Rosten
Subject: Re: [Toon-members] TooN helpers.h
Date: Tue, 7 Apr 2009 09:39:21 +0100 (BST)

On Tue, 7 Apr 2009, Gerhard Reitmayr wrote:

Hi,


Modified files:
        .              : helpers.h

Log message:
        replaced unit with multiply for efficiency

shouldn't this kind of optimisation already take place in the '/' operator function ? then its available always...

It takes place in the compiler. If you look at the commit log from "Wed 25 Mar, 2009 20:18:16" (the test of the different vector normalization routines) the resulting asm code has one div, and a lot of muls.


-Ed


--
(You can't go wrong with psycho-rats.)(http://mi.eng.cam.ac.uk/~er258)

/d{def}def/f{/Times s selectfont}d/s{11}d/r{roll}d f 2/m{moveto}d -1
r 230 350 m 0 1 179{ 1 index show 88 rotate 4 mul 0 rmoveto}for/s 12
    d f pop 235 420 translate 0 0 moveto 1 2 scale show showpage




reply via email to

[Prev in Thread] Current Thread [Next in Thread]