Commit 164ae5a1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 11ffe1eb
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:
......
...@@ -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
......
#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
...@@ -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')),
......
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment