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

Fix FP16 bitcasts for ClangCL on ARM/ARM64 #26

Merged
merged 1 commit into from
May 14, 2024

Conversation

StefanStojanovic
Copy link
Contributor

When using ClangCL _MSC_VER is defined just like for MSVC but intrin.h is missing. Adding && not defined(__clang__) was required to distinct MSVC and ClangCL.

I've noticed this issue when working on adding support for ClangCL for Node.js. The V8 engine, one of its dependencies has FP16 as a dependency of its own.

I've tested these changes with both MSVC and ClangCL and the compilation passed.

include/fp16/bitcasts.h Outdated Show resolved Hide resolved
When using ClangCL _MSC_VER is defined just like for MSVC but intrin.h
is missing. Adding not defined(__clang__) was required to distinct MSVC
and ClangCL.
@Maratyszcza Maratyszcza merged commit 95163a7 into Maratyszcza:master May 14, 2024
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