[WIP] Implement cent/ucent data types.#891
Closed
redstar wants to merge 1 commit intoldc-developers:merge-2.067from
Closed
[WIP] Implement cent/ucent data types.#891redstar wants to merge 1 commit intoldc-developers:merge-2.067from
redstar wants to merge 1 commit intoldc-developers:merge-2.067from
Conversation
redstar
added a commit
to redstar/dmd
that referenced
this pull request
Apr 6, 2015
Add the tokens to the token list and adds them to the parser wher needed. Does not add a lexer for these values - they are unused. See ldc-developers/ldc#891 for the use case.
redstar
added a commit
to redstar/dmd
that referenced
this pull request
Apr 6, 2015
Add the tokens to the token list and adds them to the parser where needed. Does not add a lexer for these values - they are unused. See ldc-developers/ldc#891 for the use case.
e9ccba3 to
b5641d3
Compare
8f114bd to
b304977
Compare
3e57c23 to
d47dd97
Compare
Member
|
What's the status on the cent/ucent implementation? There is a bunch of related hunks in the current frontend diff (dlang/dmd#4688) that do not seem to be doing anything, which is less than ideal given that switching to the D frontend is going to be a topic soon. |
Member
Author
|
A general uint128_t class is missing (implementation is gcc/clang only). DMD also lacks code generation. |
This is a first try at implementing the data types cent and ucent. All changes are wrapped in #if WANT_CENT .. #endif. It takes advantage of the GCC builtin type __int128 and is currently only enabled if compiled with gcc. As soon as this is stable it should go upstream, too.
|
So what's the plan for the cent stuff? |
Member
Author
|
See #1120. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a first try at implementing the data types cent and ucent.
All changes are wrapped in #if WANT_CENT .. #endif. It takes
advantage of the GCC builtin type __int128 and is currently only
enabled if compiled with gcc.
As soon as this is stable it should go upstream, too.