Bitwise usage for IF
Posted: Mon Jan 25, 2016 8:14 am
Hello!
Can you give me an example how to organize the expression like this in DSP code?
If asum1 <=1 then x = 1.0
else x = asum1
Pardon my free "code"
In practice I'm trying to make a module that will be keeping a sum of three inputs below 1.0
Dancing around "&" gives me the asum1 or zero on the variable. I can't figure out how to make it properly. I'll add the code later when i'll be at home.
Can you give me an example how to organize the expression like this in DSP code?
If asum1 <=1 then x = 1.0
else x = asum1
Pardon my free "code"
In practice I'm trying to make a module that will be keeping a sum of three inputs below 1.0
Dancing around "&" gives me the asum1 or zero on the variable. I can't figure out how to make it properly. I'll add the code later when i'll be at home.