Skip to content

Commit

Permalink
Rename include folder & rename symbols to npymath_*
Browse files Browse the repository at this point in the history
- Rename include folder so that `#include <libnpymath/npymath.h>`
  has to be used.
- Rename npymath_* symbols, so that there are no conflicts with old
  symbols in NumPy
  • Loading branch information
lysnikolaou committed Feb 8, 2024
1 parent a0d3b0d commit 0c3a561
Show file tree
Hide file tree
Showing 24 changed files with 1,197 additions and 1,198 deletions.
2 changes: 1 addition & 1 deletion meson.options
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ option('numpy_build', type: 'boolean', value: false,
description: 'Whether libnpymath is getting built as part of numpy')
option('install_lib', type: 'boolean', value: true,
description: 'Whether to install the libnpymath library')
option('headers_dir', type: 'string', value: 'libnpymath',
option('headers_dir', type: 'string', value: '',
description: 'Installation directory for the libnpymath headers')
option('lib_dir', type: 'string', value: 'libnpymath',
description: 'Installation directory for the libnpymath library')
8 changes: 4 additions & 4 deletions src/arm64_exports.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
* This file is actually compiled as part of the main module.
*/

double npy_asinh(double x) {
double npymath_asinh(double x) {
return asinh(x);
}

double npy_copysign(double y, double x) {
double npymath_copysign(double y, double x) {
return copysign(y, x);
}

double npy_log1p(double x) {
double npymath_log1p(double x) {
return log1p(x);
}

double npy_nextafter(double x, double y) {
double npymath_nextafter(double x, double y) {
return nextafter(x, y);
}

Expand Down
Loading

0 comments on commit 0c3a561

Please sign in to comment.