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




