@@ -63,14 +63,14 @@ using llvm::libc_benchmarks::MemcpyConfiguration;
63
63
using llvm::libc_benchmarks::MemmoveConfiguration;
64
64
using llvm::libc_benchmarks::MemsetConfiguration;
65
65
66
- namespace __llvm_libc {
66
+ namespace LIBC_NAMESPACE {
67
67
68
68
static void memcpy_0xE00E29EE73994E2B(char *__restrict dst, const char *__restrict src, size_t size) {
69
- using namespace __llvm_libc ::x86;
69
+ using namespace LIBC_NAMESPACE ::x86;
70
70
return copy<Accelerator>(dst, src, size);
71
71
}
72
72
static void memcpy_0x7381B60C7BE75EF9(char *__restrict dst, const char *__restrict src, size_t size) {
73
- using namespace __llvm_libc ::x86;
73
+ using namespace LIBC_NAMESPACE ::x86;
74
74
if(size == 0) return;
75
75
if(size == 1) return copy<_1>(dst, src);
76
76
if(size == 2) return copy<_2>(dst, src);
@@ -84,7 +84,7 @@ static void memcpy_0x7381B60C7BE75EF9(char *__restrict dst, const char *__restri
84
84
return copy<Loop<_64>>(dst, src, size);
85
85
}
86
86
static int memcmp_0x348D7BA6DB0EE033(const char * lhs, const char * rhs, size_t size) {
87
- using namespace __llvm_libc ::x86;
87
+ using namespace LIBC_NAMESPACE ::x86;
88
88
if(size == 0) return 0;
89
89
if(size == 1) return three_way_compare<_1>(lhs, rhs);
90
90
if(size < 4) return three_way_compare<HeadTail<_2>>(lhs, rhs, size);
@@ -95,7 +95,7 @@ static int memcmp_0x348D7BA6DB0EE033(const char * lhs, const char * rhs, size_t
95
95
return three_way_compare<Align<_16,Arg::Lhs>::Then<Loop<_16>>>(lhs, rhs, size);
96
96
}
97
97
static void memset_0x71E761699B999863(char * dst, int value, size_t size) {
98
- using namespace __llvm_libc ::x86;
98
+ using namespace LIBC_NAMESPACE ::x86;
99
99
if(size == 0) return;
100
100
if(size == 1) return splat_set<_1>(dst, value);
101
101
if(size < 4) return splat_set<HeadTail<_2>>(dst, value, size);
@@ -108,7 +108,7 @@ static void memset_0x71E761699B999863(char * dst, int value, size_t size) {
108
108
return splat_set<Align<_16,Arg::Dst>::Then<Loop<_32>>>(dst, value, size);
109
109
}
110
110
static void memset_0x3DF0F44E2ED6A50F(char * dst, int value, size_t size) {
111
- using namespace __llvm_libc ::x86;
111
+ using namespace LIBC_NAMESPACE ::x86;
112
112
if(size == 0) return;
113
113
if(size == 1) return splat_set<_1>(dst, value);
114
114
if(size < 4) return splat_set<HeadTail<_2>>(dst, value, size);
@@ -121,7 +121,7 @@ static void memset_0x3DF0F44E2ED6A50F(char * dst, int value, size_t size) {
121
121
return splat_set<Align<_32,Arg::Dst>::Then<Loop<_32>>>(dst, value, size);
122
122
}
123
123
static void bzero_0x475977492C218AD4(char * dst, size_t size) {
124
- using namespace __llvm_libc ::x86;
124
+ using namespace LIBC_NAMESPACE ::x86;
125
125
if(size == 0) return;
126
126
if(size == 1) return splat_set<_1>(dst, 0);
127
127
if(size == 2) return splat_set<_2>(dst, 0);
@@ -134,7 +134,7 @@ static void bzero_0x475977492C218AD4(char * dst, size_t size) {
134
134
return splat_set<Align<_32,Arg::Dst>::Then<Loop<_32>>>(dst, 0, size);
135
135
}
136
136
137
- } // namespace __llvm_libc
137
+ } // namespace LIBC_NAMESPACE
138
138
139
139
namespace llvm {
140
140
namespace automemcpy {
@@ -163,7 +163,7 @@ void *Wrap(void *__restrict dst, const void *__restrict src, size_t size) {
163
163
return dst;
164
164
}
165
165
llvm::ArrayRef<MemcpyConfiguration> getMemcpyConfigurations() {
166
- using namespace __llvm_libc ;
166
+ using namespace LIBC_NAMESPACE ;
167
167
static constexpr MemcpyConfiguration kConfigurations[] = {
168
168
{Wrap<memcpy_0xE00E29EE73994E2B>, "memcpy_0xE00E29EE73994E2B"},
169
169
{Wrap<memcpy_0x7381B60C7BE75EF9>, "memcpy_0x7381B60C7BE75EF9"},
@@ -178,7 +178,7 @@ int Wrap(const void *lhs, const void *rhs, size_t size) {
178
178
reinterpret_cast<const char *>(rhs), size);
179
179
}
180
180
llvm::ArrayRef<MemcmpOrBcmpConfiguration> getMemcmpConfigurations() {
181
- using namespace __llvm_libc ;
181
+ using namespace LIBC_NAMESPACE ;
182
182
static constexpr MemcmpOrBcmpConfiguration kConfigurations[] = {
183
183
{Wrap<memcmp_0x348D7BA6DB0EE033>, "memcmp_0x348D7BA6DB0EE033"},
184
184
};
@@ -194,7 +194,7 @@ template <MemsetStub Foo> void *Wrap(void *dst, int value, size_t size) {
194
194
return dst;
195
195
}
196
196
llvm::ArrayRef<MemsetConfiguration> getMemsetConfigurations() {
197
- using namespace __llvm_libc ;
197
+ using namespace LIBC_NAMESPACE ;
198
198
static constexpr MemsetConfiguration kConfigurations[] = {
199
199
{Wrap<memset_0x71E761699B999863>, "memset_0x71E761699B999863"},
200
200
{Wrap<memset_0x3DF0F44E2ED6A50F>, "memset_0x3DF0F44E2ED6A50F"},
@@ -207,7 +207,7 @@ template <BzeroStub Foo> void Wrap(void *dst, size_t size) {
207
207
Foo(reinterpret_cast<char *>(dst), size);
208
208
}
209
209
llvm::ArrayRef<BzeroConfiguration> getBzeroConfigurations() {
210
- using namespace __llvm_libc ;
210
+ using namespace LIBC_NAMESPACE ;
211
211
static constexpr BzeroConfiguration kConfigurations[] = {
212
212
{Wrap<bzero_0x475977492C218AD4>, "bzero_0x475977492C218AD4"},
213
213
};
0 commit comments