llvm-project
llvm-project copied to clipboard
[libc][c23] implement `memset_explicit`
See:
- https://gustedt.gitlabpages.inria.fr/c23-library/
- n3088
I am currently working on this but I am still trying to make it clear about the assumptions/requirements of this function, given that [1] lists some suggestions that are seemingly too restrictive.
@llvm/issue-subscribers-libc
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
See:
1. https://gustedt.gitlabpages.inria.fr/c23-library/
2. https://www.[open-std.org/jtc1/sc22/WG14/www/docs/n3088.pdf](https://www.open-std.org/jtc1/sc22/WG14/www/docs/n3088.pdf)
I am currently working on this but I still trying to make it clear about the assumptions/requirements of this function, given that [1] lists some suggestions that are seemingly too restrictive.
Clang, just like GCC, has no __builtin_memset_explicit, I think this should be added for C23 support.