-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update timer operations with new time type (secs24p8) #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. My general feeling is that it's better to use *, /, + rather than <<, >>, | because it's more general.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost all compilers will "optimize" multiply / divide by powers of two as a <<
or >>
respectively.... i acltually prefer the shift operators, since i know what's happening.... 65536 feels like "more" of a magic number than 1 << 16 does...
i'm also trying to encapsulate these formulas as much as possible – ultimately in a concrete Secs_24p8
struct type that otherwise incurs no additional runtime overhead....
OK. Let me know if you want me to merge etc. |
major refactor/cleanup of WakeupTimer + Uptimer functionality....
before merging into staging, we should "fine-tune" any names for clarity....
Closes #38