• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* insert_string_acle.c -- insert_string integer hash variant using ACLE's CRC instructions
2  *
3  * Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
4  * For conditions of distribution and use, see copyright notice in zlib.h
5  *
6  */
7 
8 #ifdef ARM_ACLE_CRC_HASH
9 #ifndef _MSC_VER
10 #  include <arm_acle.h>
11 #endif
12 #include "../../zbuild.h"
13 #include "../../deflate.h"
14 
15 #define HASH_CALC(s, h, val) \
16     h = __crc32w(0, val)
17 
18 #define HASH_CALC_VAR       h
19 #define HASH_CALC_VAR_INIT  uint32_t h = 0
20 
21 #define UPDATE_HASH         update_hash_acle
22 #define INSERT_STRING       insert_string_acle
23 #define QUICK_INSERT_STRING quick_insert_string_acle
24 
25 #include "../../insert_string_tpl.h"
26 #endif
27