
cannam@125: autogen definitions pcm_test.tpl;
cannam@125: 
cannam@125: data_type = {
cannam@125: 	name		= "bits_8" ;
cannam@125: 	item_count	= 127 ;
cannam@125: 	short_func	= "arith_shift_left (k * ((k % 2) ? 1 : -1), 8)" ;
cannam@125: 	int_func	= "arith_shift_left (k * ((k % 2) ? 1 : -1), 24)" ;
cannam@125: 	float_func	= "(k * ((k % 2) ? 1 : -1))" ;
cannam@125: 	} ;
cannam@125: 
cannam@125: data_type = {
cannam@125: 	name		= "bits_16" ;
cannam@125: 	item_count	= 1024 ;
cannam@125: 	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
cannam@125: 	int_func	= "arith_shift_left (k * ((k % 2) ? 3 : -3), 16)" ;
cannam@125: 	float_func	= "(k * ((k % 2) ? 3 : -3))" ;
cannam@125: 	} ;
cannam@125: 
cannam@125: data_type = {
cannam@125: 	name		= "bits_24" ;
cannam@125: 	item_count	= 1024 ;
cannam@125: 	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
cannam@125: 	int_func	= "arith_shift_left (k * ((k % 2) ? 3333 : -3333), 8)" ;
cannam@125: 	float_func	= "(k * ((k % 2) ? 3333 : -3333))" ;
cannam@125: 	} ;
cannam@125: 
cannam@125: data_type = {
cannam@125: 	name		= "bits_32" ;
cannam@125: 	item_count	= 1024 ;
cannam@125: 	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
cannam@125: 	int_func	= "(k * ((k % 2) ? 333333 : -333333))" ;
cannam@125: 	float_func	= "(k * ((k % 2) ? 333333 : -333333))" ;
cannam@125: 	} ;
cannam@125: 




