Add support for AVX2 and runtime feature detection (#174)

- [x] run unit tests
- [x] run all samples
This commit is contained in:
Ethan Rutherford 2026-10-04 00:14:34 +02:00 • committed by GitHub
commit e77352cd60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 4681 additions and 3376 deletions

View file

@ -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();
}

View file

@ -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