Skip to content

Commit 360952b

Browse files
author
Raghuveer Devulapalli
committed
Add keyvalue_qsort C-API
1 parent d6e0d49 commit 360952b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/x86simdsort.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,17 @@ DISPATCH_KEYVALUE_SORT_FORTYPE(int32_t)
265265
DISPATCH_KEYVALUE_SORT_FORTYPE(float)
266266

267267
} // namespace x86simdsort
268+
//
269+
270+
extern "C" {
271+
XSS_EXPORT_SYMBOL
272+
void keyvalue_qsort_float_uint32(float* key, uint32_t* val, uint32_t size)
273+
{
274+
x86simdsort::keyvalue_qsort(key, val, size, true);
275+
}
276+
XSS_EXPORT_SYMBOL
277+
void keyvalue_qsort_float_sizet(float* key, size_t* val, size_t size)
278+
{
279+
x86simdsort::keyvalue_qsort(key, val, size, true);
280+
}
281+
}

0 commit comments

Comments
 (0)