share_utils.h File Reference

#include "datatypes.h"

Go to the source code of this file.

Classes

class  chunkMaker

Functions

void calcShareGeneral (int64 glo, int64 ghi, int64 nshares, int64 myshare, int64 &lo, int64 &hi)


Detailed Description

Various convenience functions for subdividing tasks into chunks

Copyright (C) 2002-2014 Max-Planck-Society

Author:
Martin Reinecke

Definition in file share_utils.h.


Function Documentation

void calcShareGeneral ( int64  glo,
int64  ghi,
int64  nshares,
int64  myshare,
int64 &  lo,
int64 &  hi 
) [inline]

Divides the index range [glo; ghi) into nshares approximately equal parts, and returns the sub-range [lo; hi) of the part with the number myshare (first part has index 0).

Definition at line 40 of file share_utils.h.


Generated on Thu Oct 8 14:48:51 2015 for LevelS C++ support library