Skip to content

Commit 795eb7d

Browse files
authored
remove unused functions (#87)
1 parent 35efea5 commit 795eb7d

File tree

2 files changed

+0
-129
lines changed

2 files changed

+0
-129
lines changed

mkl_umath/src/mkl_umath_loops.c.src

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -255,39 +255,6 @@ mkl_umath_@TYPE@_sqrt(char **args, const npy_intp *dimensions, const npy_intp *s
255255

256256
/**end repeat**/
257257

258-
/**begin repeat
259-
* Float types
260-
* #type = npy_float, npy_double#
261-
* #TYPE = FLOAT, DOUBLE#
262-
* #c = s, d#
263-
* #scalarf = (1.0f)/sqrtf, (1.0)/sqrt#
264-
*/
265-
266-
void
267-
mkl_umath_@TYPE@_invsqrt(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
268-
{
269-
const int contig = IS_UNARY_CONT(@type@, @type@);
270-
const int disjoint_or_same = DISJOINT_OR_SAME(args[0], args[1], dimensions[0], sizeof(@type@));
271-
const int can_vectorize = contig && disjoint_or_same;
272-
273-
if(can_vectorize && dimensions[0] > VML_TRANSCEDENTAL_THRESHOLD)
274-
{
275-
CHUNKED_VML_CALL2(v@c@InvSqrt, dimensions[0], @type@, args[0], args[1]);
276-
/* v@c@InvSqrt(dimensions[0], (@type@*) args[0], (@type@*) args[1]); */
277-
} else {
278-
UNARY_LOOP_DISPATCH(
279-
@type@, @type@
280-
,
281-
can_vectorize
282-
,
283-
const @type@ in1 = *(@type@ *)ip1;
284-
*(@type@ *)op1 = @scalarf@(in1);
285-
)
286-
}
287-
}
288-
289-
/**end repeat**/
290-
291258
/**begin repeat
292259
* Float types
293260
* #type = npy_float, npy_double#
@@ -400,39 +367,6 @@ mkl_umath_@TYPE@_expm1(char **args, const npy_intp *dimensions, const npy_intp *
400367

401368
/**end repeat**/
402369

403-
/**begin repeat
404-
* Float types
405-
* #type = npy_float, npy_double#
406-
* #TYPE = FLOAT, DOUBLE#
407-
* #c = s, d#
408-
* #scalarf = erff, erf#
409-
*/
410-
411-
void
412-
mkl_umath_@TYPE@_erf(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
413-
{
414-
const int contig = IS_UNARY_CONT(@type@, @type@);
415-
const int disjoint_or_same = DISJOINT_OR_SAME(args[0], args[1], dimensions[0], sizeof(@type@));
416-
const int can_vectorize = contig && disjoint_or_same;
417-
418-
if( can_vectorize && dimensions[0] > VML_TRANSCEDENTAL_THRESHOLD)
419-
{
420-
CHUNKED_VML_CALL2(v@c@Erf, dimensions[0], @type@, args[0], args[1]);
421-
/* v@c@Erf(dimensions[0], (@type@*) args[0], (@type@*) args[1]); */
422-
} else {
423-
UNARY_LOOP_DISPATCH(
424-
@type@, @type@
425-
,
426-
can_vectorize
427-
,
428-
const @type@ in1 = *(@type@ *)ip1;
429-
*(@type@ *)op1 = @scalarf@(in1);
430-
)
431-
}
432-
}
433-
434-
/**end repeat**/
435-
436370
/**begin repeat
437371
* Float types
438372
* #type = npy_float, npy_double#
@@ -2189,14 +2123,6 @@ mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_i
21892123
}
21902124
}
21912125

2192-
void
2193-
mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data))
2194-
{
2195-
OUTPUT_LOOP {
2196-
*((@type@ *)op1) = 1;
2197-
}
2198-
}
2199-
22002126
void
22012127
mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
22022128
{
@@ -2351,8 +2277,6 @@ mkl_umath_@TYPE@_ldexp_long(char **args, const npy_intp *dimensions, const npy_i
23512277
}
23522278
#endif
23532279

2354-
#define mkl_umath_@TYPE@_true_divide mkl_umath_@TYPE@_divide
2355-
23562280
/**end repeat**/
23572281

23582282
/*
@@ -2651,15 +2575,6 @@ mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_i
26512575
}
26522576
}
26532577

2654-
void
2655-
mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data))
2656-
{
2657-
OUTPUT_LOOP {
2658-
((@ftype@ *)op1)[0] = 1;
2659-
((@ftype@ *)op1)[1] = 0;
2660-
}
2661-
}
2662-
26632578
void
26642579
mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func)) {
26652580
const int contig = IS_UNARY_CONT(@type@, @type@);
@@ -2703,16 +2618,6 @@ mkl_umath_@TYPE@_absolute(char **args, const npy_intp *dimensions, const npy_int
27032618
}
27042619
}
27052620

2706-
void
2707-
mkl_umath_@TYPE@__arg(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
2708-
{
2709-
UNARY_LOOP {
2710-
const @ftype@ in1r = ((@ftype@ *)ip1)[0];
2711-
const @ftype@ in1i = ((@ftype@ *)ip1)[1];
2712-
*((@ftype@ *)op1) = atan2@c@(in1i, in1r);
2713-
}
2714-
}
2715-
27162621
void
27172622
mkl_umath_@TYPE@_sign(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func))
27182623
{
@@ -2812,8 +2717,6 @@ mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp
28122717
}
28132718
/**end repeat1**/
28142719

2815-
#define mkl_umath_@TYPE@_true_divide mkl_umath_@TYPE@_divide
2816-
28172720
/**end repeat**/
28182721

28192722
#undef CGE

mkl_umath/src/mkl_umath_loops.h.src

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ MKL_UMATH_API
5757
void
5858
mkl_umath_@TYPE@_sqrt(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
5959

60-
MKL_UMATH_API
61-
void
62-
mkl_umath_@TYPE@_invsqrt(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
63-
6460
MKL_UMATH_API
6561
void
6662
mkl_umath_@TYPE@_exp(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
@@ -73,10 +69,6 @@ MKL_UMATH_API
7369
void
7470
mkl_umath_@TYPE@_expm1(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
7571

76-
MKL_UMATH_API
77-
void
78-
mkl_umath_@TYPE@_erf(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
79-
8072
MKL_UMATH_API
8173
void
8274
mkl_umath_@TYPE@_log(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
@@ -221,10 +213,6 @@ void
221213
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
222214
/**end repeat1**/
223215

224-
MKL_UMATH_API
225-
void
226-
mkl_umath_@TYPE@_floor_divide(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
227-
228216
MKL_UMATH_API
229217
void
230218
mkl_umath_@TYPE@_remainder(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
@@ -241,10 +229,6 @@ MKL_UMATH_API
241229
void
242230
mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
243231

244-
MKL_UMATH_API
245-
void
246-
mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
247-
248232
MKL_UMATH_API
249233
void
250234
mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
@@ -287,8 +271,6 @@ void
287271
mkl_umath_@TYPE@_ldexp_long(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
288272
#endif
289273

290-
#define mkl_umath_@TYPE@_true_divide mkl_umath_@TYPE@_divide
291-
292274
/**end repeat**/
293275

294276
/*
@@ -326,10 +308,6 @@ MKL_UMATH_API
326308
void
327309
mkl_umath_@TYPE@_divide(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
328310

329-
MKL_UMATH_API
330-
void
331-
mkl_umath_@TYPE@_floor_divide(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
332-
333311

334312
/**begin repeat1
335313
* arithmetic
@@ -350,10 +328,6 @@ MKL_UMATH_API
350328
void
351329
mkl_umath_@TYPE@_reciprocal(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
352330

353-
MKL_UMATH_API
354-
void
355-
mkl_umath_@TYPE@__ones_like(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
356-
357331
MKL_UMATH_API
358332
void
359333
mkl_umath_@TYPE@_conjugate(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
@@ -362,10 +336,6 @@ MKL_UMATH_API
362336
void
363337
mkl_umath_@TYPE@_absolute(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
364338

365-
MKL_UMATH_API
366-
void
367-
mkl_umath_@TYPE@__arg(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
368-
369339
MKL_UMATH_API
370340
void
371341
mkl_umath_@TYPE@_sign(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(data));
@@ -379,8 +349,6 @@ void
379349
mkl_umath_@TYPE@_@kind@(char **args, const npy_intp *dimensions, const npy_intp *steps, void *NPY_UNUSED(func));
380350
/**end repeat1**/
381351

382-
#define mkl_umath_@TYPE@_true_divide mkl_umath_@TYPE@_divide
383-
384352
/**end repeat**/
385353

386354
#undef CGE

0 commit comments

Comments
 (0)