Re: Faster Frac() imlementation?



On 26 jul, 13:37, "Hubert Seidel" <nos...@xxxxxxxxxxxxxxxx> wrote:
Hello Anybody,

[snipped code]
// now calculate the interpolated value using the difference between these
two samples
delta := h2 - h1;
result := h1+ ((delta*frac) div 256);

Thanks.. that looks like it may speed things up quite a bit! I'm going
to play around with that.
I may even be able to translate that into asm with my limited
assembler skills.

Thanks a lot!

Bram


.



Relevant Pages

  • Re: What is your earliest pinball machine from memory (and do you own it (them)
    ... an Amazing Spiderman and a nine-ball in their basement, ... ASM for the first time there. ... Playland to play pin, my fav's at the time being STTNG. ...
    (rec.games.pinball)
  • Re: Do you visualize a pattern when Soloing?
    ... > translate it to your fretboard? ... I 'hear' the notes I want to play in my head, ... I guess all those years playing "She'll Be Coming 'Round the Mountain" ...
    (alt.guitar)
  • Re: Question for Win Hill/ Athlon64
    ... > It's one of those jokes that don't translate very well, ... > a play with words, ... "Niggers I've Met While Yachting" ...
    (sci.electronics.design)
  • Re: Favorite Western? OT
    ... translate the Dead Sea Scrolls! ... Because it's not a question of how well you play, it's a question of how well you play once." ...
    (rec.music.beatles)
  • Re: OT: men wearing ear-rings
    ... Miller's play "The Witches of Salem." ... When translating anything that isn` a document, but a literary work ... Sometimes if you translate `correctly` it will not bring over the ... the locals waht it was about!!!! ...
    (rec.crafts.textiles.needlework)