81 uint64_t minLen = (lenA < lenB) ? lenA : lenB;
92 for (
uint64_t i = 0; i < minLen; i++)
94 if (dataA[i] > dataB[i])
98 else if (dataA[i] < dataB[i])
105 for (
uint64_t i = 0; i < minLen; i++)
107 if (dataA[i] < dataB[i])
111 else if (dataA[i] > dataB[i])
static aml_integer_t aml_compare_integers(aml_integer_t a, aml_integer_t b, aml_compare_operation_t operation)
aml_integer_t aml_compare_not(aml_integer_t value)
Perform a logical NOT operation on an integer value.
aml_integer_t aml_compare(aml_object_t *a, aml_object_t *b, aml_compare_operation_t operation)
Compare two ACPI objects.
@ AML_COMPARE_OR
Section 19.6.80, integer only.
@ AML_COMPARE_LESS
Section 19.6.73.
@ AML_COMPARE_GREATER
Section 19.6.71.
@ AML_COMPARE_EQUAL
Section 19.6.70.
@ AML_COMPARE_AND
Section 19.6.69, integer only.
@ AML_COMPARE_INVERT_BASE
All operations above this value are inverted versions of the base operations.
uint64_t aml_integer_t
AML Integer type.
#define AML_FALSE
AML Boolean false value.
#define AML_TRUE
AML Boolean true value.
aml_type_t
ACPI data types.
#define NULL
Pointer error value.
_PUBLIC int memcmp(const void *s1, const void *s2, size_t n)
aml_integer_obj_t integer