mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	tests: Fix function argument wrapping style in cpu-test.c.
This commit is contained in:
		
							parent
							
								
									01a7c6b4e6
								
							
						
					
					
						commit
						e8f1cfd9a5
					
				
					 1 changed files with 44 additions and 14 deletions
				
			
		| 
						 | 
					@ -70,8 +70,14 @@
 | 
				
			||||||
#define TIMES2 100
 | 
					#define TIMES2 100
 | 
				
			||||||
#define PADDING 16
 | 
					#define PADDING 16
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void run_volume_test(pa_do_volume_func_t func, pa_do_volume_func_t orig_func, int align, int channels,
 | 
					static void run_volume_test(
 | 
				
			||||||
        pa_bool_t correct, pa_bool_t perf) {
 | 
					        pa_do_volume_func_t func,
 | 
				
			||||||
 | 
					        pa_do_volume_func_t orig_func,
 | 
				
			||||||
 | 
					        int align,
 | 
				
			||||||
 | 
					        int channels,
 | 
				
			||||||
 | 
					        pa_bool_t correct,
 | 
				
			||||||
 | 
					        pa_bool_t perf) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s_ref[SAMPLES]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s_ref[SAMPLES]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s_orig[SAMPLES]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s_orig[SAMPLES]) = { 0 };
 | 
				
			||||||
| 
						 | 
					@ -254,8 +260,13 @@ END_TEST
 | 
				
			||||||
#define TIMES 1000
 | 
					#define TIMES 1000
 | 
				
			||||||
#define TIMES2 100
 | 
					#define TIMES2 100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void run_conv_test_float_to_s16(pa_convert_func_t func, pa_convert_func_t orig_func, int align, pa_bool_t correct,
 | 
					static void run_conv_test_float_to_s16(
 | 
				
			||||||
 | 
					        pa_convert_func_t func,
 | 
				
			||||||
 | 
					        pa_convert_func_t orig_func,
 | 
				
			||||||
 | 
					        int align,
 | 
				
			||||||
 | 
					        pa_bool_t correct,
 | 
				
			||||||
        pa_bool_t perf) {
 | 
					        pa_bool_t perf) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s_ref[SAMPLES]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s_ref[SAMPLES]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, float, f[SAMPLES]);
 | 
					    PA_DECLARE_ALIGNED(8, float, f[SAMPLES]);
 | 
				
			||||||
| 
						 | 
					@ -302,8 +313,13 @@ static void run_conv_test_float_to_s16(pa_convert_func_t func, pa_convert_func_t
 | 
				
			||||||
/* This test is currently only run under NEON */
 | 
					/* This test is currently only run under NEON */
 | 
				
			||||||
#if defined (__arm__) && defined (__linux__)
 | 
					#if defined (__arm__) && defined (__linux__)
 | 
				
			||||||
#ifdef HAVE_NEON
 | 
					#ifdef HAVE_NEON
 | 
				
			||||||
static void run_conv_test_s16_to_float(pa_convert_func_t func, pa_convert_func_t orig_func, int align, pa_bool_t correct,
 | 
					static void run_conv_test_s16_to_float(
 | 
				
			||||||
 | 
					        pa_convert_func_t func,
 | 
				
			||||||
 | 
					        pa_convert_func_t orig_func,
 | 
				
			||||||
 | 
					        int align,
 | 
				
			||||||
 | 
					        pa_bool_t correct,
 | 
				
			||||||
        pa_bool_t perf) {
 | 
					        pa_bool_t perf) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, float, f[SAMPLES]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, float, f[SAMPLES]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, float, f_ref[SAMPLES]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, float, f_ref[SAMPLES]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES]);
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES]);
 | 
				
			||||||
| 
						 | 
					@ -456,9 +472,14 @@ END_TEST
 | 
				
			||||||
#define TIMES 1000
 | 
					#define TIMES 1000
 | 
				
			||||||
