diff options
| author | jvoisin | 2022-05-03 00:07:15 +0200 |
|---|---|---|
| committer | jvoisin | 2022-05-03 00:07:15 +0200 |
| commit | 3132434447990f24516fb196b3fcf7771895a17b (patch) | |
| tree | 02a8ae08c5f002c126c9435da1aa02c2368787db /src/sp_unserialize.c | |
| parent | efcc16ad74a32d4b735bad73690c49c5cdb63cb7 (diff) | |
Help the compiler to optimize sp_do_hash_hmac_sha256 a more
Diffstat (limited to 'src/sp_unserialize.c')
| -rw-r--r-- | src/sp_unserialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_unserialize.c b/src/sp_unserialize.c index 2e7c173..64cf1b5 100644 --- a/src/sp_unserialize.c +++ b/src/sp_unserialize.c | |||
| @@ -8,7 +8,7 @@ static inline void *php_hash_alloc_context(const php_hash_ops *ops) { | |||
| 8 | } | 8 | } |
| 9 | #endif | 9 | #endif |
| 10 | 10 | ||
| 11 | static zend_string *sp_do_hash_hmac_sha256(char *data, size_t data_len, char *key, size_t key_len) | 11 | static zend_string *sp_do_hash_hmac_sha256(char* restrict data, size_t data_len, char* restrict key, size_t key_len) |
| 12 | { | 12 | { |
| 13 | #if PHP_VERSION_ID < 80000 | 13 | #if PHP_VERSION_ID < 80000 |
| 14 | const php_hash_ops *ops = php_hash_fetch_ops(ZEND_STRL("sha256")); | 14 | const php_hash_ops *ops = php_hash_fetch_ops(ZEND_STRL("sha256")); |
