[libc-commits] [PATCH] D135187: [libc] implement basic rand and srand

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Oct 4 12:01:09 PDT 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

This provides the reference implementation of rand and srand. In future
this will likely be upgraded to something that supports full ints.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135187

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/include/CMakeLists.txt
  libc/include/llvm-libc-macros/CMakeLists.txt
  libc/include/llvm-libc-macros/stdlib-macros.h
  libc/include/stdlib.h.def
  libc/spec/spec.td
  libc/spec/stdc.td
  libc/src/stdlib/CMakeLists.txt
  libc/src/stdlib/rand.cpp
  libc/src/stdlib/rand.h
  libc/src/stdlib/rand_util.cpp
  libc/src/stdlib/rand_util.h
  libc/src/stdlib/srand.cpp
  libc/src/stdlib/srand.h
  libc/test/src/stdlib/CMakeLists.txt
  libc/test/src/stdlib/rand_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135187.465109.patch
Type: text/x-patch
Size: 11619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221004/53e35abb/attachment.bin>


More information about the libc-commits mailing list