C-Utils Repository branch, master, updated. 7f4af54f5af9a97f346cfb1d8fc122b1f2203178
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 "C-Utils Repository". The branch, master has been updated via 7f4af54f5af9a97f346cfb1d8fc122b1f2203178 (commit) from 712c3fb64e02d7a92cb8aa6043c363f78f9e8a2f (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 ----------------------------------------------------------------- commit 7f4af54f5af9a97f346cfb1d8fc122b1f2203178 Author: Phil Carns <[email protected]> Date: Mon Mar 26 15:23:32 2012 -0400 make triton-uint128.h able to stand alone ----------------------------------------------------------------------- Summary of changes: triton-uint128.h | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) Diff of changes: diff --git a/triton-uint128.h b/triton-uint128.h index abb598f..8482707 100644 --- a/triton-uint128.h +++ b/triton-uint128.h @@ -3,8 +3,7 @@ #include <stdio.h> #include <assert.h> - -#include "triton-base.h" +#include <stdint.h> /* unsigned 128 bit integer type */ typedef struct { uint64_t l; uint64_t u; } uint128_t; @@ -25,6 +24,19 @@ typedef struct { uint64_t l; uint64_t u; } uint128_t; */ #define TRITON_UINT128_STRLEN 42 +/* this version relies on less-portable system definitions */ +#ifndef llu +#if __WORDSIZE == 64 +# define llu(x) (unsigned long long)(x) +# define lld(x) (long long)(x) +# define SCANF_lld ld +#else +# define llu(x) (x) +# define lld(x) (x) +# define SCANF_lld lld +#endif +#endif + /* convert to string in uint64_t:uint64_t format (for now) */ static inline void triton_uint128_to_string(char* buf, int buflen, uint128_t big) { hooks/post-receive -- C-Utils Repository
participants (1)
-
noreply@mcs.anl.gov