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

Improve assembly code in SDK #237

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fel1x-developer
Copy link
Contributor

  • On Windows, __debugbreak(); is prefered over asm(int 3)
  • CPUID and RDTSC are supported by default since Pentium
  • Removed unused (#if 0) assembly code

Windows' __debugbreak() can be used for all architectures (x86, x64, arm64, etc), while GNU or Clang's `int 3` works for both x86 and x64.
Both are supported since Pentium, so there is no need to check if they exist.
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

1 participant