This is an automated email from Gerrit. Alamy Liu ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/3246
-- gerrit commit f4da475619ea35a1b94da76c9622f4a31b5a82e2 Author: Alamy Liu <[email protected]> Date: Fri Aug 7 16:14:17 2015 -0700 DBG: weird buf_set_u32() cleaning Change-Id: I149231782df608f0ac6a95ef3bd2abb570afb7bf Signed-off-by: Alamy Liu <[email protected]> diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h index eaa8c52..908b5e9 100644 --- a/src/helper/binarybuffer.h +++ b/src/helper/binarybuffer.h @@ -50,6 +50,9 @@ static inline void buf_set_u32(uint8_t *_buffer, buffer[1] = (value >> 8) & 0xff; buffer[0] = (value >> 0) & 0xff; } else { +// unsigned i; +// for (i = 0; i < DIV_ROUND_UP(num, 8); i++) +// buffer[i] = 0x0; for (unsigned i = first; i < first + num; i++) { if (((value >> (i - first)) & 1) == 1) buffer[i / 8] |= 1 << (i % 8); @@ -88,6 +91,8 @@ static inline void buf_set_u64(uint8_t *_buffer, buffer[1] = (value >> 8) & 0xff; buffer[0] = (value >> 0) & 0xff; } else { +// for (unsigned i = 0; i < DIV_ROUND_UP(num, 8); i++) +// buffer[i] = 0x00; for (unsigned i = first; i < first + num; i++) { if (((value >> (i - first)) & 1) == 1) buffer[i / 8] |= 1 << (i % 8); -- ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
