Skip to content

Commit

Permalink
Unused warning fixes and updated to recommended minimum cmake version (
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto authored Jan 9, 2025
1 parent 686d0ec commit 308e249
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.16)

project( enkiTS
VERSION "1.11"
Expand Down
8 changes: 0 additions & 8 deletions src/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,6 @@ bool TaskScheduler::TryRunTask( uint32_t threadNum_, uint32_t& hintPipeToCheck_i
return false;
}

static inline uint32_t RotateLeft( uint32_t value, int32_t count )
{
return ( value << count ) | ( value >> ( 32 - count ));
}
/* xxHash variant based on documentation on
https://github.com/Cyan4973/xxHash/blob/eec5700f4d62113b47ee548edbc4746f61ffb098/doc/xxhash_spec.md
Expand All @@ -536,10 +532,8 @@ static inline uint32_t RotateLeft( uint32_t value, int32_t count )
*/
static inline uint32_t Hash32( uint32_t in_ )
{
static const uint32_t PRIME32_1 = 2654435761U; // 0b10011110001101110111100110110001
static const uint32_t PRIME32_2 = 2246822519U; // 0b10000101111010111100101001110111
static const uint32_t PRIME32_3 = 3266489917U; // 0b11000010101100101010111000111101
static const uint32_t PRIME32_4 = 668265263U; // 0b00100111110101001110101100101111
static const uint32_t PRIME32_5 = 374761393U; // 0b00010110010101100110011110110001
static const uint32_t SEED = 0; // can configure seed if needed

Expand Down Expand Up @@ -820,7 +814,6 @@ void TaskScheduler::SplitAndAddTask( uint32_t threadNum_, SubTaskSet subTask_, u
{
int32_t numAdded = 0;
int32_t numNewTasksSinceNotification = 0;
int32_t numRun = 0;

int32_t upperBoundNumToAdd = 2 + (int32_t)( ( subTask_.partition.end - subTask_.partition.start ) / rangeToSplit_ );

Expand Down Expand Up @@ -848,7 +841,6 @@ void TaskScheduler::SplitAndAddTask( uint32_t threadNum_, SubTaskSet subTask_, u
subTask_.partition.start = taskToAdd.partition.end;
}
taskToAdd.pTask->ExecuteRange( taskToAdd.partition, threadNum_ );
++numRun;
}
}
int32_t countToRemove = upperBoundNumToAdd - numAdded;
Expand Down

0 comments on commit 308e249

Please sign in to comment.