Skip to content

Commit

Permalink
skip 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Apr 15, 2024
1 parent ded5ca9 commit f3b9716
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions include/small_gicp/ann/incremental_voxelmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ struct IncrementalVoxelMap {
return num_found;
}

inline size_t calc_index(const size_t voxel_id, const size_t point_id) const { return (voxel_id << point_id_bits) | point_id; }
inline size_t voxel_id(const size_t i) const { return i >> point_id_bits; } ///< Extract the point ID from an index
inline size_t point_id(const size_t i) const { return i & ((1ul << point_id_bits) - 1); } ///< Extract the voxel ID from an index
inline size_t calc_index(const size_t voxel_id, const size_t point_id) const { return (point_id << voxel_id_bits) | voxel_id; }
inline size_t voxel_id(const size_t i) const { return i & ((1ul << voxel_id_bits) - 1); } ///< Extract the voxel ID from an index
inline size_t point_id(const size_t i) const { return i >> voxel_id_bits; } ///< Extract the point ID from an index

public:
static_assert(sizeof(size_t) >= 8, "size_t must be larger than 64-bit");
static constexpr int point_id_bits = 32; ///< Use the first 32 bits for point id
static constexpr int voxel_id_bits = 64 - point_id_bits; ///< Use the remaining bits for voxel id
static constexpr int voxel_id_bits = 32; ///< Use the first 32 bits for voxel id
static constexpr int point_id_bits = 64 - voxel_id_bits; ///< Use the remaining bits for point id
const double inv_leaf_size; ///< Inverse of the voxel size

size_t lru_horizon; ///< LRU horizon size
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ before-all = "choco install eigen -y"
[tool.cibuildwheel]
manylinux-x86_64-image = "manylinux_2_28"
build = "*"
skip = "pp*" # Don't build for PyPy
skip = "pp* *-win32 *-manylinux_i686" # Don't build for PyPy
test-requires = "pytest"
test-command = "cd {project} && pytest {project}/src/example/*.py --color=yes -v"
build-verbosity = 1

0 comments on commit f3b9716

Please sign in to comment.