asmap.h raw

   1  // Copyright (c) 2019-2021 The Limenka developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef LIMENKA_UTIL_ASMAP_H
   6  #define LIMENKA_UTIL_ASMAP_H
   7  
   8  #include <util/fs.h>
   9  
  10  #include <cstdint>
  11  #include <vector>
  12  
  13  uint32_t Interpret(const std::vector<bool> &asmap, const std::vector<bool> &ip);
  14  
  15  bool SanityCheckASMap(const std::vector<bool>& asmap, int bits);
  16  
  17  /** Read asmap from provided binary file */
  18  std::vector<bool> DecodeAsmap(fs::path path);
  19  
  20  #endif // LIMENKA_UTIL_ASMAP_H
  21