[libc-commits] [libc] [libc] Add separate `rand` implementation for baremetal (PR #96798)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Wed Jun 26 10:18:08 PDT 2024


================
@@ -0,0 +1,21 @@
+//===-- Implementation header for rand utilities ----------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_STDLIB_RAND_UTIL_H
+#define LLVM_LIBC_SRC_STDLIB_RAND_UTIL_H
+
+#include "src/__support/macros/attributes.h"
----------------
nickdesaulniers wrote:

unused?

Does libc/src/stdlib/rand_util.h have this problem, too? Mind cleaning that up, too, while you're here?

https://github.com/llvm/llvm-project/pull/96798


More information about the libc-commits mailing list