Home
last modified time | relevance | path

Searched refs:SWAP (Results 1 – 13 of 13) sorted by relevance

/petsc/src/sys/utils/
H A Dsortip.c7 #define SWAP(a, b, t) \ macro
30 if (v[vdx[0]] > v[vdx[1]]) SWAP(vdx[0], vdx[1], tmp); in PetscSortIntWithPermutation_Private()
34 SWAP(vdx[0], vdx[right / 2], tmp); in PetscSortIntWithPermutation_Private()
40 SWAP(vdx[last], vdx[i], tmp); in PetscSortIntWithPermutation_Private()
43 SWAP(vdx[0], vdx[last], tmp); in PetscSortIntWithPermutation_Private()
82 SWAP(idx[k], idx[j], tmp); in PetscSortIntWithPermutation()
101 if (v[vdx[0]] > v[vdx[1]]) SWAP(vdx[0], vdx[1], tmp); in PetscSortRealWithPermutation_Private()
105 SWAP(vdx[0], vdx[right / 2], tmp); in PetscSortRealWithPermutation_Private()
111 SWAP(vdx[last], vdx[i], tmp); in PetscSortRealWithPermutation_Private()
114 SWAP(vdx[0], vdx[last], tmp); in PetscSortRealWithPermutation_Private()
[all …]
H A Dsortd.c10 #define SWAP(a, b, t) \ macro
49 if (v[0] > v[1]) SWAP(v[0], v[1], tmp); in PetscSortReal_Private()
53 SWAP(v[0], v[right / 2], tmp); in PetscSortReal_Private()
59 SWAP(v[last], v[i], tmp); in PetscSortReal_Private()
62 SWAP(v[0], v[last], tmp); in PetscSortReal_Private()
96 SWAP(v[k], v[j], tmp); in PetscSortReal()
/petsc/src/ksp/pc/impls/tfs/
H A Divec.c247 SWAP(*(ar + (size >> 1)), *pi); in PCTFS_ivec_sort()
251 if (*pi > *pj) SWAP(*pi, *pj); in PCTFS_ivec_sort()
252 if (*ar > *pj) SWAP(*ar, *pj); in PCTFS_ivec_sort()
253 else if (*pi > *ar) SWAP(*(ar), *(ar + 1)); in PCTFS_ivec_sort()
268 SWAP(*pi, *pj); in PCTFS_ivec_sort()
272 SWAP(*ar, *pj); in PCTFS_ivec_sort()
335 SWAP(*pi, *pj); in PCTFS_ivec_sort_companion()
336 SWAP(*pi2, *pj2); in PCTFS_ivec_sort_companion()
343 SWAP(*pi, *pj); in PCTFS_ivec_sort_companion()
344 SWAP(*pi2, *pj2); in PCTFS_ivec_sort_companion()
[all …]
H A Dtfs.h78 #define SWAP(a, b) \ macro
/petsc/src/sys/classes/draw/impls/x/
H A Dxtone.c31 #define SWAP(a, b) \ in PetscDrawInterpolatedTriangle_X() macro
39 SWAP(y_1, y2); in PetscDrawInterpolatedTriangle_X()
40 SWAP(t1, t2); in PetscDrawInterpolatedTriangle_X()
41 SWAP(x1, x2); in PetscDrawInterpolatedTriangle_X()
44 SWAP(y_1, y3); in PetscDrawInterpolatedTriangle_X()
45 SWAP(t1, t3); in PetscDrawInterpolatedTriangle_X()
46 SWAP(x1, x3); in PetscDrawInterpolatedTriangle_X()
49 SWAP(y2, y3); in PetscDrawInterpolatedTriangle_X()
50 SWAP(t2, t3); in PetscDrawInterpolatedTriangle_X()
51 SWAP(x2, x3); in PetscDrawInterpolatedTriangle_X()
H A Dximage.c13 #define SWAP(a, b) \ in PetscArgSortPixVal() macro
22 if (v[idx[0]] > v[idx[1]]) SWAP(idx[0], idx[1]); in PetscArgSortPixVal()
26 SWAP(idx[0], idx[right / 2]); in PetscArgSortPixVal()
32 SWAP(idx[last], idx[i]); in PetscArgSortPixVal()
34 SWAP(idx[0], idx[last]); in PetscArgSortPixVal()
37 #undef SWAP in PetscArgSortPixVal()
/petsc/src/mat/utils/
H A Dzerodiag.c8 #define SWAP(a, b) \ macro
100 SWAP(icol[col[prow]], icol[col[repl]]); in MatReorderForNonzeroDiagonal_SeqAIJ()
101 SWAP(col[prow], col[repl]); in MatReorderForNonzeroDiagonal_SeqAIJ()
118 SWAP(icol[col[prow]], icol[col[repl]]); in MatReorderForNonzeroDiagonal_SeqAIJ()
119 SWAP(col[prow], col[repl]); in MatReorderForNonzeroDiagonal_SeqAIJ()
135 SWAP(row[prow], row[k]); in MatReorderForNonzeroDiagonal_SeqAIJ()
/petsc/src/sys/classes/draw/impls/image/
H A Ddrawimage.h129 #define SWAP(a, b) \ in PetscImageDrawTriangle() macro
137 SWAP(x_1, x_2); in PetscImageDrawTriangle()
138 SWAP(y_1, y_2); in PetscImageDrawTriangle()
139 SWAP(t_1, t_2); in PetscImageDrawTriangle()
142 SWAP(x_1, x_3); in PetscImageDrawTriangle()
143 SWAP(y_1, y_3); in PetscImageDrawTriangle()
144 SWAP(t_1, t_3); in PetscImageDrawTriangle()
147 SWAP(x_2, x_3); in PetscImageDrawTriangle()
148 SWAP(y_2, y_3); in PetscImageDrawTriangle()
149 SWAP(t_2, t_3); in PetscImageDrawTriangle()
[all …]
/petsc/src/sys/classes/draw/utils/
H A Dcmap.c238 #define SWAP(a, i, j) \ in PetscDrawUtilitySetCmap() macro
244 SWAP(R, i, j); in PetscDrawUtilitySetCmap()
245 SWAP(G, i, j); in PetscDrawUtilitySetCmap()
246 SWAP(B, i, j); in PetscDrawUtilitySetCmap()
247 #undef SWAP in PetscDrawUtilitySetCmap()
/petsc/src/ksp/ksp/impls/lsqr/
H A Dlsqr.c4 #define SWAP(a, b, c) \ macro
225 SWAP(U1, U, TMP); in KSPSolve_LSQR()
226 SWAP(V1, V, TMP); in KSPSolve_LSQR()
/petsc/src/dm/impls/plex/generators/ctetgen/
H A Dctetgenerate.c15 #define SWAP(a, b) \ in DMPlexInvertCells_CTetgen() macro
21 for (coff = 0; coff < bound; coff += numCorners) SWAP(cells[coff], cells[coff + 1]); in DMPlexInvertCells_CTetgen()
22 #undef SWAP in DMPlexInvertCells_CTetgen()
/petsc/src/dm/impls/plex/generators/tetgen/
H A Dtetgenerate.cxx32 #define SWAP(a, b) \ in DMPlexInvertCells_Tetgen() macro
38 for (coff = 0; coff < bound; coff += numCorners) SWAP(cells[coff], cells[coff + 1]); in DMPlexInvertCells_Tetgen()
39 #undef SWAP in DMPlexInvertCells_Tetgen()
/petsc/include/
H A Dpetscblaslapack_mangle.h133 #define BLASswap_ PETSCBLAS(swap, SWAP)