insert_string.c 587 B

123456789101112131415161718192021
  1. /* insert_string.c -- insert_string integer hash variant
  2. *
  3. * Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
  4. * For conditions of distribution and use, see copyright notice in zlib.h
  5. *
  6. */
  7. #include "zbuild.h"
  8. #include "deflate.h"
  9. #define HASH_SLIDE 16
  10. #define HASH_CALC(h, val) h = ((val * 2654435761U) >> HASH_SLIDE);
  11. #define HASH_CALC_VAR h
  12. #define HASH_CALC_VAR_INIT uint32_t h = 0
  13. #define UPDATE_HASH update_hash
  14. #define INSERT_STRING insert_string
  15. #define QUICK_INSERT_STRING quick_insert_string
  16. #include "insert_string_tpl.h"