File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 33
33
34
34
# if ZEND_INTRIN_SHA_RESOLVER
35
35
static __m128i be32dec_128 (const uint8_t * src ) __attribute__((target ("ssse3" )));
36
- void SHA256_Transform_shani (uint32_t state [static restrict 8 ], const uint8_t block [static restrict 64 ]) __attribute__((target ("ssse3,sha" )));
36
+ void SHA256_Transform_shani (uint32_t state [PHP_STATIC_RESTRICT 8 ], const uint8_t block [PHP_STATIC_RESTRICT 64 ]) __attribute__((target ("ssse3,sha" )));
37
37
# endif
38
38
39
- /* Original implementation from libcperciva follows. */
39
+ /* Original implementation from libcperciva follows.
40
+ *
41
+ * Modified to use `PHP_STATIC_RESTRICT` for MSVC compatibility.
42
+ */
40
43
41
44
/**
42
45
* This code uses intrinsics from the following feature sets:
@@ -110,8 +113,8 @@ be32dec_128(const uint8_t * src)
110
113
* are defined and cpusupport_x86_shani() and _ssse3() return nonzero.
111
114
*/
112
115
void
113
- SHA256_Transform_shani (uint32_t state [static restrict 8 ],
114
- const uint8_t block [static restrict 64 ])
116
+ SHA256_Transform_shani (uint32_t state [PHP_STATIC_RESTRICT 8 ],
117
+ const uint8_t block [PHP_STATIC_RESTRICT 64 ])
115
118
{
116
119
__m128i S3210 , S7654 ;
117
120
__m128i S0123 , S4567 ;
You can’t perform that action at this time.
0 commit comments