mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	audioconvert: don't use -Ofast on alpha
I can crash when using denormalized floats. Fixes #3489
This commit is contained in:
		
							parent
							
								
									6eb7eb7df2
								
							
						
					
					
						commit
						632f532036
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		|  | @ -7,6 +7,13 @@ audioconvert_sources = [ | |||
| simd_cargs = [] | ||||
| simd_dependencies = [] | ||||
| 
 | ||||
| opt_flags = [] | ||||
| if host_machine.cpu_family() != 'alpha' | ||||
|   opt_flags += '-Ofast' | ||||
| else | ||||
|   opt_flags += '-O3' | ||||
| endif | ||||
| 
 | ||||
| audioconvert_c = static_library('audioconvert_c', | ||||
|   [ 'channelmix-ops-c.c', | ||||
|     'biquad.c', | ||||
|  | @ -15,7 +22,7 @@ audioconvert_c = static_library('audioconvert_c', | |||
|     'peaks-ops-c.c', | ||||
|     'resample-native-c.c', | ||||
|     'fmt-ops-c.c' ], | ||||
|   c_args : ['-Ofast'], | ||||
|   c_args : [ opt_flags ], | ||||
|   dependencies : [ spa_dep ], | ||||
|   install : false | ||||
|   ) | ||||
|  | @ -27,7 +34,7 @@ if have_sse | |||
|       'volume-ops-sse.c', | ||||
|       'peaks-ops-sse.c', | ||||
|       'channelmix-ops-sse.c' ], | ||||
|     c_args : [sse_args, '-Ofast', '-DHAVE_SSE'], | ||||
|     c_args : [sse_args, opt_flags, '-DHAVE_SSE'], | ||||
|     dependencies : [ spa_dep ], | ||||
|     install : false | ||||
|     ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wim Taymans
						Wim Taymans