Skip to content

Commit 12bdaba

Browse files
author
Raghuveer Devulapalli
committed
Add keyvalue_qsort C-API
1 parent 3f958c7 commit 12bdaba

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
@@ -223,3 +223,17 @@ DISPATCH_KEYVALUE_SORT_FORTYPE(int32_t)
223223
DISPATCH_KEYVALUE_SORT_FORTYPE(float)
224224

225225
} // namespace x86simdsort
226+
//
227+
228+
extern "C" {
229+
XSS_EXPORT_SYMBOL
230+
void keyvalue_qsort_float_uint32(float* key, uint32_t* val, uint32_t size)
231+
{
232+
x86simdsort::keyvalue_qsort(key, val, size, true);
233+
}
234+
XSS_EXPORT_SYMBOL
235+
void keyvalue_qsort_float_sizet(float* key, size_t* val, size_t size)
236+
{
237+
x86simdsort::keyvalue_qsort(key, val, size, true);
238+
}
239+
}

0 commit comments

Comments
 (0)