2007-05-14 09:55:24 +00:00
|
|
|
autogen definitions pcm_test.tpl;
|
|
|
|
|
|
|
|
data_type = {
|
|
|
|
name = "bits_8" ;
|
|
|
|
item_count = 127 ;
|
2014-12-15 10:20:29 +00:00
|
|
|
short_func = "arith_shift_left (k * ((k % 2) ? 1 : -1), 8)" ;
|
|
|
|
int_func = "arith_shift_left (k * ((k % 2) ? 1 : -1), 24)" ;
|
2007-05-14 09:55:24 +00:00
|
|
|
float_func = "(k * ((k % 2) ? 1 : -1))" ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
data_type = {
|
|
|
|
name = "bits_16" ;
|
|
|
|
item_count = 1024 ;
|
|
|
|
short_func = "(k * ((k % 2) ? 3 : -3))" ;
|
2014-12-15 10:20:29 +00:00
|
|
|
int_func = "arith_shift_left (k * ((k % 2) ? 3 : -3), 16)" ;
|
2007-05-14 09:55:24 +00:00
|
|
|
float_func = "(k * ((k % 2) ? 3 : -3))" ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
data_type = {
|
|
|
|
name = "bits_24" ;
|
|
|
|
item_count = 1024 ;
|
|
|
|
short_func = "(k * ((k % 2) ? 3 : -3))" ;
|
2014-12-15 10:20:29 +00:00
|
|
|
int_func = "arith_shift_left (k * ((k % 2) ? 3333 : -3333), 8)" ;
|
2007-05-14 09:55:24 +00:00
|
|
|
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))" ;
|
|
|
|
} ;
|
|
|
|
|