This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,8 @@ | ||
include 'sage/ext/stdsage.pxi' | ||
include 'sage/ext/cdefs.pxi' | ||
|
||
from sage.data_structures.bitset cimport bitset_t | ||
|
||
cdef extern from *: | ||
int __builtin_popcountl(unsigned long) | ||
void *memset(void *, int, size_t) | ||
|
||
# Constants from bitset.pxd | ||
cdef extern from *: | ||
int index_shift "(sizeof(unsigned long)==8 ? 6 : 5)" | ||
unsigned long offset_mask "(sizeof(unsigned long)==8 ? 0x3F : 0x1F)" | ||
|
||
|
||
cdef struct binary_matrix_s: | ||
long n_cols | ||
long n_rows | ||
|
||
# Number of "unsigned long" per row | ||
long width | ||
|
||
bitset_t * rows | ||
bitset_t* rows | ||
|
||
ctypedef binary_matrix_s[1] binary_matrix_t | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters