This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, generate has been updated via 71f1574977b03a901b7381fb3aca1c6d0c3ed33d (commit) from b964f56ae4fe0a0a48f16fc18a8daec953acb3cc (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/71f1574977b03a901b7381fb3aca1c6d0c3ed...
commit 71f1574977b03a901b7381fb3aca1c6d0c3ed33d Author: Cyril Hrubis metan@ucw.cz Date: Sun Oct 30 17:48:04 2011 +0100
Proved myself wrong, we need to read last two bytes.
Still haven't tried the code, just proved, while riding the train, that sometimes we need to get last two bytes.
diff --git a/include/core/GP_GetSetBits.h b/include/core/GP_GetSetBits.h index bd55fe2..d724828 100644 --- a/include/core/GP_GetSetBits.h +++ b/include/core/GP_GetSetBits.h @@ -27,8 +27,8 @@
*/
-#ifndef GP_GET_SET_BITS_H -#define GP_GET_SET_BITS_H +#ifndef CORE_GP_GET_SET_BITS_H +#define CORE_GP_GET_SET_BITS_H
/* * Helper macros to read/write parts of words @@ -122,6 +122,7 @@ #define GP_SET_BITS3_ALIGNED(offset, len, dest, val) do { uint32_t v; v = ((uint8_t *)dest)[0]; + v |= ((uint8_t *)dest)[1]<<8; v |= ((uint8_t *)dest)[2]<<16; GP_SET_BITS(offset, len, v, val); @@ -134,6 +135,7 @@ #define GP_SET_BITS4_ALIGNED(offset, len, dest, val) do { uint32_t v; v = ((uint8_t *)dest)[0]; + v |= ((uint8_t *)dest)[2]<<16; v |= ((uint8_t *)dest)[3]<<24; GP_SET_BITS(offset, len, v, val); @@ -145,4 +147,4 @@ } while (0)
-#endif /* GP_GET_SET_BITS_H */ +#endif /* CORE_GP_GET_SET_BITS_H */
-----------------------------------------------------------------------
Summary of changes: include/core/GP_GetSetBits.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.