示例#1
0
void histogram::update(uint64_t x, uint64_t y) {
	validate_snapshots();

	auto indx = get_indx(x, y);
	m_snapshots.rbegin()->counters[indx] += 1;
	m_last_data.counters[indx] += 1;
}
示例#2
0
文件: alifold.c 项目: jujubix/cofold
/* unsafe function that will be replaced by a threadsafe companion in the future */
PRIVATE void init_alifold(int length){

#ifdef _OPENMP
/* Explicitly turn off dynamic threads */
  omp_set_dynamic(0);
#endif

  if (length < 1) nrerror("initialize_fold: argument must be greater 0");
  free_alifold_arrays();
  get_arrays((unsigned) length);
  init_length = length;

  indx = get_indx((unsigned)length);

  update_alifold_params();
}