Re: tula's DSP modules
Posted: Fri Jan 12, 2018 5:30 am
RJHollins wrote:Thanks T.
Are there any DSP sites that you're researching from ?
No, but I'm sure that will happen, once I enter the "complex zone"
DSP Robotics and FlowStone Graphical Programming Software Support and Forums
http://dsprobotics.com/support/
RJHollins wrote:Thanks T.
Are there any DSP sites that you're researching from ?
tulamide wrote:RJHollins wrote:Thanks T.
Are there any DSP sites that you're researching from ?
No, but I'm sure that will happen, once I enter the "complex zone"
sgn = -1&-2 //sign bitmask defined in stage 0
1|(switch&sgn) //results in either -1 or 1
tulamide wrote:
- Code: Select all
sgn = -1&-2
float signbit = -0;
out = in ^ (switch & signbit);
TheOm wrote:There is actually an even simpler method to get a sign mask in dsp code:
- Code: Select all
float signbit = -0;
martinvicanek wrote:Do you happen to have a simpler expression for the abs bitmask as well?
TheOm wrote:
Unfortunately you can not use xor in dsp code, otherwise one could simplify the code to
- Code: Select all
out = in ^ (switch & signbit);
This is why I don't like the dsp code module, it is limiting because it doesn't have all the features and the generated asm code is poor.