Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DspComplex multiplies use growing addition. #157

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

grebe
Copy link
Contributor

@grebe grebe commented Apr 25, 2019

DspComplex relies on using the underlying Ring's multiplication. For UInt, SInt, FixedPoint, etc. these additions wrap instead of grow. For our implementation of complex multiplication, growing is more desirable
than wrapping.

This commit adds specialized versions of the DspComplex for UInt, SInt, FixedPoint, etc. that use growing addition.

This is in response to an issue @mkosunen and @Yuedai14 were running into that they were working around by increasing input bitwidth.

@shunshou, what do you think?

DspComplex relies on using the underlying Ring's multiplication. For
UInt, SInt, FixedPoint, etc. these additions wrap instead of grow. For
our implementation of complex multiplication, growing is more desirable
than wrapping.

This commit adds specialized versions of the DspComplex for UInt, SInt,
FixedPoint, etc. that use growing addition.
@shunshou
Copy link
Member

shunshou commented Apr 25, 2019 via email

@shunshou
Copy link
Member

shunshou commented Apr 26, 2019 via email

@chick chick merged commit 8c2115f into master Aug 11, 2020
@grebe grebe deleted the specializedComplexMultiply branch August 13, 2020 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants