Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 304405f

Browse files
committed
Some spelling corrections.
Some experiments for MSVC.
1 parent ea8a8f4 commit 304405f

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

numpy/core/src/math_c99.inc.src

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,38 @@
1111
*****************************************************************************
1212
*/
1313

14+
#ifndef _MSC_VER
15+
1416
/**begin repeat
1517
* #type = float, double, longdouble#
1618
* #c = f, ,l#
1719
*/
1820

1921
/**begin repeat1
2022
* #kind = sin,cos,tan,sinh,cosh,tanh,fabs,floor,ceil,rint,trunc,sqrt,log10,
21-
* log,exp,expm1,asin,acos,atan,asinh,acosh,atanh,log1p,exp2,log2#
23+
* log,exp,expm1,asin,acos,atan,asinh,acosh,atanh,log1p,exp2,log2,
24+
* logb#
2225
*/
2326

2427
@type@ @kind@@c@(@type@ x);
2528

2629
/**end repeat1**/
2730

2831
/**begin repeat1
29-
* #kind = atan2,hypot,pow,fmod#
32+
* #kind = atan2,hypot,pow,fmod,scalb#
3033
*/
3134

3235
@type@ @kind@@c@(@type@ x, @type@ y);
3336

3437
/**end repeat1**/
3538

3639
@type@ modf@c@(@type@ x, @type@ *iptr);
40+
@type@ ldexp@c@(@type@ x, int iexp);
41+
@type@ frexp@c@(@type@ x, int *iptr);
42+
@type@ scalbn@c@(@type@ x, int pow);
43+
@type@ scalbln@c@(@type@ x, long pow);
44+
45+
#endif
3746

3847
/**end repeat**/
3948
/*

numpy/distutils/command/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ def check_func(self, func,
126126
body = []
127127
if decl:
128128
body.append("int %s (void);" % func)
129-
# Handle MSVC intrisincs: force MS compiler to make a function call.
129+
# Handle MSVC intrinsics: force MS compiler to make a function call.
130130
# Useful to test for some functions when built with optimization on, to
131-
# avoid build error because the intrisinc and our 'fake' test
131+
# avoid build error because the intrinsic and our 'fake' test
132132
# declaration do not match.
133133
body.append("#ifdef _MSC_VER")
134134
body.append("#pragma function(%s)" % func)

0 commit comments

Comments
 (0)