*** empty log message ***

This commit is contained in:
jiri 2012-02-23 15:22:07 +00:00
parent 195474b5f5
commit 4b5d67dd54
1 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ static inline void put(int fd, const complex<C> &x, bool dimensions=0, bool tran
static void multiget(size_t n,int fd, complex<C> *x, bool dimensions=0)
{
size_t total=0;
size_t system_limit = (1L<<30)/sizeof(complex<C>); //read at most 1GB at once
size_t system_limit = (1L<<30)/sizeof(complex<C>); //do not expect too much from the system and read at most 1GB at once
ssize_t r;
do{
r=read(fd,x+total,(n-total > system_limit ? system_limit : n-total)*sizeof(complex<C>));
@ -236,7 +236,7 @@ static void multiget(size_t n,int fd, complex<C> *x, bool dimensions=0)
static void multiput(size_t n, int fd, const complex<C> *x, bool dimensions=0)
{
size_t total=0;
size_t system_limit = (1L<<30)/sizeof(complex<C>); //read at most 1GB at once
size_t system_limit = (1L<<30)/sizeof(complex<C>); //do not expect too much from the system and write at most 1GB at once
ssize_t r;
do{
r=write(fd,x+total,(n-total > system_limit ? system_limit : n-total)*sizeof(complex<C>));