diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-14 10:27:34 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-16 00:46:33 -0800 |
commit | e4ee891759b08d3edb258b34f00b4ae8e3298d06 (patch) | |
tree | eb7d4b3636fc25753fa48cbe643e2760a8fafe64 /testing/examples/STR912Test | |
parent | d50caa97d17187ed96746cc1527e5dbf57d4a81a (diff) | |
download | openocd_libswd-e4ee891759b08d3edb258b34f00b4ae8e3298d06.tar.gz openocd_libswd-e4ee891759b08d3edb258b34f00b4ae8e3298d06.tar.bz2 openocd_libswd-e4ee891759b08d3edb258b34f00b4ae8e3298d06.tar.xz openocd_libswd-e4ee891759b08d3edb258b34f00b4ae8e3298d06.zip |
improve buf_cmp and buf_cmp_mask helpers
Rewrite buf_cmp to use memcpy for bulk of comparison. Add static
helper to perform comparison of trailing byte, which uses another
static helper to perform a maksed comparison. The masked comparison
helper is used by the buf_cmp_mask to simplify its loop.
Improve types to use void *, unsigned, and return bool.
Diffstat (limited to 'testing/examples/STR912Test')
0 files changed, 0 insertions, 0 deletions