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

Implement mul for generic rate #94

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tdittr
Copy link

@tdittr tdittr commented Feb 21, 2021

Hi,

I am currently implementing some PLL logic and stumbled over generic rate not implementing Mul.

I am not sure if this was intentional or if my implementation is missing some details. I'm happy about feedback :)

I was also thinking about implementing Div, but I am not sure how that should affect the fraction.

Thanks for the nice library,
tdittr

Mul is already implemented for the fixed point variants of rate.
This is useful when calculating rates after a PLL.
@PTaylor-us
Copy link
Member

Thanks for this! It was intentional, but I'm starting to realize that these features do need to exist.

@tdittr
Copy link
Author

tdittr commented Mar 21, 2021

Hi thanks for the response. Maybe this PR would need a bit more thought to be useful for the whole crate.

@PTaylor-us PTaylor-us marked this pull request as draft April 12, 2021 13:57
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.

2 participants