Exemplo n.º 1
0
void Sender()
{
	int idx;
	float val[ORDER];
	for(idx = 0; idx < ORDER; idx++)
	{
		val[idx] = drand48();
		expected_result[idx] = (val[idx] + 1);
	}
	write_uint64_n("in_data", ((uint64_t*) val),ORDER/2);
}
Exemplo n.º 2
0
void Sender()
{
	int idx,jdx,k;
	k=0;
	sent_values[0] = 0x8000000000000000;
	sent_values[1] = 0x0000000000000000;
	
	write_uint64_n("in_data",sent_values,2);
	//fprintf(stderr,"\nPT: %16llx %16llx",sent_values[0],sent_values[1]);
	
	for(idx = 1; idx < ORDER; idx++)
	{	
		if(sent_values[k]==0xffffffffffffffff){
			k++;
			sent_values[k]= 0x8000000000000000;
		}
		else
			sent_values[k] = sent_values[k]|(sent_values[k]/2);
			
		write_uint64_n("in_data",sent_values,2);
		//fprintf(stdout,"\nPT: %16llx %16llx",sent_values[0],sent_values[1]);
	}
}
Exemplo n.º 3
0
void *write_pipe_data_(void* a)
{
	PipeArgs* aa = (PipeArgs*) a;
	write_uint64_n(aa->name,(uint64_t*)(aa->data), PKT_LENGTH*N);
}