-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
WIP: [C++] Get rid of code duplication in Decimal##bit_width #8417
Conversation
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
Thanks for opening a pull request! Could you open an issue for this pull request on JIRA? Then could you also rename pull request title in the following format?
See also: |
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
I can look in a bit more detail but two high level comments:
|
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
@emkornfield thanks for your comment!
Moving forward, I think that it could be useful if we'll declare some interface for |
An interface could be helpful for documentation purposes but in general, I don't think we want virtual methods (especially for BasicDecimal).
This is a TODO item. |
Closing in glory of reopened PR against master #8578 |
PR to get rid of code duplication while declaring new
Decimal##BIT_WIDTH##Type
. Since there is a plans to add support for lower bit Decimals also, I think Decimal256 branch is the best place to decide how we want to define the mechanism of adding support for new Decimal types without a lot of code duplications.There are probably some places where we can remove redundant defines and template help structures, so this is just a draft PR to have a base for discussion.