Skip to content

Commit

Permalink
Bypassing __lzcnt obstacle.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Nov 12, 2024
1 parent 5fba272 commit 5d99452
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ THE SOFTWARE.
// include fast AVX BVH builder
#if defined(__x86_64__) || defined(_M_X64)
#define BVH_USEAVX
// #define BVH_USE_LZCNT // for CWBVH traversal test code only
#endif

// library version
Expand Down Expand Up @@ -2565,6 +2566,8 @@ int BVH::Intersect_AltSoA( Ray& ray ) const

#ifdef _MSC_VER

#ifdef BVH_USE_LZCNT

// Intersect_CWBVH:
// Intersect a compressed 8-wide BVH with a ray. For debugging only, not efficient.
// Not technically limited to BVH_USEAVX, but __lzcnt and __popcnt will require
Expand Down Expand Up @@ -2732,6 +2735,8 @@ int BVH::Intersect_CWBVH( Ray& ray ) const
return 0;
}

#endif // BVH_USE_LZCNT

#else

int BVH::Intersect_CWBVH( Ray& ray ) const
Expand Down

0 comments on commit 5d99452

Please sign in to comment.