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

Why __builtin_memcmp() is forbidden? #32624

Closed
tacslon opened this issue May 20, 2024 · 1 comment
Closed

Why __builtin_memcmp() is forbidden? #32624

tacslon opened this issue May 20, 2024 · 1 comment

Comments

@tacslon
Copy link

tacslon commented May 20, 2024

@borkmann Hi, I saw __builtin_memcmp() is forbidden to use in this commit 239711b, and I have 2 questions:

  1. Why we do not use __builtin_memcmp() directly? Is there a risk of performance?
  2. Why we only support several specified value of N in __builtin_memcmp() (values in switch-case block)?

Thanks!

@lmb
Copy link
Contributor

lmb commented May 21, 2024

This is a bug / issue tracker for Cilium, please try the development channel on our Slack.

@lmb lmb closed this as completed May 21, 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

No branches or pull requests

2 participants