Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
164ae5a1
Commit
164ae5a1
authored
Dec 03, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
11ffe1eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
3 deletions
+46
-3
CHANGELOG.rst
CHANGELOG.rst
+2
-2
include/wendelin/bug.h
include/wendelin/bug.h
+2
-0
include/wendelin/compat_py2.h
include/wendelin/compat_py2.h
+31
-0
setup.py
setup.py
+1
-1
t/t_utils.h
t/t_utils.h
+10
-0
No files found.
CHANGELOG.rst
View file @
164ae5a1
Wendelin.core change history
Wendelin.core change history
============================
============================
2.0.0
(2019-XX-YY)
0.14 aka 2.0.0.dev1
(2019-XX-YY)
------------------
------------------
--------------
This is a major release that speeds up pagefault handling and reduces
This is a major release that speeds up pagefault handling and reduces
wendelin.core RAM consumption dramatically:
wendelin.core RAM consumption dramatically:
...
...
include/wendelin/bug.h
View file @
164ae5a1
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
// XXX maybe not needed - just go with std assert()
// XXX maybe not needed - just go with std assert()
#define TODO(expr) do { \
#define TODO(expr) do { \
...
@@ -73,6 +74,7 @@ void __bug_errno(const char *, unsigned, const char *)
...
@@ -73,6 +74,7 @@ void __bug_errno(const char *, unsigned, const char *)
void
__bug_fail
(
const
char
*
,
const
char
*
,
unsigned
,
const
char
*
)
void
__bug_fail
(
const
char
*
,
const
char
*
,
unsigned
,
const
char
*
)
__attribute__
((
noreturn
));
__attribute__
((
noreturn
));
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
include/wendelin/compat_py2.h
View file @
164ae5a1
#ifndef _WENDELIN_COMPAT_PY2_H
#ifndef _WENDELIN_COMPAT_PY2_H
#define _WENDELIN_COMPAT_PY2_H
#define _WENDELIN_COMPAT_PY2_H
/* Wendelin. Python2 compatibility
* Copyright (C) 2014-2019 Nexedi SA and Contributors.
* Kirill Smelkov <kirr@nexedi.com>
*
* This program is free software: you can Use, Study, Modify and Redistribute
* it under the terms of the GNU General Public License version 3, or (at your
* option) any later version, as published by the Free Software Foundation.
*
* You can also Link and Combine this program with other software covered by
* the terms of any of the Free Software licenses or any of the Open Source
* Initiative approved licenses and Convey the resulting work. Corresponding
* source of such a combination shall include the source code for all other
* software used.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See COPYING file for full licensing terms.
* See https://www.nexedi.com/licensing for rationale and options.
*/
/* compatibility with python2 */
/* compatibility with python2 */
#include <Python.h>
#include <Python.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* in python2 it was indicating support for memoryview */
/* in python2 it was indicating support for memoryview */
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
# define Py_TPFLAGS_HAVE_NEWBUFFER 0L
# define Py_TPFLAGS_HAVE_NEWBUFFER 0L
...
@@ -76,4 +102,9 @@ static inline PyThreadState * _PyThreadState_UncheckedGet(void)
...
@@ -76,4 +102,9 @@ static inline PyThreadState * _PyThreadState_UncheckedGet(void)
# error "You are using CPython 3.5.X series. Upgrade your CPython to >= 3.5.2 to get _PyThreadState_UncheckedGet() support."
# error "You are using CPython 3.5.X series. Upgrade your CPython to >= 3.5.2 to get _PyThreadState_UncheckedGet() support."
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif
setup.py
View file @
164ae5a1
...
@@ -218,7 +218,7 @@ def readfile(path):
...
@@ -218,7 +218,7 @@ def readfile(path):
setup
(
setup
(
name
=
'wendelin.core'
,
name
=
'wendelin.core'
,
version
=
'
2.0.0.dev1'
,
version
=
'
0.14'
,
# XXX aka 2.0.0.dev1
description
=
'Out-of-core NumPy arrays'
,
description
=
'Out-of-core NumPy arrays'
,
long_description
=
'%s
\
n
----
\
n
\
n
%s'
%
(
long_description
=
'%s
\
n
----
\
n
\
n
%s'
%
(
readfile
(
'README.rst'
),
readfile
(
'CHANGELOG.rst'
)),
readfile
(
'README.rst'
),
readfile
(
'CHANGELOG.rst'
)),
...
...
t/t_utils.h
View file @
164ae5a1
...
@@ -24,6 +24,11 @@
...
@@ -24,6 +24,11 @@
#include <wendelin/bigfile/ram.h>
#include <wendelin/bigfile/ram.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* access to vma memory as byte[] and blk_t[] */
/* access to vma memory as byte[] and blk_t[] */
// XXX BUG on out-of-bound access
// XXX BUG on out-of-bound access
#define b(vma, idx) ( ((volatile uint8_t *)vma->addr_start) [ idx ] )
#define b(vma, idx) ( ((volatile uint8_t *)vma->addr_start) [ idx ] )
...
@@ -47,4 +52,9 @@ RAMLimited *ram_limited_new(RAM *backend, size_t alloc_max);
...
@@ -47,4 +52,9 @@ RAMLimited *ram_limited_new(RAM *backend, size_t alloc_max);
/* current time as float */
/* current time as float */
double
microtime
();
double
microtime
();
#ifdef __cplusplus
}
#endif
#endif
#endif
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