From ffc9e66b3505990009e47b461eb03d3eb1635258 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 5 Nov 2017 02:00:26 -0800 Subject: 4109 --- html/069hash.cc.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/069hash.cc.html') diff --git a/html/069hash.cc.html b/html/069hash.cc.html index 9521a756..00d88349 100644 --- a/html/069hash.cc.html +++ b/html/069hash.cc.html @@ -63,7 +63,7 @@ if ('onhashchange' in window) {
-  1 // A universal hash function that can handle objects of any type.
+  1 // Compute a hash for objects of any type.
   2 //
   3 // The way it's currently implemented, two objects will have the same hash if
   4 // all their non-address fields (all the way down) expand to the same sequence
@@ -120,10 +120,10 @@ if ('onhashchange' in window) {
  55 
  56 size_t hash_mu_address(size_t h, reagent& r) {
  57   if (r.value == 0) return 0;
- 58   trace(9999, "mem") << "location " << r.value << " is " << no_scientific(get_or_insert(Memory, r.value)) << end();
+ 58   trace("mem") << "location " << r.value << " is " << no_scientific(get_or_insert(Memory, r.value)) << end();
  59   r.set_value(get_or_insert(Memory, r.value));
  60   if (r.value != 0) {
- 61   ¦ trace(9999, "mem") << "skipping refcount at " << r.value << end();
+ 61   ¦ trace("mem") << "skipping refcount at " << r.value << end();
  62   ¦ r.set_value(r.value+1);  // skip refcount
  63   }
  64   drop_from_type(r, "address");
@@ -144,9 +144,9 @@ if ('onhashchange' in window) {
  79   reagent/*copy*/ elem = r;
  80   delete elem.type;
  81   elem.type = copy_array_element(r.type);
- 82   for (int i=0, address = r.value+1;  i < size;  ++i, address += size_of(elem)) {
+ 82   for (int i=0, address = r.value+1;  i < size;  ++i, address += size_of(elem)) {
  83   ¦ reagent/*copy*/ tmp = elem;
- 84   ¦ tmp.set_value(address);
+ 84   ¦ tmp.set_value(address);
  85   ¦ h = hash(h, tmp);
  86 //?     cerr << i << " (" << address << "): " << h << '\n';
  87   }
@@ -155,7 +155,7 @@ if ('onhashchange' in window) {
  90 
  91 size_t hash_mu_container(size_t h, const reagent& r) {
  92   type_info& info = get(Type, get_base_type(r.type)->value);
- 93   int address = r.value;
+ 93   int address = r.value;
  94   int offset = 0;
  95   for (int i = 0;  i < SIZE(info.elements);  ++i) {
  96   ¦ reagent/*copy*/ element = element_type(r.type, i);
-- 
cgit 1.4.1-2-gfad0