sort.hh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * sort.hh - headers for C++ sort functions
  3. * Copyright (C) 2019-2020 Yann Collet
  4. * GPL v2 License
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. *
  20. * You can contact the author at :
  21. * - xxHash homepage : https://www.xxhash.com
  22. * - xxHash source repository : https://github.com/Cyan4973/xxHash
  23. */
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #include <stddef.h> // size
  28. #include <stdint.h> // uint64_t
  29. #define XXH_STATIC_LINKING_ONLY // XXH128_hash_t
  30. #include "xxhash.h"
  31. void sort64(uint64_t* table, size_t size);
  32. void sort128(XXH128_hash_t* table, size_t size);
  33. #ifdef __cplusplus
  34. } // extern C
  35. #endif