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

The gcc builtin __builtin_clzll is not available in Windows #247

Closed
wants to merge 1 commit into from

Conversation

jasnell
Copy link
Contributor

@jasnell jasnell commented Jun 23, 2020

The gcc builtin __builtin_clzll is not available in Windows when building using windows.

The gcc builtin __builtin_clzll is not available in Windows when building using windows.
@jasnell
Copy link
Contributor Author

jasnell commented Jun 23, 2020

Even this really isn't ideal for our case since we need to be able to build and compile on x86. Current solution on x86 is to define __builtin_clzll() as a non-op function and we'll block use of the cubic congestion method on that platform unless there's a replacement here that would allow it to compile and function correctly on win x86

jasnell added a commit to jasnell/node that referenced this pull request Jun 23, 2020
The ngtcp2 update uses a gcc builtin that is not available under
_MSC_VER. This floats a patch to fix it.

Upstream PR: ngtcp2/ngtcp2#247
jasnell added a commit to nodejs/node that referenced this pull request Jun 24, 2020
The ngtcp2 update uses a gcc builtin that is not available under
_MSC_VER. This floats a patch to fix it.

Upstream PR: ngtcp2/ngtcp2#247

PR-URL: #34033
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
@tatsuhiro-t
Copy link
Member

@jasnell Thank you for PR. #248 has workaround for windows x86 (32 bits build) which lacks __lzcnt64. Does it work for you?

@jasnell
Copy link
Contributor Author

jasnell commented Jun 25, 2020

Yes, #248 should work just fine. Thank you :)

@tatsuhiro-t
Copy link
Member

Thank you. I'll merge #248 and close this PR.

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