view src/libsndfile-1.0.27/tests/pcm_test.def @ 168:ceec0dd9ec9c

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 07 Feb 2020 11:51:13 +0000
parents cd6cdf86811e
children
line wrap: on
line source
autogen definitions pcm_test.tpl;

data_type = {
	name		= "bits_8" ;
	item_count	= 127 ;
	short_func	= "arith_shift_left (k * ((k % 2) ? 1 : -1), 8)" ;
	int_func	= "arith_shift_left (k * ((k % 2) ? 1 : -1), 24)" ;
	float_func	= "(k * ((k % 2) ? 1 : -1))" ;
	} ;

data_type = {
	name		= "bits_16" ;
	item_count	= 1024 ;
	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
	int_func	= "arith_shift_left (k * ((k % 2) ? 3 : -3), 16)" ;
	float_func	= "(k * ((k % 2) ? 3 : -3))" ;
	} ;

data_type = {
	name		= "bits_24" ;
	item_count	= 1024 ;
	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
	int_func	= "arith_shift_left (k * ((k % 2) ? 3333 : -3333), 8)" ;
	float_func	= "(k * ((k % 2) ? 3333 : -3333))" ;
	} ;

data_type = {
	name		= "bits_32" ;
	item_count	= 1024 ;
	short_func	= "(k * ((k % 2) ? 3 : -3))" ;
	int_func	= "(k * ((k % 2) ? 333333 : -333333))" ;
	float_func	= "(k * ((k % 2) ? 333333 : -333333))" ;
	} ;