Skip to content

Commit

Permalink
Merge pull request #4 from eloj/gcc-clang-wall-fixes
Browse files Browse the repository at this point in the history
More fixes for GCC and Clang warnings.
  • Loading branch information
jbikker authored Nov 1, 2024
2 parents 3dacffd + 756f03b commit 0e135cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ void BVH::BuildAVX( const bvhvec4* vertices, const unsigned int primCount )
// aligned data
ALIGNED( 64 ) __m256 binbox[3 * BVHBINS]; // 768 bytes
ALIGNED( 64 ) __m256 binboxOrig[3 * BVHBINS]; // 768 bytes
ALIGNED( 64 ) unsigned int count[3][BVHBINS] = { 0 }; // 96 bytes
ALIGNED( 64 ) unsigned int count[3][BVHBINS]{}; // 96 bytes
ALIGNED( 64 ) __m256 bestLBox, bestRBox; // 64 bytes
// some constants
static const __m128 max4 = _mm_set1_ps( -1e30f ), half4 = _mm_set1_ps( 0.5f );
Expand Down
4 changes: 2 additions & 2 deletions tiny_bvh_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ int main()
int color = (int)(90.0f / (t + 1));
line[x >> 2] = level[90 - tinybvh_clamp( color, 0, 90 )];
}
line[120] = '\n', line[121] = 0, printf( line );
line[120] = '\n', line[121] = 0, printf( "%s", line );
}
// all done.
printf( "\nscene: %i spheres, %i triangles.\n", spheres, verts / 3 );
return 0;
}
}

0 comments on commit 0e135cc

Please sign in to comment.