diff options
author | dbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-09-26 19:18:42 +0000 |
---|---|---|
committer | dbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-09-26 19:18:42 +0000 |
commit | f64e924ba96d944259b284f8cc517e315e78acde (patch) | |
tree | 34b9f8d98314fbac2b24fbf32e06865f4dbd868b /src/helper | |
parent | 2e210ee48fa5a2dfc1ddc3b47c1aef4da814ca25 (diff) | |
download | openocd+libswd-f64e924ba96d944259b284f8cc517e315e78acde.tar.gz openocd+libswd-f64e924ba96d944259b284f8cc517e315e78acde.tar.bz2 openocd+libswd-f64e924ba96d944259b284f8cc517e315e78acde.tar.xz openocd+libswd-f64e924ba96d944259b284f8cc517e315e78acde.zip |
Updates to the initial scanchain validation code:
- minor bug fixes
- code cleanup
- update comments
- improve diagnostics
- etc
git-svn-id: svn://svn.berlios.de/openocd/trunk@2759 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/binarybuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h index 6d66c189..eef4057a 100644 --- a/src/helper/binarybuffer.h +++ b/src/helper/binarybuffer.h @@ -86,7 +86,7 @@ extern char* buf_to_str(const uint8_t *buf, int size, int radix); struct scan_field_s; extern int buf_to_u32_handler(uint8_t *in_buf, void *priv, struct scan_field_s *field); -#define CEIL(m, n) ((m + n - 1) / n) +#define CEIL(m, n) (((m) + (n) - 1) / (n)) /* read a uint32_t from a buffer in target memory endianness */ static inline uint32_t fast_target_buffer_get_u32(const uint8_t *buffer, int little) |