diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-16 02:53:57 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-16 09:58:11 -0800 |
commit | a94748ec6da9bdc6e25a7f73bbea723b8b55fa33 (patch) | |
tree | c6aebc5e8f39d0918f9a88dd43e373ea9d28e210 /src/jtag/jtag.h | |
parent | f0ce88b3af9a6090ac986160950d66317de5087e (diff) | |
download | openocd_libswd-a94748ec6da9bdc6e25a7f73bbea723b8b55fa33.tar.gz openocd_libswd-a94748ec6da9bdc6e25a7f73bbea723b8b55fa33.tar.bz2 openocd_libswd-a94748ec6da9bdc6e25a7f73bbea723b8b55fa33.tar.xz openocd_libswd-a94748ec6da9bdc6e25a7f73bbea723b8b55fa33.zip |
rename CEIL as DIV_ROUND_UP
Improves the name of this macro, moves it to types.h, and adds a block
of Doxygen comments to describe what it does.
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r-- | src/jtag/jtag.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index 30d62fd9..5328ff81 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -47,7 +47,7 @@ #define DIM(x) (sizeof(x)/sizeof((x)[0])) /** Calculate the number of bytes required to hold @a n TAP scan bits */ -#define TAP_SCAN_BYTES(n) CEIL(n, 8) +#define TAP_SCAN_BYTES(n) DIV_ROUND_UP(n, 8) /*-----</Macros>-------------------------------------------------*/ |