mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 12:55:06 +00:00 
			
		
		
		
	audio: SDL_ConvertStereoToMono_SSE3 missed an unaligned load.
This commit is contained in:
		
							parent
							
								
									505d6a4a05
								
							
						
					
					
						commit
						727eef7064
					
				| 
						 | 
					@ -80,7 +80,7 @@ SDL_ConvertStereoToMono_SSE3(SDL_AudioCVT * cvt, SDL_AudioFormat format)
 | 
				
			||||||
       Just use unaligned load/stores, if the memory at runtime is
 | 
					       Just use unaligned load/stores, if the memory at runtime is
 | 
				
			||||||
       aligned it'll be just as fast on modern processors */
 | 
					       aligned it'll be just as fast on modern processors */
 | 
				
			||||||
    while (i >= 4) {   /* 4 * float32 */
 | 
					    while (i >= 4) {   /* 4 * float32 */
 | 
				
			||||||
        _mm_storeu_ps(dst, _mm_mul_ps(_mm_hadd_ps(_mm_load_ps(src), _mm_loadu_ps(src+4)), divby2));
 | 
					        _mm_storeu_ps(dst, _mm_mul_ps(_mm_hadd_ps(_mm_loadu_ps(src), _mm_loadu_ps(src+4)), divby2));
 | 
				
			||||||
        i -= 4; src += 8; dst += 4;
 | 
					        i -= 4; src += 8; dst += 4;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue