| 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 |
| 9 |
#include "acle_intrins.h" |
| 10 |
#include "../../zbuild.h" |
| 11 |
#include "../../deflate.h" |
| 12 |
|
| 13 |
#define HASH_CALC(s, h, val) \ |
| 14 |
h = __crc32w(0, val) |
| 15 |
|
| 16 |
#define HASH_CALC_VAR h |
| 17 |
#define HASH_CALC_VAR_INIT uint32_t h = 0 |
| 18 |
|
| 19 |
#define UPDATE_HASH Z_TARGET_CRC update_hash_acle |
| 20 |
#define INSERT_STRING Z_TARGET_CRC insert_string_acle |
| 21 |
#define QUICK_INSERT_STRING Z_TARGET_CRC quick_insert_string_acle |
| 22 |
|
| 23 |
#include "../../insert_string_tpl.h" |
| 24 |
#endif |