for(i = 0; i < len; i++) {
   for(j = 0; j < i; j++) {
      if(cnt > numvals) {
         cnt = 1;
         mask = imask;
         pos++;
      }

      tmp = (MYTYPE)(((MYTYPE)((*pos)&mask))>>((numvals-cnt)*valbits));
      if((tmp&nmask) != 0 && valbits > 1) tmp|= nmask;
      val = (double)tmp/denom;
      if(tmp != flag  && DOABS(val) >= threshold) {
         PRINTEDGE(i, j, val);
      }

      cnt++;
      mask>>= valbits;
   }
}
