Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: src/platform/vboot_reference/common/include/utility.h

Issue 1729006: Add helper functions and files for gpt tests. (Closed)
Patch Set: fix for code review Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/common/include/utility.h
diff --git a/src/platform/vboot_reference/common/include/utility.h b/src/platform/vboot_reference/common/include/utility.h
index 8619cd219899b77991f1ef4a8d07ab1dc454252b..a5df8fa6babed28bf37131902666767a84a85a7e 100644
--- a/src/platform/vboot_reference/common/include/utility.h
+++ b/src/platform/vboot_reference/common/include/utility.h
@@ -40,6 +40,12 @@ void* Malloc(size_t size);
/* Free memory pointed by [ptr] previously allocated by Malloc(). */
void Free(void* ptr);
+/* Compare [n] bytes in [src1] and [src2]
+ * Returns an integer less than, equal to, or greater than zero if the first [n]
+ * bytes of [src1] is found, respectively, to be less than, to match, or be
+ * greater than the first n bytes of [src2]. */
+int Memcmp(const void* src1, const void* src2, size_t n);
+
/* Copy [n] bytes from [src] to [dest]. */
void* Memcpy(void* dest, const void* src, size_t n);
« no previous file with comments | « src/platform/vboot_reference/cgptlib/tests/cgpt_test.c ('k') | src/platform/vboot_reference/common/utility_stub.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698