diff options
author | Marc Schink <flashrom-dev@marcschink.de> | 2016-03-17 16:07:23 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-08-30 09:55:57 +0000 |
commit | 7ecfe48b19c3e97341a3f2b0d85e7367ab92f2b6 (patch) | |
tree | 8114881424b47ca6c3044e39da8e16615001887b /flash.h | |
parent | af499198a49fe342a0bb3dbbfa362b8788a8fb4e (diff) | |
download | flashrom-7ecfe48b19c3e97341a3f2b0d85e7367ab92f2b6.tar.gz flashrom-7ecfe48b19c3e97341a3f2b0d85e7367ab92f2b6.tar.bz2 flashrom-7ecfe48b19c3e97341a3f2b0d85e7367ab92f2b6.zip |
helpers: Add reverse_byte() and reverse_bytes()
Change-Id: I9d2e1e2856c835d22eed3b3a34bc0379773dd831
Signed-off-by: Marc Schink <flashrom-dev@marcschink.de>
Reviewed-on: https://review.coreboot.org/28086
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -295,6 +295,8 @@ int max(int a, int b); int min(int a, int b); char *strcat_realloc(char *dest, const char *src); void tolower_string(char *str); +uint8_t reverse_byte(uint8_t x); +void reverse_bytes(uint8_t *dst, const uint8_t *src, size_t length); #ifdef __MINGW32__ char* strtok_r(char *str, const char *delim, char **nextp); #endif |