Lines Matching refs:j

274     int j, added = 0;  in saddCommand()  local
287 for (j = 2; j < c->argc; j++) { in saddCommand()
288 c->argv[j] = tryObjectEncoding(c->argv[j]); in saddCommand()
289 if (setTypeAdd(set,c->argv[j])) added++; in saddCommand()
301 int j, deleted = 0, keyremoved = 0; in sremCommand() local
306 for (j = 2; j < c->argc; j++) { in sremCommand()
307 if (setTypeRemove(set,c->argv[j])) { in sremCommand()
798 unsigned long j, cardinality = 0; in sinterGenericCommand() local
801 for (j = 0; j < setnum; j++) { in sinterGenericCommand()
803 lookupKeyWrite(c->db,setkeys[j]) : in sinterGenericCommand()
804 lookupKeyRead(c->db,setkeys[j]); in sinterGenericCommand()
822 sets[j] = setobj; in sinterGenericCommand()
846 for (j = 1; j < setnum; j++) { in sinterGenericCommand()
847 if (sets[j] == sets[0]) continue; in sinterGenericCommand()
850 if (sets[j]->encoding == OBJ_ENCODING_INTSET && in sinterGenericCommand()
851 !intsetFind((intset*)sets[j]->ptr,intobj)) in sinterGenericCommand()
857 } else if (sets[j]->encoding == OBJ_ENCODING_HT) { in sinterGenericCommand()
859 if (!setTypeIsMember(sets[j],eleobj)) { in sinterGenericCommand()
870 sets[j]->encoding == OBJ_ENCODING_INTSET && in sinterGenericCommand()
871 !intsetFind((intset*)sets[j]->ptr,(long)eleobj->ptr)) in sinterGenericCommand()
876 } else if (!setTypeIsMember(sets[j],eleobj)) { in sinterGenericCommand()
883 if (j == setnum) { in sinterGenericCommand()
944 int j, cardinality = 0; in sunionDiffGenericCommand() local
947 for (j = 0; j < setnum; j++) { in sunionDiffGenericCommand()
949 lookupKeyWrite(c->db,setkeys[j]) : in sunionDiffGenericCommand()
950 lookupKeyRead(c->db,setkeys[j]); in sunionDiffGenericCommand()
952 sets[j] = NULL; in sunionDiffGenericCommand()
959 sets[j] = setobj; in sunionDiffGenericCommand()
974 for (j = 0; j < setnum; j++) { in sunionDiffGenericCommand()
975 if (sets[j] == NULL) continue; in sunionDiffGenericCommand()
978 algo_two_work += setTypeSize(sets[j]); in sunionDiffGenericCommand()
1003 for (j = 0; j < setnum; j++) { in sunionDiffGenericCommand()
1004 if (!sets[j]) continue; /* non existing keys are like empty sets */ in sunionDiffGenericCommand()
1006 si = setTypeInitIterator(sets[j]); in sunionDiffGenericCommand()
1024 for (j = 1; j < setnum; j++) { in sunionDiffGenericCommand()
1025 if (!sets[j]) continue; /* no key is an empty set. */ in sunionDiffGenericCommand()
1026 if (sets[j] == sets[0]) break; /* same set! */ in sunionDiffGenericCommand()
1027 if (setTypeIsMember(sets[j],ele)) break; in sunionDiffGenericCommand()
1029 if (j == setnum) { in sunionDiffGenericCommand()
1045 for (j = 0; j < setnum; j++) { in sunionDiffGenericCommand()
1046 if (!sets[j]) continue; /* non existing keys are like empty sets */ in sunionDiffGenericCommand()
1048 si = setTypeInitIterator(sets[j]); in sunionDiffGenericCommand()
1050 if (j == 0) { in sunionDiffGenericCommand()