Skip to content

clang branch optimisation - #25

Open
spectre-nt wants to merge 1 commit into
JacksonAllan:mainfrom
spectre-nt:main
Open

clang branch optimisation#25
spectre-nt wants to merge 1 commit into
JacksonAllan:mainfrom
spectre-nt:main

Conversation

@spectre-nt

Copy link
Copy Markdown

clang does support __builtin_expect(long exp, long c): https://llvm.org/docs/BranchWeightMetadata.html#builtin-expect
but clang does not define __GNUC__ when building with windows-msvc target triplett: x86_64-pc-windows-msvc but clang does always define __clang__ so it should check if __GNUC__ OR __clang__ is defined to define the likely and unlikely macros with __builtin_expect optimisation.

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.

1 participant