Skip to content

[WIP] Implement cent/ucent data types.#891

Closed
redstar wants to merge 1 commit intoldc-developers:merge-2.067from
redstar:cent
Closed

[WIP] Implement cent/ucent data types.#891
redstar wants to merge 1 commit intoldc-developers:merge-2.067from
redstar:cent

Conversation

@redstar
Copy link
Member

@redstar redstar commented Apr 6, 2015

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.

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.
@redstar redstar force-pushed the cent branch 7 times, most recently from e9ccba3 to b5641d3 Compare April 9, 2015 19:15
@redstar redstar force-pushed the cent branch 3 times, most recently from 8f114bd to b304977 Compare May 1, 2015 18:31
@redstar redstar force-pushed the cent branch 2 times, most recently from 3e57c23 to d47dd97 Compare May 31, 2015 17:02
@dnadlinger
Copy link
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.

@redstar
Copy link
Member Author

redstar commented Aug 25, 2015

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.
@yebblies
Copy link

So what's the plan for the cent stuff?

@redstar
Copy link
Member Author

redstar commented Sep 26, 2015

See #1120.

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