PLASMA
2.8.0
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
Main Page
Modules
Data Types List
primes.h
1
19
#ifndef PRIMES_H
20
#define PRIMES_H
21
22
#define IMBALANCE_THRESHOLD 10
23
#define PWR_MAXSIZE 32
24
#define PRIME_MAXSIZE 10
25
#define SIZE_MG 1024
26
#define SIZE_LEADERS 1023
27
28
#ifndef min
29
#define min(a,b) ((a<b)?a:b)
30
#endif
31
32
#ifndef max
33
#define max(a,b) ((a>b)?a:b)
34
#endif
35
43
struct
primedec
44
{
45
int
p;
46
int
e;
47
int
pe;
48
};
49
50
typedef
struct
primedec
primedec_t
;
51
52
int
lcm(
int
a,
int
b);
53
int
gcd(
int
a,
int
b);
54
int
modpow(
int
x,
int
n,
int
m);
55
void
factor(
int
n,
primedec_t
*pr,
int
*nf);
56
57
int64_t maxval(
int
n,
int
*T);
58
int64_t sum (
int
n,
int
*T);
59
60
#endif
/* PRIMES_H */
primedec
Definition:
primes.h:43
core_blas
primes.h
Generated on Fri Apr 1 2016 11:06:14 for PLASMA by
1.8.9.1