#define TIMES2 100
 | 
					#define TIMES2 100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 static void run_remap_test_mono_stereo_float(pa_remap_t *remap,
 | 
					static void run_remap_test_mono_stereo_float(
 | 
				
			||||||
    pa_do_remap_func_t func, pa_do_remap_func_t orig_func,
 | 
					        pa_remap_t *remap,
 | 
				
			||||||
    int align, pa_bool_t correct, pa_bool_t perf) {
 | 
					        pa_do_remap_func_t func,
 | 
				
			||||||
 | 
					        pa_do_remap_func_t orig_func,
 | 
				
			||||||
 | 
					        int align,
 | 
				
			||||||
 | 
					        pa_bool_t correct,
 | 
				
			||||||
 | 
					        pa_bool_t perf) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, float, s_ref[SAMPLES*2]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, float, s_ref[SAMPLES*2]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, float, s[SAMPLES*2]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, float, s[SAMPLES*2]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, float, m[SAMPLES]);
 | 
					    PA_DECLARE_ALIGNED(8, float, m[SAMPLES]);
 | 
				
			||||||
| 
						 | 
					@ -501,9 +522,14 @@ END_TEST
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 static void run_remap_test_mono_stereo_s16(pa_remap_t *remap,
 | 
					static void run_remap_test_mono_stereo_s16(
 | 
				
			||||||
    pa_do_remap_func_t func, pa_do_remap_func_t orig_func,
 | 
					        pa_remap_t *remap,
 | 
				
			||||||
    int align, pa_bool_t correct, pa_bool_t perf) {
 | 
					        pa_do_remap_func_t func,
 | 
				
			||||||
 | 
					        pa_do_remap_func_t orig_func,
 | 
				
			||||||
 | 
					        int align,
 | 
				
			||||||
 | 
					        pa_bool_t correct,
 | 
				
			||||||
 | 
					        pa_bool_t perf) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s_ref[SAMPLES*2]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s_ref[SAMPLES*2]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES*2]) = { 0 };
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, s[SAMPLES*2]) = { 0 };
 | 
				
			||||||
    PA_DECLARE_ALIGNED(8, int16_t, m[SAMPLES]);
 | 
					    PA_DECLARE_ALIGNED(8, int16_t, m[SAMPLES]);
 | 
				
			||||||
| 
						 | 
					@ -545,8 +571,10 @@ END_TEST
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void remap_test_mono_stereo_float(pa_init_remap_func_t init_func,
 | 
					static void remap_test_mono_stereo_float(
 | 
				
			||||||
 | 
					        pa_init_remap_func_t init_func,
 | 
				
			||||||
        pa_init_remap_func_t orig_init_func) {
 | 
					        pa_init_remap_func_t orig_init_func) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_sample_format_t sf;
 | 
					    pa_sample_format_t sf;
 | 
				
			||||||
    pa_remap_t remap;
 | 
					    pa_remap_t remap;
 | 
				
			||||||
    pa_sample_spec iss, oss;
 | 
					    pa_sample_spec iss, oss;
 | 
				
			||||||
| 
						 | 
					@ -582,8 +610,10 @@ static void remap_test_mono_stereo_float(pa_init_remap_func_t init_func,
 | 
				
			||||||
    run_remap_test_mono_stereo_float(&remap, func, orig_func, 3, TRUE, TRUE);
 | 
					    run_remap_test_mono_stereo_float(&remap, func, orig_func, 3, TRUE, TRUE);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void remap_test_mono_stereo_s16(pa_init_remap_func_t init_func,
 | 
					static void remap_test_mono_stereo_s16(
 | 
				
			||||||
 | 
					        pa_init_remap_func_t init_func,
 | 
				
			||||||
        pa_init_remap_func_t orig_init_func) {
 | 
					        pa_init_remap_func_t orig_init_func) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_sample_format_t sf;
 | 
					    pa_sample_format_t sf;
 | 
				
			||||||
    pa_remap_t remap;
 | 
					    pa_remap_t remap;
 | 
				
			||||||
    pa_sample_spec iss, oss;
 | 
					    pa_sample_spec iss, oss;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue