Small optimizations to f32 -> s16 conversion.

This commit is contained in:
David Reid
2018-05-30 20:06:09 +10:00
parent ec3f56d8e7
commit 10f8649258
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -580,7 +580,7 @@ int do_profiling__format_conversion__profile_individual(mal_format formatIn, mal
int do_profiling__format_conversion__profile_set(mal_format formatIn, mal_format formatOut, mal_dither_mode ditherMode)
{
// Generate our base data to begin with. This is generated from an f32 sine wave which is converted to formatIn. That then becomes our base data.
mal_uint32 sampleCount = 1000000;
mal_uint32 sampleCount = 10000000;
float* pSourceData = (float*)mal_aligned_malloc(sampleCount*sizeof(*pSourceData), MAL_SIMD_ALIGNMENT);
if (pSourceData == NULL) {