@@ -329,12 +329,12 @@ static zend_always_inline int php_base64_decode_impl(const unsigned char *in, si
329
329
330
330
/* {{{ php_base64_encode */
331
331
332
- #if ZEND_INTRIN_AVX2_NATIVE
332
+ #ifdef ZEND_INTRIN_AVX2_NATIVE
333
333
# undef ZEND_INTRIN_SSSE3_NATIVE
334
334
# undef ZEND_INTRIN_SSSE3_RESOLVER
335
335
# undef ZEND_INTRIN_SSSE3_FUNC_PROTO
336
336
# undef ZEND_INTRIN_SSSE3_FUNC_PTR
337
- #elif ZEND_INTRIN_AVX2_FUNC_PROTO && ZEND_INTRIN_SSSE3_NATIVE
337
+ #elif defined( ZEND_INTRIN_AVX2_FUNC_PROTO ) && defined( ZEND_INTRIN_SSSE3_NATIVE )
338
338
# undef ZEND_INTRIN_SSSE3_NATIVE
339
339
# undef ZEND_INTRIN_SSSE3_RESOLVER
340
340
# define ZEND_INTRIN_SSSE3_RESOLVER 1
@@ -345,7 +345,7 @@ static zend_always_inline int php_base64_decode_impl(const unsigned char *in, si
345
345
# else
346
346
# define ZEND_INTRIN_SSSE3_FUNC_DECL (func ) ZEND_API func
347
347
# endif
348
- #elif ZEND_INTRIN_AVX2_FUNC_PTR && ZEND_INTRIN_SSSE3_NATIVE
348
+ #elif defined( ZEND_INTRIN_AVX2_FUNC_PTR ) && defined( ZEND_INTRIN_SSSE3_NATIVE )
349
349
# undef ZEND_INTRIN_SSSE3_NATIVE
350
350
# undef ZEND_INTRIN_SSSE3_RESOLVER
351
351
# define ZEND_INTRIN_SSSE3_RESOLVER 1
@@ -359,54 +359,54 @@ static zend_always_inline int php_base64_decode_impl(const unsigned char *in, si
359
359
#endif
360
360
361
361
/* Only enable avx512 resolver if avx2 use resolver also */
362
- #if ZEND_INTRIN_AVX2_FUNC_PROTO && ZEND_INTRIN_AVX512_FUNC_PROTO
362
+ #if defined( ZEND_INTRIN_AVX2_FUNC_PROTO ) && defined( ZEND_INTRIN_AVX512_FUNC_PROTO )
363
363
#define BASE64_INTRIN_AVX512_FUNC_PROTO 1
364
364
#endif
365
- #if ZEND_INTRIN_AVX2_FUNC_PTR && ZEND_INTRIN_AVX512_FUNC_PTR
365
+ #if defined( ZEND_INTRIN_AVX2_FUNC_PTR ) && defined( ZEND_INTRIN_AVX512_FUNC_PTR )
366
366
#define BASE64_INTRIN_AVX512_FUNC_PTR 1
367
367
#endif
368
- #if ZEND_INTRIN_AVX2_FUNC_PROTO && ZEND_INTRIN_AVX512_VBMI_FUNC_PROTO
368
+ #if defined( ZEND_INTRIN_AVX2_FUNC_PROTO ) && defined( ZEND_INTRIN_AVX512_VBMI_FUNC_PROTO )
369
369
#define BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO 1
370
370
#endif
371
- #if ZEND_INTRIN_AVX2_FUNC_PTR && ZEND_INTRIN_AVX512_VBMI_FUNC_PTR
371
+ #if defined( ZEND_INTRIN_AVX2_FUNC_PTR ) && defined( ZEND_INTRIN_AVX512_VBMI_FUNC_PTR )
372
372
#define BASE64_INTRIN_AVX512_VBMI_FUNC_PTR 1
373
373
#endif
374
374
375
- #if ZEND_INTRIN_AVX2_NATIVE
375
+ #ifdef ZEND_INTRIN_AVX2_NATIVE
376
376
# include <immintrin.h>
377
- #elif ZEND_INTRIN_SSSE3_NATIVE
377
+ #elif defined( ZEND_INTRIN_SSSE3_NATIVE )
378
378
# include <tmmintrin.h>
379
- #elif (ZEND_INTRIN_SSSE3_RESOLVER || ZEND_INTRIN_AVX2_RESOLVER )
380
- # if ZEND_INTRIN_AVX2_RESOLVER
379
+ #elif defined (ZEND_INTRIN_SSSE3_RESOLVER ) || defined( ZEND_INTRIN_AVX2_RESOLVER )
380
+ # ifdef ZEND_INTRIN_AVX2_RESOLVER
381
381
# include <immintrin.h>
382
382
# else
383
383
# include <tmmintrin.h>
384
384
# endif /* (ZEND_INTRIN_SSSE3_RESOLVER || ZEND_INTRIN_AVX2_RESOLVER) */
385
385
# include "Zend/zend_cpuinfo.h"
386
386
387
- # if BASE64_INTRIN_AVX512_FUNC_PROTO || BASE64_INTRIN_AVX512_FUNC_PTR
387
+ # if defined( BASE64_INTRIN_AVX512_FUNC_PROTO ) || defined( BASE64_INTRIN_AVX512_FUNC_PTR )
388
388
ZEND_INTRIN_AVX512_FUNC_DECL (zend_string * php_base64_encode_avx512 (const unsigned char * str , size_t length , zend_long flags ));
389
389
ZEND_INTRIN_AVX512_FUNC_DECL (zend_string * php_base64_decode_ex_avx512 (const unsigned char * str , size_t length , bool strict ));
390
390
# endif
391
- # if BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO || BASE64_INTRIN_AVX512_VBMI_FUNC_PTR
391
+ # if defined( BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO ) || defined( BASE64_INTRIN_AVX512_VBMI_FUNC_PTR )
392
392
ZEND_INTRIN_AVX512_VBMI_FUNC_DECL (zend_string * php_base64_encode_avx512_vbmi (const unsigned char * str , size_t length , zend_long flags ));
393
393
ZEND_INTRIN_AVX512_VBMI_FUNC_DECL (zend_string * php_base64_decode_ex_avx512_vbmi (const unsigned char * str , size_t length , bool strict ));
394
394
# endif
395
395
396
- # if ZEND_INTRIN_AVX2_RESOLVER
396
+ # ifdef ZEND_INTRIN_AVX2_RESOLVER
397
397
ZEND_INTRIN_AVX2_FUNC_DECL (zend_string * php_base64_encode_avx2 (const unsigned char * str , size_t length , zend_long flags ));
398
398
ZEND_INTRIN_AVX2_FUNC_DECL (zend_string * php_base64_decode_ex_avx2 (const unsigned char * str , size_t length , bool strict ));
399
399
# endif
400
400
401
- # if ZEND_INTRIN_SSSE3_RESOLVER
401
+ # ifdef ZEND_INTRIN_SSSE3_RESOLVER
402
402
ZEND_INTRIN_SSSE3_FUNC_DECL (zend_string * php_base64_encode_ssse3 (const unsigned char * str , size_t length , zend_long flags ));
403
403
ZEND_INTRIN_SSSE3_FUNC_DECL (zend_string * php_base64_decode_ex_ssse3 (const unsigned char * str , size_t length , bool strict ));
404
404
# endif
405
405
406
406
zend_string * php_base64_encode_default (const unsigned char * str , size_t length , zend_long flags );
407
407
zend_string * php_base64_decode_ex_default (const unsigned char * str , size_t length , bool strict );
408
408
409
- # if (ZEND_INTRIN_AVX2_FUNC_PROTO || ZEND_INTRIN_SSSE3_FUNC_PROTO || BASE64_INTRIN_AVX512_FUNC_PROTO || BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO )
409
+ # if (defined( ZEND_INTRIN_AVX2_FUNC_PROTO ) || defined( ZEND_INTRIN_SSSE3_FUNC_PROTO ) || defined( BASE64_INTRIN_AVX512_FUNC_PROTO ) || defined( BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO ) )
410
410
PHPAPI zend_string * php_base64_encode_ex (const unsigned char * str , size_t length , zend_long flags ) __attribute__((ifunc ("resolve_base64_encode" )));
411
411
PHPAPI zend_string * php_base64_decode_ex (const unsigned char * str , size_t length , bool strict ) __attribute__((ifunc ("resolve_base64_decode" )));
412
412
@@ -416,22 +416,22 @@ typedef zend_string *(*base64_decode_func_t)(const unsigned char *, size_t, bool
416
416
ZEND_NO_SANITIZE_ADDRESS
417
417
ZEND_ATTRIBUTE_UNUSED /* clang mistakenly warns about this */
418
418
static base64_encode_func_t resolve_base64_encode (void ) {
419
- # if BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO
419
+ # ifdef BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO
420
420
if (zend_cpu_supports_avx512_vbmi ()) {
421
421
return php_base64_encode_avx512_vbmi ;
422
422
} else
423
423
# endif
424
- # if BASE64_INTRIN_AVX512_FUNC_PROTO
424
+ # ifdef BASE64_INTRIN_AVX512_FUNC_PROTO
425
425
if (zend_cpu_supports_avx512 ()) {
426
426
return php_base64_encode_avx512 ;
427
427
} else
428
428
# endif
429
- # if ZEND_INTRIN_AVX2_FUNC_PROTO
429
+ # ifdef ZEND_INTRIN_AVX2_FUNC_PROTO
430
430
if (zend_cpu_supports_avx2 ()) {
431
431
return php_base64_encode_avx2 ;
432
432
} else
433
433
# endif
434
- #if ZEND_INTRIN_SSSE3_FUNC_PROTO
434
+ #ifdef ZEND_INTRIN_SSSE3_FUNC_PROTO
435
435
if (zend_cpu_supports_ssse3 ()) {
436
436
return php_base64_encode_ssse3 ;
437
437
}
@@ -442,22 +442,22 @@ static base64_encode_func_t resolve_base64_encode(void) {
442
442
ZEND_NO_SANITIZE_ADDRESS
443
443
ZEND_ATTRIBUTE_UNUSED /* clang mistakenly warns about this */
444
444
static base64_decode_func_t resolve_base64_decode (void ) {
445
- # if BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO
445
+ # ifdef BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO
446
446
if (zend_cpu_supports_avx512_vbmi ()) {
447
447
return php_base64_decode_ex_avx512_vbmi ;
448
448
} else
449
449
# endif
450
- # if BASE64_INTRIN_AVX512_FUNC_PROTO
450
+ # ifdef BASE64_INTRIN_AVX512_FUNC_PROTO
451
451
if (zend_cpu_supports_avx512 ()) {
452
452
return php_base64_decode_ex_avx512 ;
453
453
} else
454
454
# endif
455
- # if ZEND_INTRIN_AVX2_FUNC_PROTO
455
+ # ifdef ZEND_INTRIN_AVX2_FUNC_PROTO
456
456
if (zend_cpu_supports_avx2 ()) {
457
457
return php_base64_decode_ex_avx2 ;
458
458
} else
459
459
# endif
460
- #if ZEND_INTRIN_SSSE3_FUNC_PROTO
460
+ #ifdef ZEND_INTRIN_SSSE3_FUNC_PROTO
461
461
if (zend_cpu_supports_ssse3 ()) {
462
462
return php_base64_decode_ex_ssse3 ;
463
463
}
@@ -478,25 +478,25 @@ PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length
478
478
479
479
PHP_MINIT_FUNCTION (base64_intrin )
480
480
{
481
- # if BASE64_INTRIN_AVX512_VBMI_FUNC_PTR
481
+ # ifdef BASE64_INTRIN_AVX512_VBMI_FUNC_PTR
482
482
if (zend_cpu_supports_avx512_vbmi ()) {
483
483
php_base64_encode_ptr = php_base64_encode_avx512_vbmi ;
484
484
php_base64_decode_ex_ptr = php_base64_decode_ex_avx512_vbmi ;
485
485
} else
486
486
# endif
487
- # if BASE64_INTRIN_AVX512_FUNC_PTR
487
+ # ifdef BASE64_INTRIN_AVX512_FUNC_PTR
488
488
if (zend_cpu_supports_avx512 ()) {
489
489
php_base64_encode_ptr = php_base64_encode_avx512 ;
490
490
php_base64_decode_ex_ptr = php_base64_decode_ex_avx512 ;
491
491
} else
492
492
# endif
493
- # if ZEND_INTRIN_AVX2_FUNC_PTR
493
+ # ifdef ZEND_INTRIN_AVX2_FUNC_PTR
494
494
if (zend_cpu_supports_avx2 ()) {
495
495
php_base64_encode_ptr = php_base64_encode_avx2 ;
496
496
php_base64_decode_ex_ptr = php_base64_decode_ex_avx2 ;
497
497
} else
498
498
# endif
499
- #if ZEND_INTRIN_SSSE3_FUNC_PTR
499
+ #ifdef ZEND_INTRIN_SSSE3_FUNC_PTR
500
500
if (zend_cpu_supports_ssse3 ()) {
501
501
php_base64_encode_ptr = php_base64_encode_ssse3 ;
502
502
php_base64_decode_ex_ptr = php_base64_decode_ex_ssse3 ;
@@ -511,7 +511,7 @@ PHP_MINIT_FUNCTION(base64_intrin)
511
511
# endif /* (ZEND_INTRIN_AVX2_FUNC_PROTO || ZEND_INTRIN_SSSE3_FUNC_PROTO) */
512
512
#endif /* ZEND_INTRIN_AVX2_NATIVE */
513
513
514
- #if BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO || BASE64_INTRIN_AVX512_VBMI_FUNC_PTR
514
+ #if defined( BASE64_INTRIN_AVX512_VBMI_FUNC_PROTO ) || defined( BASE64_INTRIN_AVX512_VBMI_FUNC_PTR )
515
515
zend_string * php_base64_encode_avx512_vbmi (const unsigned char * str , size_t length , zend_long flags )
516
516
{
517
517
const unsigned char * c = str ;
@@ -621,7 +621,7 @@ zend_string *php_base64_decode_ex_avx512_vbmi(const unsigned char *str, size_t l
621
621
}
622
622
#endif
623
623
624
- #if BASE64_INTRIN_AVX512_FUNC_PROTO || BASE64_INTRIN_AVX512_FUNC_PTR
624
+ #if defined( BASE64_INTRIN_AVX512_FUNC_PROTO ) || defined( BASE64_INTRIN_AVX512_FUNC_PTR )
625
625
zend_string * php_base64_encode_avx512 (const unsigned char * str , size_t length , zend_long flags )
626
626
{
627
627
const unsigned char * c = str ;
@@ -754,8 +754,8 @@ zend_string *php_base64_decode_ex_avx512(const unsigned char *str, size_t length
754
754
}
755
755
#endif
756
756
757
- #if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER
758
- # if ZEND_INTRIN_AVX2_RESOLVER && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
757
+ #if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_AVX2_RESOLVER )
758
+ # if defined( ZEND_INTRIN_AVX2_RESOLVER ) && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
759
759
static __m256i php_base64_encode_avx2_reshuffle (__m256i in ) __attribute__((target ("avx2" )));
760
760
static __m256i php_base64_encode_avx2_translate (__m256i in ) __attribute__((target ("avx2" )));
761
761
# endif
@@ -819,9 +819,9 @@ static __m256i php_base64_encode_avx2_translate(__m256i in)
819
819
}
820
820
#endif /* ZEND_INTRIN_AVX2_NATIVE || (ZEND_INTRIN_AVX2_RESOLVER && !ZEND_INTRIN_SSSE3_NATIVE) */
821
821
822
- #if ZEND_INTRIN_SSSE3_NATIVE || ZEND_INTRIN_SSSE3_RESOLVER
822
+ #if defined( ZEND_INTRIN_SSSE3_NATIVE ) || defined( ZEND_INTRIN_SSSE3_RESOLVER )
823
823
824
- # if ZEND_INTRIN_SSSE3_RESOLVER && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
824
+ # if defined( ZEND_INTRIN_SSSE3_RESOLVER ) && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
825
825
static __m128i php_base64_encode_ssse3_reshuffle (__m128i in ) __attribute__((target ("ssse3" )));
826
826
static __m128i php_base64_encode_ssse3_translate (__m128i in ) __attribute__((target ("ssse3" )));
827
827
# endif
@@ -902,10 +902,10 @@ static __m128i php_base64_encode_ssse3_translate(__m128i in)
902
902
903
903
#endif /* ZEND_INTRIN_SSSE3_NATIVE || (ZEND_INTRIN_SSSE3_RESOLVER && !ZEND_INTRIN_AVX2_NATIVE) */
904
904
905
- #if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER || ZEND_INTRIN_SSSE3_NATIVE || ZEND_INTRIN_SSSE3_RESOLVER
906
- # if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_SSSE3_NATIVE
905
+ #if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_AVX2_RESOLVER ) || defined( ZEND_INTRIN_SSSE3_NATIVE ) || defined( ZEND_INTRIN_SSSE3_RESOLVER )
906
+ # if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_SSSE3_NATIVE )
907
907
PHPAPI zend_string * php_base64_encode_ex (const unsigned char * str , size_t length , zend_long flags )
908
- # elif ZEND_INTRIN_AVX2_RESOLVER
908
+ # elif defined( ZEND_INTRIN_AVX2_RESOLVER )
909
909
zend_string * php_base64_encode_avx2 (const unsigned char * str , size_t length , zend_long flags )
910
910
# else /* ZEND_INTRIN_SSSE3_RESOLVER */
911
911
zend_string * php_base64_encode_ssse3 (const unsigned char * str , size_t length , zend_long flags )
@@ -917,7 +917,7 @@ zend_string *php_base64_encode_ssse3(const unsigned char *str, size_t length, ze
917
917
918
918
result = zend_string_safe_alloc (((length + 2 ) / 3 ), 4 * sizeof (char ), 0 , 0 );
919
919
o = (unsigned char * )ZSTR_VAL (result );
920
- # if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER
920
+ # if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_AVX2_RESOLVER )
921
921
if (length > 31 ) {
922
922
__m256i s = _mm256_loadu_si256 ((__m256i * )c );
923
923
@@ -949,7 +949,7 @@ zend_string *php_base64_encode_ssse3(const unsigned char *str, size_t length, ze
949
949
return result ;
950
950
}
951
951
952
- # if ZEND_INTRIN_SSSE3_RESOLVER && ZEND_INTRIN_AVX2_RESOLVER
952
+ # if defined( ZEND_INTRIN_SSSE3_RESOLVER ) && defined( ZEND_INTRIN_AVX2_RESOLVER )
953
953
zend_string * php_base64_encode_ssse3 (const unsigned char * str , size_t length , zend_long flags )
954
954
{
955
955
const unsigned char * c = str ;
@@ -972,8 +972,8 @@ zend_string *php_base64_encode_ssse3(const unsigned char *str, size_t length, ze
972
972
973
973
/* }}} */
974
974
975
- #if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER
976
- # if ZEND_INTRIN_AVX2_RESOLVER && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
975
+ #if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_AVX2_RESOLVER )
976
+ # if defined( ZEND_INTRIN_AVX2_RESOLVER ) && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
977
977
static __m256i php_base64_decode_avx2_reshuffle (__m256i in ) __attribute__((target ("avx2" )));
978
978
# endif
979
979
@@ -993,8 +993,8 @@ static __m256i php_base64_decode_avx2_reshuffle(__m256i in)
993
993
}
994
994
#endif
995
995
996
- #if ZEND_INTRIN_SSSE3_NATIVE || ZEND_INTRIN_SSSE3_RESOLVER
997
- # if ZEND_INTRIN_SSSE3_RESOLVER && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
996
+ #if defined( ZEND_INTRIN_SSSE3_NATIVE ) || defined( ZEND_INTRIN_SSSE3_RESOLVER )
997
+ # if defined( ZEND_INTRIN_SSSE3_RESOLVER ) && defined(HAVE_FUNC_ATTRIBUTE_TARGET )
998
998
static __m128i php_base64_decode_ssse3_reshuffle (__m128i in ) __attribute__((target ("ssse3" )));
999
999
# endif
1000
1000
@@ -1075,10 +1075,10 @@ static __m128i php_base64_decode_ssse3_reshuffle(__m128i in)
1075
1075
1076
1076
#endif
1077
1077
1078
- #if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER || ZEND_INTRIN_SSSE3_NATIVE || ZEND_INTRIN_SSSE3_RESOLVER
1079
- # if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_SSSE3_NATIVE
1078
+ #if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_AVX2_RESOLVER ) || defined( ZEND_INTRIN_SSSE3_NATIVE ) || defined( ZEND_INTRIN_SSSE3_RESOLVER )
1079
+ # if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_SSSE3_NATIVE )
1080
1080
PHPAPI zend_string * php_base64_decode_ex (const unsigned char * str , size_t length , bool strict )
1081
- # elif ZEND_INTRIN_AVX2_RESOLVER
1081
+ # elif defined( ZEND_INTRIN_AVX2_RESOLVER )
1082
1082
zend_string * php_base64_decode_ex_avx2 (const unsigned char * str , size_t length , bool strict )
1083
1083
# else
1084
1084
zend_string * php_base64_decode_ex_ssse3 (const unsigned char * str , size_t length , bool strict )
@@ -1094,7 +1094,7 @@ zend_string *php_base64_decode_ex_ssse3(const unsigned char *str, size_t length,
1094
1094
1095
1095
/* See: "Faster Base64 Encoding and Decoding using AVX2 Instructions"
1096
1096
* https://arxiv.org/pdf/1704.00605.pdf */
1097
- # if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER
1097
+ # if defined( ZEND_INTRIN_AVX2_NATIVE ) || defined( ZEND_INTRIN_AVX2_RESOLVER )
1098
1098
while (length > 31 + 11 + 2 ) {
1099
1099
__m256i lut_lo , lut_hi , lut_roll ;
1100
1100
__m256i hi_nibbles , lo_nibbles , hi , lo ;
@@ -1157,7 +1157,7 @@ zend_string *php_base64_decode_ex_ssse3(const unsigned char *str, size_t length,
1157
1157
return result ;
1158
1158
}
1159
1159
1160
- # if ZEND_INTRIN_SSSE3_RESOLVER && ZEND_INTRIN_AVX2_RESOLVER
1160
+ # if defined( ZEND_INTRIN_SSSE3_RESOLVER ) && defined( ZEND_INTRIN_AVX2_RESOLVER )
1161
1161
zend_string * php_base64_decode_ex_ssse3 (const unsigned char * str , size_t length , bool strict )
1162
1162
{
1163
1163
const unsigned char * c = str ;
@@ -1182,8 +1182,8 @@ zend_string *php_base64_decode_ex_ssse3(const unsigned char *str, size_t length,
1182
1182
# endif
1183
1183
#endif /* ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER || ZEND_INTRIN_SSSE3_NATIVE || ZEND_INTRIN_SSSE3_RESOLVER */
1184
1184
1185
- #if !ZEND_INTRIN_AVX2_NATIVE && !ZEND_INTRIN_SSSE3_NATIVE
1186
- #if ZEND_INTRIN_AVX2_RESOLVER || ZEND_INTRIN_SSSE3_RESOLVER
1185
+ #if !defined( ZEND_INTRIN_AVX2_NATIVE ) && !defined( ZEND_INTRIN_SSSE3_NATIVE )
1186
+ #if defined( ZEND_INTRIN_AVX2_RESOLVER ) || defined( ZEND_INTRIN_SSSE3_RESOLVER )
1187
1187
zend_string * php_base64_encode_default (const unsigned char * str , size_t length , zend_long flags )
1188
1188
#else
1189
1189
PHPAPI zend_string * php_base64_encode_ex (const unsigned char * str , size_t length , zend_long flags )
@@ -1203,8 +1203,8 @@ PHPAPI zend_string *php_base64_encode_ex(const unsigned char *str, size_t length
1203
1203
}
1204
1204
#endif
1205
1205
1206
- #if !ZEND_INTRIN_AVX2_NATIVE && !ZEND_INTRIN_SSSE3_NATIVE
1207
- #if ZEND_INTRIN_AVX2_RESOLVER || ZEND_INTRIN_SSSE3_RESOLVER
1206
+ #if !defined( ZEND_INTRIN_AVX2_NATIVE ) && !defined( ZEND_INTRIN_SSSE3_NATIVE )
1207
+ #if defined( ZEND_INTRIN_AVX2_RESOLVER ) || defined( ZEND_INTRIN_SSSE3_RESOLVER )
1208
1208
zend_string * php_base64_decode_ex_default (const unsigned char * str , size_t length , bool strict )
1209
1209
#else
1210
1210
PHPAPI zend_string * php_base64_decode_ex (const unsigned char * str , size_t length , bool strict )
0 commit comments