[libc-commits] [libc] 5207331 - [libc] Fix typo of namespace in round implementation.
Paula Toth via libc-commits
libc-commits at lists.llvm.org
Wed Feb 26 12:24:27 PST 2020
Author: Paula Toth
Date: 2020-02-26T12:24:07-08:00
New Revision: 52073310e443a206653f8f4c841f42ed88ab549b
URL: https://github.com/llvm/llvm-project/commit/52073310e443a206653f8f4c841f42ed88ab549b
DIFF: https://github.com/llvm/llvm-project/commit/52073310e443a206653f8f4c841f42ed88ab549b.diff
LOG: [libc] Fix typo of namespace in round implementation.
Summary: Fixed typos in namespace declarations and comments in the files under `src/math/round`.
Reviewers: sivachandra, abrachet
Reviewed By: sivachandra, abrachet
Subscribers: MaskRay, tschuett, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D75205
Added:
Modified:
libc/src/math/round/round.cpp
libc/src/math/round/round.h
libc/src/math/round/round_redirector.cpp
Removed:
################################################################################
diff --git a/libc/src/math/round/round.cpp b/libc/src/math/round/round.cpp
index 7352b98269f5..26eeadb378f1 100644
--- a/libc/src/math/round/round.cpp
+++ b/libc/src/math/round/round.cpp
@@ -10,7 +10,7 @@
#include "src/__support/common.h"
-namespace llvm_libc {
+namespace __llvm_libc {
double __round_redirector(double x);
@@ -18,4 +18,4 @@ double LLVM_LIBC_ENTRYPOINT(round)(double x) {
return __round_redirector(x);
}
-} // namespace llvm_libc
+} // namespace __llvm_libc
diff --git a/libc/src/math/round/round.h b/libc/src/math/round/round.h
index c13ecccfecac..99f890b4ffad 100644
--- a/libc/src/math/round/round.h
+++ b/libc/src/math/round/round.h
@@ -9,10 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUND_H
#define LLVM_LIBC_SRC_MATH_ROUND_H
-namespace llvm_libc {
+namespace __llvm_libc {
double round(double x);
-} // namespace llvm_libc
+} // namespace __llvm_libc
#endif // LLVM_LIBC_SRC_MATH_ROUND_H
diff --git a/libc/src/math/round/round_redirector.cpp b/libc/src/math/round/round_redirector.cpp
index 8d37b0895c79..6ee074456daf 100644
--- a/libc/src/math/round/round_redirector.cpp
+++ b/libc/src/math/round/round_redirector.cpp
@@ -8,10 +8,10 @@
#include <math.h>
-namespace llvm_libc {
+namespace __llvm_libc {
double __round_redirector(double x) {
return ::round(x);
}
-} // namespace llvm_libc
+} // namespace __llvm_libc
More information about the libc-commits
mailing list