mirror of
https://github.com/bkaradzic/bx.git
synced 2026-10-16 13:55:41 +00:00
52 lines
940 B
C++
52 lines
940 B
C++
/*
|
|
* Copyright 2010-2017 Branimir Karadzic. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
|
*/
|
|
|
|
#ifndef BX_RADIXSORT_H_HEADER_GUARD
|
|
#define BX_RADIXSORT_H_HEADER_GUARD
|
|
|
|
#include "bx.h"
|
|
|
|
namespace bx
|
|
{
|
|
///
|
|
void radixSort(
|
|
uint32_t* __restrict _keys
|
|
, uint32_t* __restrict _tempKeys
|
|
, uint32_t _size
|
|
);
|
|
|
|
///
|
|
template <typename Ty>
|
|
void radixSort(
|
|
uint32_t* __restrict _keys
|
|
, uint32_t* __restrict _tempKeys
|
|
, Ty* __restrict _values
|
|
, Ty* __restrict _tempValues
|
|
, uint32_t _size
|
|
);
|
|
|
|
///
|
|
void radixSort(
|
|
uint64_t* __restrict _keys
|
|
, uint64_t* __restrict _tempKeys
|
|
, uint32_t _size
|
|
);
|
|
|
|
///
|
|
template <typename Ty>
|
|
void radixSort(
|
|
uint64_t* __restrict _keys
|
|
, uint64_t* __restrict _tempKeys
|
|
, Ty* __restrict _values
|
|
, Ty* __restrict _tempValues
|
|
, uint32_t _size
|
|
);
|
|
|
|
} // namespace bx
|
|
|
|
#include "radixsort.inl"
|
|
|
|
#endif // BX_RADIXSORT_H_HEADER_GUARD
|