[416465] | 1 | #undef PR_DELETE_MONOM |
---|
[4a553b] | 2 | #if PR_DELETE_SRC > 0 |
---|
[416465] | 3 | #define PR_DELETE_MONOM(src, r_src) \ |
---|
| 4 | do \ |
---|
| 5 | { \ |
---|
[4a553b] | 6 | PR_NDELETE(&pGetCoeff(src), r_src); \ |
---|
[c232af] | 7 | omFreeBin(src, r_src->PolyBin); \ |
---|
[416465] | 8 | } \ |
---|
| 9 | while (0) |
---|
| 10 | #else |
---|
| 11 | #define PR_DELETE_MONOM(src, r_src) ((void)0) |
---|
| 12 | #endif |
---|
| 13 | |
---|
| 14 | #undef PR_INIT_EVECTOR_COPY |
---|
| 15 | #undef PR_CPY_EVECTOR |
---|
| 16 | #undef PR_ALLOC_MONOM |
---|
| 17 | #if PR_RING_EQUAL > 0 |
---|
| 18 | #undef PR_NO_SORT |
---|
| 19 | #define PR_NO_SORT 1 |
---|
| 20 | #define PR_INIT_EVECTOR_COPY(r_src, r_dest) ((void)0) |
---|
| 21 | #define PR_CPY_EVECTOR(dest, dest_r, src, src_r) \ |
---|
[4e6cf2] | 22 | omMemcpyW(dest->exp, src->exp, dest_r->ExpL_Size) |
---|
[c232af] | 23 | #define PR_ALLOC_MONOM(r) omAllocBin(r->PolyBin) |
---|
[416465] | 24 | #else |
---|
| 25 | #define PR_INIT_EVECTOR_COPY(r_src, r_dest) int _min = min(r_dest->N, r_src->N) |
---|
| 26 | #define PR_CPY_EVECTOR(dest, dest_r, src, src_r) \ |
---|
| 27 | prCopyEvector(dest, dest_r, src, src_r, _min) |
---|
[c232af] | 28 | #define PR_ALLOC_MONOM(r) omAlloc0Bin(r->PolyBin) |
---|
[416465] | 29 | #endif |
---|
| 30 | |
---|
| 31 | #undef PR_NCOPY |
---|
| 32 | #undef PR_NDELETE |
---|
| 33 | #undef PR_NUMBER_SIMPLE_NAME |
---|
[4a553b] | 34 | #if PR_NUMBER_SIMPLE > 0 |
---|
[a4f307a] | 35 | #define PR_NCOPY(n, r) n |
---|
[4a553b] | 36 | #define PR_NDELETE(n, r) ((void)0) |
---|
[416465] | 37 | #define PR_NUMBER_SIMPLE_NAME NSimple |
---|
| 38 | #else |
---|
[a4f307a] | 39 | #define PR_NCOPY(n, r) n_Copy(n,r) |
---|
| 40 | #define PR_NDELETE(n, r) n_Delete(n,r) |
---|
[416465] | 41 | #define PR_NUMBER_SIMPLE_NAME NoNSimple |
---|
| 42 | #endif |
---|
| 43 | |
---|
| 44 | #undef PR_SORT_POLY |
---|
[4a553b] | 45 | #if PR_NO_SORT > 0 |
---|
[3a1db5] | 46 | #define PR_SORT_POLY(p, d_r, s_r) ((void)0) |
---|
[416465] | 47 | #else |
---|
[3a1db5] | 48 | #define PR_SORT_POLY(p, d_r, s_r) p = prSortR(p, d_r, d_r->OrdSgn == s_r->OrdSgn) |
---|
[416465] | 49 | #endif |
---|
| 50 | |
---|