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

Jit64/Jit64_Tables: Construct tables at compile-time #8151

Merged
merged 1 commit into from Apr 28, 2020

Conversation

lioncash
Copy link
Member

Utilizing constexpr, we can eliminate the need to construct the tables at runtime and just do all the work at compile-time. Making for less moving parts overall.

The general structure is more or less the same, however rather than one single initialization function, each table is built off an immediately executed lambda function. This is nice, since it narrows the scope of the table building logic down to the table that actually uses it.

@lioncash lioncash force-pushed the jit_tables branch 2 times, most recently from dea6c2e to 37b1c10 Compare May 31, 2019 17:08
@NotTsunami
Copy link
Contributor

Can this also be extended to JitArm64?

Utilizing constexpr, we can eliminate the need to construct the tables
at runtime and just do all the work at compile-time. Making for less
moving parts overall.

The general structure is more or less the same, however rather than one
single initialization function, each table is built off an immediately
executed lambda function. This is nice, since it narrows the scope of
the table building logic down to the tables that actually need it.
Copy link
Member

@leoetlino leoetlino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3 constexpr

@leoetlino leoetlino merged commit 401b582 into dolphin-emu:master Apr 28, 2020
@lioncash lioncash deleted the jit_tables branch April 28, 2020 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants