4 * Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
6 * SPDX-License-Identifier: GPL-2.0+
11 #include <efi_selftest.h>
13 int efi_st_memcmp(const void *buf1, const void *buf2, size_t length)
15 const u8 *pos1 = buf1;
16 const u8 *pos2 = buf2;
18 for (; length; --length) {
27 int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2)
29 for (; *buf1 || *buf2; ++buf1, ++buf2) {