Add support for AVX2 and runtime feature detection (#174)
- [x] run unit tests - [x] run all samples
This commit is contained in:
parent
51f056e0a9
commit
e77352cd60
53 changed files with 4681 additions and 3376 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "box3d/math_functions.h"
|
||||
|
||||
#include "manifold.h"
|
||||
#include "simd.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
@ -185,3 +186,13 @@ SatBenchmarkResult RunSatBenchmark( const SatBenchmarkData* data, int repeatCoun
|
|||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
void SetSimdWidth( int width )
|
||||
{
|
||||
b3SetSIMDWidth( width );
|
||||
}
|
||||
|
||||
int GetSimdWidth( void )
|
||||
{
|
||||
return b3GetSIMDWidth();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,6 +65,9 @@ void EnableSatInscribedSphere( SatBenchmarkData* data, bool flag );
|
|||
|
||||
SatBenchmarkResult RunSatBenchmark( const SatBenchmarkData* data, int repeatCount, bool warmStartDistance );
|
||||
|
||||
void SetSimdWidth( int width );
|
||||
int GetSimdWidth( void );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue