summaryrefslogtreecommitdiffhomepage
path: root/benchmarks
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-05-05 23:07:08 +0200
committerTyge Løvset <[email protected]>2021-05-05 23:07:08 +0200
commit62e645888a7e3ac933ba9971a7d856359f260169 (patch)
treed3741582ae0480b1d6f673d5bbe9700d0763bcbc /benchmarks
parentdbb3fd3f4b1317f4f7af50bd5dac0dd454065032 (diff)
downloadSTC-modified-62e645888a7e3ac933ba9971a7d856359f260169.tar.gz
STC-modified-62e645888a7e3ac933ba9971a7d856359f260169.zip
Changed some lesser used API in cvec and cdeq to be more consistent. Improved cdeq.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/others/clist_v1.h4
-rw-r--r--benchmarks/others/csmap_v1.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/others/clist_v1.h b/benchmarks/others/clist_v1.h
index 0887d5b3..0c438ad0 100644
--- a/benchmarks/others/clist_v1.h
+++ b/benchmarks/others/clist_v1.h
@@ -104,7 +104,7 @@ STC_API size_t _clist_count(const clist_VOID* self);
STC_API void CX##_del(CX* self); \
STC_API void CX##_push_back(CX* self, Value value); \
STC_API void CX##_push_front(CX* self, Value value); \
- STC_API void CX##_emplace_n(CX *self, const CX##_rawvalue_t arr[], size_t n); \
+ STC_API void CX##_emplace_items(CX *self, const CX##_rawvalue_t arr[], size_t n); \
STC_API CX CX##_split_after(CX* self, CX##_iter_t pos1, CX##_iter_t pos2); \
STC_API void CX##_splice_after(CX* self, CX##_iter_t pos, CX* other); \
STC_DEF void CX##_splice_after_range(CX* self, CX##_iter_t pos, CX* other, CX##_iter_t i1, CX##_iter_t i2); \
@@ -210,7 +210,7 @@ STC_API size_t _clist_count(const clist_VOID* self);
} \
\
STC_DEF void \
- CX##_emplace_n(CX *self, const CX##_rawvalue_t arr[], size_t n) { \
+ CX##_emplace_items(CX *self, const CX##_rawvalue_t arr[], size_t n) { \
for (size_t i=0; i<n; ++i) CX##_push_back(self, valueFromRaw(arr[i])); \
} \
\
diff --git a/benchmarks/others/csmap_v1.h b/benchmarks/others/csmap_v1.h
index 1d65b516..f93ff1cd 100644
--- a/benchmarks/others/csmap_v1.h
+++ b/benchmarks/others/csmap_v1.h
@@ -201,7 +201,7 @@ int main(void) {
} \
\
STC_INLINE void \
- CX##_emplace_n(CX* self, const CX##_rawvalue_t arr[], size_t n) { \
+ CX##_emplace_items(CX* self, const CX##_rawvalue_t arr[], size_t n) { \
for (size_t i=0; i<n; ++i) SET_ONLY_##C( CX##_emplace(self, arr[i]); ) \
MAP_ONLY_##C( CX##_emplace(self, arr[i].first, arr[i].second); ) \
} \