dummy.h 1.3 KB

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