From 5ef629df9db2fbedb1413f9c12e412ebc7117730 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 9 Nov 2005 22:41:51 +0000 Subject: [PATCH] 2005-11-09 Martin Hunt * map.h: Remove HSTAT_LOG and HSTAT_LINEAR. * map-gen.c: Fix comment. * pmap-gen.c: Ditto. --- runtime/ChangeLog | 6 ++++++ runtime/map-gen.c | 4 ++-- runtime/map.h | 5 ----- runtime/pmap-gen.c | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/runtime/ChangeLog b/runtime/ChangeLog index d98ce50e4..0c85f33a3 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,4 +1,10 @@ 2005-11-09 Martin Hunt + + * map.h: Remove HSTAT_LOG and HSTAT_LINEAR. + * map-gen.c: Fix comment. + * pmap-gen.c: Ditto. + +2005-11-09 Martin Hunt * map.c (_stp_cmp): Patch to sort on stats. (_stp_map_sort): Ditto. (_stp_map_sortn): Ditto. diff --git a/runtime/map-gen.c b/runtime/map-gen.c index f3d65c4d0..fccdecdc8 100644 --- a/runtime/map-gen.c +++ b/runtime/map-gen.c @@ -345,8 +345,8 @@ MAP KEYSYM(_stp_map_new) (unsigned max_entries) return m; } #else -/* _stp_map_new_key1_key2...val (num, HSTAT_LINEAR, start, end, interval) */ -/* _stp_map_new_key1_key2...val (num, HSTAT_LOG, buckets) */ +/* _stp_map_new_key1_key2...val (num, HIST_LINEAR, start, end, interval) */ +/* _stp_map_new_key1_key2...val (num, HIST_LOG, buckets) */ MAP KEYSYM(_stp_map_new) (unsigned max_entries, int htype, ...) { diff --git a/runtime/map.h b/runtime/map.h index 83a65c1ef..08c06a1ed 100644 --- a/runtime/map.h +++ b/runtime/map.h @@ -47,11 +47,6 @@ amount of memory. Do not increase above 5. */ #include "stat.h" -/* Histogram is log 2 */ -#define HSTAT_LOG (STAT | (HIST_LOG << 8)) -/* Histogram is linear */ -#define HSTAT_LINEAR (STAT | (HIST_LINEAR << 8)) - /* Keys are either int64 or strings */ typedef union { int64_t val; diff --git a/runtime/pmap-gen.c b/runtime/pmap-gen.c index e5da6a3d0..cb203a887 100644 --- a/runtime/pmap-gen.c +++ b/runtime/pmap-gen.c @@ -421,8 +421,8 @@ MAP KEYSYM(_stp_pmap_new) (unsigned max_entries) return map; } #else -/* _stp_pmap_new_key1_key2...val (num, HSTAT_LINEAR, start, end, interval) */ -/* _stp_pmap_new_key1_key2...val (num, HSTAT_LOG, buckets) */ +/* _stp_pmap_new_key1_key2...val (num, HIST_LINEAR, start, end, interval) */ +/* _stp_pmap_new_key1_key2...val (num, HIST_LOG, buckets) */ MAP KEYSYM(_stp_pmap_new) (unsigned max_entries, int htype, ...) { -- 2.43.5