[libc-commits] [libc] 7abd8f6 - [libc][Obvious] Fix typos

Cheng Wang via libc-commits libc-commits at lists.llvm.org
Sat Sep 4 19:56:32 PDT 2021


Author: Cheng Wang
Date: 2021-09-05T10:54:52+08:00
New Revision: 7abd8f6c6eb233065f55d2f4894f39e4fea2a58c

URL: https://github.com/llvm/llvm-project/commit/7abd8f6c6eb233065f55d2f4894f39e4fea2a58c
DIFF: https://github.com/llvm/llvm-project/commit/7abd8f6c6eb233065f55d2f4894f39e4fea2a58c.diff

LOG: [libc][Obvious] Fix typos

Added: 
    

Modified: 
    libc/benchmarks/RATIONALE.md
    libc/src/string/memory_utils/elements.h

Removed: 
    


################################################################################
diff  --git a/libc/benchmarks/RATIONALE.md b/libc/benchmarks/RATIONALE.md
index 039a24a88e56..1ebc5ec02da2 100644
--- a/libc/benchmarks/RATIONALE.md
+++ b/libc/benchmarks/RATIONALE.md
@@ -13,7 +13,7 @@ systems; and so other metrics can be equally important:
 ## Rationale
 
 The goal here is to satisfy the [Benchmarking
-Principles](https://en.wikipedia.org/wiki/Benchmark_\(computing\)#Benchmarking_Principles).
+Principles](https://en.wikipedia.org/wiki/Benchmark_(computing)#Benchmarking_Principles).
 
 1.  **Relevance**: Benchmarks should measure relatively vital features.
 2.  **Representativeness**: Benchmark performance metrics should be broadly
@@ -26,7 +26,7 @@ Principles](https://en.wikipedia.org/wiki/Benchmark_\(computing\)#Benchmarking_P
 7.  **Transparency**: Benchmark metrics should be easy to understand.
 
 Benchmarking is a [subtle
-art](https://en.wikipedia.org/wiki/Benchmark_\(computing\)#Challenges) and
+art](https://en.wikipedia.org/wiki/Benchmark_(computing)#Challenges) and
 benchmarking memory functions is no exception. Here we'll dive into
 peculiarities of designing good microbenchmarks for `llvm-libc` memory
 functions.
@@ -189,7 +189,7 @@ active cores."_
 is always set to `performance`. We also want to make sure that the time based
 events are not impacted by frequency scaling.**
 
-See [REAME.md](REAME.md) on how to set this up.
+See [README.md](README.md) on how to set this up.
 
 ### Reserved and pinned cores
 

diff  --git a/libc/src/string/memory_utils/elements.h b/libc/src/string/memory_utils/elements.h
index 5f19e861e19f..1b893373e41c 100644
--- a/libc/src/string/memory_utils/elements.h
+++ b/libc/src/string/memory_utils/elements.h
@@ -443,7 +443,7 @@ template <size_t Size> struct Builtin {
 
 private:
   // Copies `kSize` bytes from `src` to `dst` using a for loop.
-  // This code requires the use of `-fno-buitin-memcpy` to prevent the compiler
+  // This code requires the use of `-fno-builtin-memcpy` to prevent the compiler
   // from turning the for-loop back into `__builtin_memcpy`.
   static void ForLoopCopy(char *__restrict dst, const char *__restrict src) {
     for (size_t i = 0; i < kSize; ++i)


        


More information about the libc-commits mailing list