func (s *Store) Add(sig uint64, docid uint64) {

	var t int

	s.docids = append(s.docids, entry{hash: sig, docid: docid})

	for i := 0; i < 4; i++ {
		p := sig
		s.rhashes[t].add(p)
		t++

		p = (sig & 0xffff000000ffffff) | (sig & 0x0000fff000000000 >> 12) | (sig & 0x0000000fff000000 << 12)
		s.rhashes[t].add(p)
		t++

		p = (sig & 0xffff000fff000fff) | (sig & 0x0000fff000000000 >> 24) | (sig & 0x0000000000fff000 << 24)
		s.rhashes[t].add(p)
		t++

		p = (sig & 0xffff000ffffff000) | (sig & 0x0000fff000000000 >> 36) | (sig & 0x0000000000000fff << 36)
		s.rhashes[t].add(p)
		t++

		sig = (sig << 16) | (sig >> (64 - 16))
	}
}
// Add inserts a signature and document id into the store
Add inserts a signature and document id into the store
// Add inserts a signature and document id into the store
func (s *Store) Add(sig uint64, docid uint64) {
	var t int
	s.docids = append(s.docids, entry{hash: sig, docid: docid})
	for i := 0; i < 4; i++ {
		p := sig
		s.rhashes[t].add(p)
		t++
		p = (sig & 0xffff000000ffffff) | (sig & 0x0000fff000000000 >> 12) | (sig & 0x0000000fff000000 << 12)
		s.rhashes[t].add(p)
		t++
		p = (sig & 0xffff000fff000fff) | (sig & 0x0000fff000000000 >> 24) | (sig & 0x0000000000fff000 << 24)
		s.rhashes[t].add(p)
		t++
		p = (sig & 0xffff000ffffff000) | (sig & 0x0000fff000000000 >> 36) | (sig & 0x0000000000000fff << 36)
		s.rhashes[t].add(p)
		t++
		sig = (sig << 16) | (sig >> (64 - 16))
	}
}
func ( s * Store ) Add ( sig uint64 , docid uint64 ) { var t int s . docids = append ( s . docids , entry { hash : sig , docid : docid } ) for i := 0 ; i < 4 ; i ++ { p := sig s . rhashes [ t ] . add ( p ) t ++ p = ( sig & 0xffff000000ffffff ) | ( sig & 0x0000fff000000000 >> 12 ) | ( sig & 0x0000000fff000000 << 12 ) s . rhashes [ t ] . add ( p ) t ++ p = ( sig & 0xffff000fff000fff ) | ( sig & 0x0000fff000000000 >> 24 ) | ( sig & 0x0000000000fff000 << 24 ) s . rhashes [ t ] . add ( p ) t ++ p = ( sig & 0xffff000ffffff000 ) | ( sig & 0x0000fff000000000 >> 36 ) | ( sig & 0x0000000000000fff << 36 ) s . rhashes [ t ] . add ( p ) t ++ sig = ( sig << 16 ) | ( sig >> ( 64 - 16 ) ) } }
Add inserts a signature and document id into the store
Add inserts a signature and document id into the store