]> git.sesse.net Git - stockfish/blobdiff - src/nnue/features/feature_set.h
Merge all move generators
[stockfish] / src / nnue / features / feature_set.h
index 975824b658cfc9b1b07c4a4602f11c48164ac49b..d09f9b9474dcdcb9621428a423ef4a1f410b3a5e 100644 (file)
@@ -1,6 +1,6 @@
 /*
   Stockfish, a UCI chess playing engine derived from Glaurung 2.1
-  Copyright (C) 2004-2020 The Stockfish developers (see AUTHORS file)
+  Copyright (C) 2004-2021 The Stockfish developers (see AUTHORS file)
 
   Stockfish is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@
 #include "features_common.h"
 #include <array>
 
-namespace Eval::NNUE::Features {
+namespace Stockfish::Eval::NNUE::Features {
 
   // Class template that represents a list of values
   template <typename T, T... Values>
@@ -36,7 +36,7 @@ namespace Eval::NNUE::Features {
       return value == First || CompileTimeList<T, Remaining...>::Contains(value);
     }
     static constexpr std::array<T, sizeof...(Remaining) + 1>
-        kValues = {{First, Remaining...}};
+        Values = {{First, Remaining...}};
   };
 
   // Base class of feature set
@@ -51,19 +51,19 @@ namespace Eval::NNUE::Features {
 
    public:
     // Hash value embedded in the evaluation file
-    static constexpr std::uint32_t kHashValue = FeatureType::kHashValue;
+    static constexpr std::uint32_t HashValue = FeatureType::HashValue;
     // Number of feature dimensions
-    static constexpr IndexType kDimensions = FeatureType::kDimensions;
+    static constexpr IndexType Dimensions = FeatureType::Dimensions;
     // Maximum number of simultaneously active features
-    static constexpr IndexType kMaxActiveDimensions =
-        FeatureType::kMaxActiveDimensions;
+    static constexpr IndexType MaxActiveDimensions =
+        FeatureType::MaxActiveDimensions;
     // Trigger for full calculation instead of difference calculation
     using SortedTriggerSet =
-        CompileTimeList<TriggerEvent, FeatureType::kRefreshTrigger>;
-    static constexpr auto kRefreshTriggers = SortedTriggerSet::kValues;
+        CompileTimeList<TriggerEvent, FeatureType::RefreshTrigger>;
+    static constexpr auto RefreshTriggers = SortedTriggerSet::Values;
 
   };
 
-}  // namespace Eval::NNUE::Features
+}  // namespace Stockfish::Eval::NNUE::Features
 
 #endif // #ifndef NNUE_FEATURE_SET_H_INCLUDED