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
1cd36fe0
Commit
1cd36fe0
authored
Nov 08, 2018
by
Brice Videau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed citerator to excit.
parent
34e5a4b6
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1143 additions
and
476 deletions
+1143
-476
configure.ac
configure.ac
+1
-1
src/Makefile.am
src/Makefile.am
+2
-2
src/citerators.h
src/citerators.h
+0
-62
src/excit.c
src/excit.c
+410
-410
src/excit.h
src/excit.h
+62
-0
tests/Makefile.am
tests/Makefile.am
+1
-1
tests/excit.c
tests/excit.c
+667
-0
No files found.
configure.ac
View file @
1cd36fe0
...
...
@@ -2,7 +2,7 @@
AC_INIT([excit],[0.0.1],[brice.videau@imag.fr])
# are we in the right source dir ?
AC_CONFIG_SRCDIR([src/
citerators
.h])
AC_CONFIG_SRCDIR([src/
excit
.h])
# build artefacts in separate dir
AC_CONFIG_AUX_DIR([m4])
...
...
src/Makefile.am
View file @
1cd36fe0
lib_LTLIBRARIES
=
libexcit.la
libexcit_la_SOURCES
=
citerators.c citerators
.h
libexcit_la_SOURCES
=
excit.c excit
.h
include_HEADERS
=
citerators
.h
include_HEADERS
=
excit
.h
src/citerators.h
deleted
100644 → 0
View file @
34e5a4b6
#ifndef CITERATORS_H
#define CITERATORS_H 1
enum
citerator_type_e
{
CITERATOR_RANGE
,
CITERATOR_CONS
,
CITERATOR_REPEAT
,
CITERATOR_HILBERT2D
,
CITERATOR_PRODUCT
,
CITERATOR_SLICE
};
typedef
struct
citerator_s
*
citerator_t
;
typedef
int
citerator_index_t
;
citerator_t
citerator_alloc
(
enum
citerator_type_e
type
);
void
citerator_free
(
citerator_t
iterator
);
citerator_t
citerator_dup
(
const
citerator_t
iterator
);
int
citerator_type
(
citerator_t
iterator
,
enum
citerator_type_e
*
type
);
int
citerator_dimension
(
citerator_t
iterator
,
citerator_index_t
*
dimension
);
int
citerator_next
(
citerator_t
iterator
,
citerator_index_t
*
indexes
);
int
citerator_peek
(
const
citerator_t
iterator
,
citerator_index_t
*
indexes
);
int
citerator_size
(
const
citerator_t
iterator
,
citerator_index_t
*
size
);
int
citerator_rewind
(
citerator_t
iterator
);
int
citerator_split
(
const
citerator_t
iterator
,
citerator_index_t
n
,
citerator_t
*
results
);
int
citerator_nth
(
const
citerator_t
iterator
,
citerator_index_t
n
,
citerator_index_t
*
indexes
);
int
citerator_n
(
const
citerator_t
iterator
,
const
citerator_index_t
*
indexes
,
citerator_index_t
*
n
);
int
citerator_pos
(
const
citerator_t
iterator
,
citerator_index_t
*
n
);
int
citerator_skip
(
citerator_t
iterator
);
int
citerator_cyclic_next
(
citerator_t
iterator
,
citerator_index_t
*
indexes
,
int
*
looped
);
int
citerator_range_init
(
citerator_t
iterator
,
citerator_index_t
first
,
citerator_index_t
last
,
citerator_index_t
step
);
int
citerator_cons_init
(
citerator_t
iterator
,
citerator_t
src
,
citerator_index_t
n
);
int
citerator_repeat_init
(
citerator_t
iterator
,
citerator_t
src
,
citerator_index_t
n
);
int
citerator_hilbert2d_init
(
citerator_t
iterator
,
citerator_index_t
order
);
int
citerator_product_add
(
citerator_t
iterator
,
citerator_t
added_iterator
);
int
citerator_product_add_copy
(
citerator_t
iterator
,
citerator_t
added_iterator
);
int
citerator_product_count
(
const
citerator_t
iterator
,
citerator_index_t
*
count
);
int
citerator_product_split_dim
(
const
citerator_t
iterator
,
citerator_index_t
dim
,
citerator_index_t
n
,
citerator_t
*
results
);
int
citerator_slice_init
(
citerator_t
iterator
,
citerator_t
src
,
citerator_t
indexer
);
#endif
src/
citerators
.c
→
src/
excit
.c
View file @
1cd36fe0
This diff is collapsed.
Click to expand it.
src/excit.h
0 → 100644
View file @
1cd36fe0
#ifndef EXCIT_H
#define EXCIT_H 1
enum
excit_type_e
{
EXCIT_RANGE
,
EXCIT_CONS
,
EXCIT_REPEAT
,
EXCIT_HILBERT2D
,
EXCIT_PRODUCT
,
EXCIT_SLICE
};
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
);
int
excit_type
(
excit_t
iterator
,
enum
excit_type_e
*
type
);
int
excit_dimension
(
excit_t
iterator
,
excit_index_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_skip
(
excit_t
iterator
);
int
excit_cyclic_next
(
excit_t
iterator
,
excit_index_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_cons_init
(
excit_t
iterator
,
excit_t
src
,
excit_index_t
n
);
int
excit_repeat_init
(
excit_t
iterator
,
excit_t
src
,
excit_index_t
n
);
int
excit_hilbert2d_init
(
excit_t
iterator
,
excit_index_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_slice_init
(
excit_t
iterator
,
excit_t
src
,
excit_t
indexer
);
#endif
tests/Makefile.am
View file @
1cd36fe0
...
...
@@ -3,7 +3,7 @@ AM_COLOR_TESTS = yes
AM_CFLAGS
=
-I
$(top_srcdir)
/src
AM_LDFLAGS
=
../src/libexcit.la
UNIT_TESTS
=
citerators
UNIT_TESTS
=
excit
# all tests
check_PROGRAMS
=
$(UNIT_TESTS)
...
...
tests/
citerators
.c
→
tests/
excit
.c
View file @
1cd36fe0
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