Skip to content

Instantly share code, notes, and snippets.

#include <ctype.h>
#include <chrono>
#include <iostream>
#include "PxPhysicsAPI.h"
#include "../snippetcommon/SnippetPrint.h"
#include "../snippetcommon/SnippetPVD.h"
#include "../snippetutils/SnippetUtils.h"
#ifdef RENDER_SNIPPET
#include "../snippetrender/SnippetRender.h"
#endif
@Pierre-Terdiman
Pierre-Terdiman / gist:d51dacd0f1edd7d356242e97657b12ed
Created February 17, 2017 16:00
Preview of part 14 - merging my unrolled version (the "safe loop" here) with Ryg's version converted to C++
#ifdef SAFE_VERSION
#define SIMD_OVERLAP_TEST (_mm_movemask_ps(_mm_cmpngt_ps(b, _mm_load_ps(box)))==15)
#else
#define SIMD_OVERLAP_TEST (_mm_movemask_ps(_mm_cmpnle_ps(_mm_load_ps(box), b))==12)
#endif
bool Meshmerizer::CompleteBoxPruning(udword nb, const AABB* list, Container& pairs)
{
// Checkings