Lines Matching refs:ptr
18 PetscErrorCode PCTFS_bm_to_proc(char *ptr, PetscInt p_mask, PetscInt *msg_list) in PCTFS_bm_to_proc() argument
25 ptr += (p_mask - 1); in PCTFS_bm_to_proc()
28 if (*ptr & BIT_0) { in PCTFS_bm_to_proc()
32 if (*ptr & BIT_1) { in PCTFS_bm_to_proc()
36 if (*ptr & BIT_2) { in PCTFS_bm_to_proc()
40 if (*ptr & BIT_3) { in PCTFS_bm_to_proc()
44 if (*ptr & BIT_4) { in PCTFS_bm_to_proc()
48 if (*ptr & BIT_5) { in PCTFS_bm_to_proc()
52 if (*ptr & BIT_6) { in PCTFS_bm_to_proc()
56 if (*ptr & BIT_7) { in PCTFS_bm_to_proc()
60 ptr--; in PCTFS_bm_to_proc()
67 PetscInt PCTFS_ct_bits(char *ptr, PetscInt n) in PCTFS_ct_bits() argument
72 if (*ptr & 128) tmp++; in PCTFS_ct_bits()
73 if (*ptr & 64) tmp++; in PCTFS_ct_bits()
74 if (*ptr & 32) tmp++; in PCTFS_ct_bits()
75 if (*ptr & 16) tmp++; in PCTFS_ct_bits()
76 if (*ptr & 8) tmp++; in PCTFS_ct_bits()
77 if (*ptr & 4) tmp++; in PCTFS_ct_bits()
78 if (*ptr & 2) tmp++; in PCTFS_ct_bits()
79 if (*ptr & 1) tmp++; in PCTFS_ct_bits()
80 ptr++; in PCTFS_ct_bits()