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

First steps towards cross-platform #48

Merged
merged 3 commits into from
Nov 23, 2020
Merged

Conversation

Roman-Koshelev
Copy link
Contributor

No description provided.

Let's remove the self-written implementation of atomic, because
it is used in only one place and generates code no better than
the standard implementation
On x86-64, the most significant bits of the RDX:RAX registers are
guaranteed to be zero. This means that the rdtsc instruction will return
two 64-bit numbers. In practice, this removes the extra instruction to
clear the most significant bits of the return value.
Taking one step towards cross-platform
@syang0
Copy link
Member

syang0 commented Nov 21, 2020

Hi Roman-Koshelev,

This is a great pull request! Let me verify that everything compiles with my toolchain and that there are no performance regressions. If all goes well, I'll merge the changes to master! 🙂

Best Regards,
Stephen Yang

@syang0 syang0 merged commit b45c104 into PlatformLab:master Nov 23, 2020
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.

None yet

2 participants