~ubuntu-branches/ubuntu/warty/petsc/warty

« back to all changes in this revision

Viewing changes to src/contrib/libtfs/bit_mask.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2004-06-07 13:41:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040607134143-92p586zrauvie0le
Tags: 2.2.0-2
* Upstream patch level 2.
* New PETSC_BOPT_EXTRA option for different BOPT and lib names, with _c++
  symlinks only for plain and single (closes: #249617).
* New DEBIAN_DIST=contrib option to link with hypre, parmetis (closes:
  #249619).
* Combined petsc-c and petsc-fortran substvars into petsc-compilers.
* Extra quote in -dev prerm eliminates "too many arguments" problem.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*$Id: bit_mask.h,v 1.2 2001/04/10 19:37:38 bsmith Exp $*/
2
 
/********************************bit_mask.h************************************
3
 
SPARSE GATHER-SCATTER PACKAGE: bit_mask bss_malloc ivec error comm gs queue
4
 
 
5
 
Author: Henry M. Tufo III
6
 
 
7
 
e-mail: hmt@cs.brown.edu
8
 
 
9
 
snail-mail:
10
 
Division of Applied Mathematics
11
 
Brown University
12
 
Providence, RI 02912
13
 
 
14
 
Last Modification: 
15
 
11.21.97
16
 
*********************************bit_mask.h***********************************/
17
 
 
18
 
/********************************bit_mask.h************************************
19
 
File Description:
20
 
-----------------
21
 
 
22
 
*********************************bit_mask.h***********************************/
23
 
#ifndef _bit_mask_h
24
 
#define _bit_mask_h
25
 
 
26
 
 
27
 
/********************************bit_mask.h************************************
28
 
Function:
29
 
 
30
 
Input : 
31
 
Output: 
32
 
Return: 
33
 
Description: 
34
 
Usage: 
35
 
*********************************bit_mask.h***********************************/
36
 
extern int div_ceil(int numin, int denom);
37
 
extern void set_bit_mask(int *bm, int len, int val);
38
 
extern int len_bit_mask(int num_items);
39
 
extern int ct_bits(char *ptr, int n);
40
 
extern void bm_to_proc(char *ptr, int p_mask, int *msg_list);
41
 
extern int len_buf(int item_size, int num_items);
42
 
 
43
 
#endif
44