Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: DSP frac arithmetic help
Posted by: dml Feb,27.2015-18:46 

...one extra thing to watch out for there...

Assuming abs does what you expected (assuming accumulator is fully sign extended first, since abs is a 56bit op) the result of abs(-1.0) is 1.0, which is invalid for the multiplier. So abs may work, but then the mul will not.

But as I said before, if you're squaring the values you don't need abs, and so long as the inputs are -1.0 -> 0.9999 then the mul will work and the result will be +ve.








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
DSP frac arithmetic help Laurent / Thadoss Feb,27.2015-15:03
  Re: DSP frac arithmetic help Laurent / Thadoss Feb,27.2015-15:08
  Re: DSP frac arithmetic help dml Feb,27.2015-15:28
    Re: DSP frac arithmetic help Laurent / Thadoss Feb,27.2015-18:32
      Re: DSP frac arithmetic help dml Feb,27.2015-18:42
        Re: DSP frac arithmetic help dml Feb,27.2015-18:46
          Re: DSP frac arithmetic help Splash/S1 Feb,27.2015-20:21
            Re: DSP frac arithmetic help dml Feb,27.2015-20:38
              Re: DSP frac arithmetic help Laurent / Thadoss Feb,27.2015-20:42
    Re: DSP frac arithmetic help mikro Feb,28.2015-10:44
      Re: DSP frac arithmetic help dml Feb,28.2015-12:35


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson