[m-rev.] for review: add a builtin unsigned word sized integer type -- Part 1
Peter Wang
novalazy at gmail.com
Tue Oct 25 14:27:50 AEDT 2016
On Mon, 24 Oct 2016 12:50:00 +1100 (AEDT), Julien Fischer <jfischer at opturion.com> wrote:
> diff --git a/runtime/mercury_tabling_macros.h b/runtime/mercury_tabling_macros.h
> index dc2f21d..f904391 100644
> --- a/runtime/mercury_tabling_macros.h
> +++ b/runtime/mercury_tabling_macros.h
> @@ -217,6 +223,19 @@
> } \
> } while (0)
>
> +#define MR_TABLE_UINT(stats, debug, back, t, t0, value) \
> + do { \
> + if (stats != NULL) { \
> + (t) = MR_RAW_TABLE_UINT_STATS((stats), (t0), (value)); \
> + } else { \
> + (t) = MR_RAW_TABLE_UINT((t0), (value)); \
> + } \
> + if (MR_tabledebug) { \
> + printf("TABLE %p: uint %ud => %p\n", \
> + (t0), (long) (value), (t)); \
> + } \
> + } while (0)
%ud -> %u
long -> unsigned long
The rest looks fine to me.
Peter
More information about the reviews
mailing list