Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
excit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
excit
Commits
19c68fef
Commit
19c68fef
authored
Nov 09, 2018
by
Brice Videau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed excit_index_t and replaced it with its native type ssize_t.
parent
6cbc225a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
819 additions
and
967 deletions
+819
-967
src/excit.c
src/excit.c
+615
-752
src/excit.h
src/excit.h
+24
-37
tests/excit.c
tests/excit.c
+180
-178
No files found.
src/excit.c
View file @
19c68fef
This diff is collapsed.
Click to expand it.
src/excit.h
View file @
19c68fef
...
...
@@ -21,51 +21,38 @@ enum excit_error_e {
typedef
struct
excit_s
*
excit_t
;
typedef
ssize_t
excit_index_t
;
excit_t
excit_alloc
(
enum
excit_type_e
type
);
void
excit_free
(
excit_t
iterator
);
excit_t
excit_dup
(
const
excit_t
iterator
);
excit_t
excit_dup
(
const
excit_t
it
);
void
excit_free
(
excit_t
it
);
int
excit_type
(
excit_t
it
erator
,
enum
excit_type_e
*
type
);
int
excit_dimension
(
excit_t
it
erator
,
excit_index
_t
*
dimension
);
int
excit_type
(
excit_t
it
,
enum
excit_type_e
*
type
);
int
excit_dimension
(
excit_t
it
,
ssize
_t
*
dimension
);
int
excit_next
(
excit_t
iterator
,
excit_index_t
*
indexes
);
int
excit_peek
(
const
excit_t
iterator
,
excit_index_t
*
indexes
);
int
excit_size
(
const
excit_t
iterator
,
excit_index_t
*
size
);
int
excit_rewind
(
excit_t
iterator
);
int
excit_split
(
const
excit_t
iterator
,
excit_index_t
n
,
excit_t
*
results
);
int
excit_nth
(
const
excit_t
iterator
,
excit_index_t
n
,
excit_index_t
*
indexes
);
int
excit_n
(
const
excit_t
iterator
,
const
excit_index_t
*
indexes
,
excit_index_t
*
n
);
int
excit_pos
(
const
excit_t
iterator
,
excit_index_t
*
n
);
int
excit_next
(
excit_t
it
,
ssize_t
*
indexes
);
int
excit_peek
(
const
excit_t
it
,
ssize_t
*
indexes
);
int
excit_size
(
const
excit_t
it
,
ssize_t
*
size
);
int
excit_rewind
(
excit_t
it
);
int
excit_split
(
const
excit_t
it
,
ssize_t
n
,
excit_t
*
results
);
int
excit_nth
(
const
excit_t
it
,
ssize_t
n
,
ssize_t
*
indexes
);
int
excit_n
(
const
excit_t
it
,
const
ssize_t
*
indexes
,
ssize_t
*
n
);
int
excit_pos
(
const
excit_t
it
,
ssize_t
*
n
);
int
excit_skip
(
excit_t
iterator
);
int
excit_cyclic_next
(
excit_t
iterator
,
excit_index_t
*
indexes
,
int
*
looped
);
int
excit_skip
(
excit_t
it
);
int
excit_cyclic_next
(
excit_t
it
,
ssize_t
*
indexes
,
int
*
looped
);
int
excit_range_init
(
excit_t
iterator
,
excit_index_t
first
,
excit_index_t
last
,
excit_index_t
step
);
int
excit_range_init
(
excit_t
it
,
ssize_t
first
,
ssize_t
last
,
ssize_t
step
);
int
excit_cons_init
(
excit_t
iterator
,
excit_t
src
,
excit_index_t
n
);
int
excit_cons_init
(
excit_t
it
,
excit_t
src
,
ssize_t
n
);
int
excit_repeat_init
(
excit_t
iterator
,
excit_t
src
,
excit_index_t
n
);
int
excit_repeat_init
(
excit_t
it
,
excit_t
src
,
ssize_t
n
);
int
excit_hilbert2d_init
(
excit_t
it
erator
,
excit_index
_t
order
);
int
excit_hilbert2d_init
(
excit_t
it
,
ssize
_t
order
);
int
excit_product_add
(
excit_t
iterator
,
excit_t
added_iterator
);
int
excit_product_add_copy
(
excit_t
iterator
,
excit_t
added_iterator
);
int
excit_product_count
(
const
excit_t
iterator
,
excit_index_t
*
count
);
int
excit_product_split_dim
(
const
excit_t
iterator
,
excit_index_t
dim
,
excit_index_t
n
,
excit_t
*
results
);
int
excit_product_add
(
excit_t
it
,
excit_t
added_it
);
int
excit_product_add_copy
(
excit_t
it
,
excit_t
added_it
);
int
excit_product_count
(
const
excit_t
it
,
ssize_t
*
count
);
int
excit_product_split_dim
(
const
excit_t
it
,
ssize_t
dim
,
ssize_t
n
,
excit_t
*
results
);
int
excit_slice_init
(
excit_t
iterator
,
excit_t
src
,
excit_t
indexer
);
int
excit_slice_init
(
excit_t
it
,
excit_t
src
,
excit_t
indexer
);
#endif
tests/excit.c
View file @
19c68fef
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment