Skip to content

The gcc builtin __builtin_clzll is not available in Windows#247

Closed
jasnell wants to merge 1 commit intongtcp2:masterfrom
jasnell:patch-1
Closed

The gcc builtin __builtin_clzll is not available in Windows#247
jasnell wants to merge 1 commit intongtcp2:masterfrom
jasnell:patch-1

Conversation

@jasnell
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

jasnell commented Jun 25, 2020

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

@tatsuhiro-t
Copy link
Copy Markdown
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.

2 participants