[all-commits] [llvm/llvm-project] 38b6f5: [libc] implement basic rand and srand
michaelrj-google via All-commits
all-commits at lists.llvm.org
Tue Oct 4 13:31:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 38b6f58e33bbd8dc0be570f41806d0a9006610d9
https://github.com/llvm/llvm-project/commit/38b6f58e33bbd8dc0be570f41806d0a9006610d9
Author: Michael Jones <michaelrj at google.com>
Date: 2022-10-04 (Tue, 04 Oct 2022)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/include/CMakeLists.txt
M libc/include/llvm-libc-macros/CMakeLists.txt
A libc/include/llvm-libc-macros/stdlib-macros.h
M libc/include/stdlib.h.def
M libc/spec/spec.td
M libc/spec/stdc.td
M libc/src/stdlib/CMakeLists.txt
A libc/src/stdlib/rand.cpp
A libc/src/stdlib/rand.h
A libc/src/stdlib/rand_util.cpp
A libc/src/stdlib/rand_util.h
A libc/src/stdlib/srand.cpp
A libc/src/stdlib/srand.h
M libc/test/src/stdlib/CMakeLists.txt
A libc/test/src/stdlib/rand_test.cpp
Log Message:
-----------
[libc] implement basic rand and srand
This provides the reference implementation of rand and srand. In future
this will likely be upgraded to something that supports full ints.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D135187
More information about the All-commits
mailing list