remove force inline from compare functions

This commit is contained in:
CismonX 2018-08-16 01:50:08 +08:00
parent 7b88338374
commit 7d60aff7e4
1 changed files with 4 additions and 4 deletions

View File

@ -145,21 +145,21 @@
/// Unused global variable. /// Unused global variable.
zval rv; zval rv;
static zend_always_inline int bucket_compare_numeric(const void* op1, const void* op2) static int bucket_compare_numeric(const void* op1, const void* op2)
{ {
Bucket* b1 = (Bucket*)op1; Bucket* b1 = (Bucket*)op1;
Bucket* b2 = (Bucket*)op2; Bucket* b2 = (Bucket*)op2;
return numeric_compare_function(&b1->val, &b2->val); return numeric_compare_function(&b1->val, &b2->val);
} }
static zend_always_inline int bucket_compare_string(const void* op1, const void* op2) static int bucket_compare_string(const void* op1, const void* op2)
{ {
Bucket* b1 = (Bucket*)op1; Bucket* b1 = (Bucket*)op1;
Bucket* b2 = (Bucket*)op2; Bucket* b2 = (Bucket*)op2;
return string_compare_function(&b1->val, &b2->val); return string_compare_function(&b1->val, &b2->val);
} }
static zend_always_inline int bucket_compare_regular(const void* op1, const void* op2) static int bucket_compare_regular(const void* op1, const void* op2)
{ {
Bucket* b1 = (Bucket*)op1; Bucket* b1 = (Bucket*)op1;
Bucket* b2 = (Bucket*)op2; Bucket* b2 = (Bucket*)op2;
@ -171,7 +171,7 @@ static zend_always_inline int bucket_compare_regular(const void* op1, const void
return ZEND_NORMALIZE_BOOL(Z_LVAL(result)); return ZEND_NORMALIZE_BOOL(Z_LVAL(result));
} }
static zend_always_inline int bucket_compare_userland(const void* op1, const void* op2) static int bucket_compare_userland(const void* op1, const void* op2)
{ {
Bucket* b1 = (Bucket*)op1; Bucket* b1 = (Bucket*)op1;
Bucket* b2 = (Bucket*)op2; Bucket* b2 = (Bucket*)op2;