1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
10 #include <efi_selftest.h>
12 int efi_st_memcmp(const void *buf1, const void *buf2, size_t length)
14 const u8 *pos1 = buf1;
15 const u8 *pos2 = buf2;
17 for (; length; --length) {
26 int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2)
28 for (; *buf1 || *buf2; ++buf1, ++buf2) {