/[gcl]/gcl/o/bitop.c
ViewVC logotype

Diff of /gcl/o/bitop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by camm, Sat Jul 20 07:10:55 2002 UTC revision 1.3 by camm, Sat Feb 15 00:38:28 2003 UTC
# Line 1  Line 1 
   
1  #include "include.h"  #include "include.h"
2  void  /* static void */
3  get_mark_bit(void)  /* get_mark_bit(void) */
4  {error("get_mark_bit called");}  /* {error("get_mark_bit called");} */
5  void  /* static void */
6  set_mark_bit(void)  /* set_mark_bit(void) */
7  {error("set_mark_bit called");}  /* {error("set_mark_bit called");} */
8  void  /* static void */
9  get_set_mark_bit(void)  /* get_set_mark_bit(void) */
10  {error("get_set_mark_bit called");}  /* {error("get_set_mark_bit called");} */
11    
12    
13  /*  /*
14    These have all been replaced by macros    These have all been replaced by macros
15    
16  extern int *mark_table;  extern int *mark_table;
17    static
18  get_mark_bit(x)  get_mark_bit(x)
19  int x;  int x;
20  {  {
# Line 24  int x; Line 23  int x;
23          y = (*(mark_table+(x/4/32)) >> (x/4%32)) & 1;          y = (*(mark_table+(x/4/32)) >> (x/4%32)) & 1;
24          return(y);          return(y);
25  }  }
26    static
27  set_mark_bit(x)  set_mark_bit(x)
28  int x;  int x;
29  {  {
# Line 34  int x; Line 33  int x;
33          y = (*(mark_table+(x/4/32))) | y;          y = (*(mark_table+(x/4/32))) | y;
34          *(mark_table+ (x/4/32))=y;          *(mark_table+ (x/4/32))=y;
35  }  }
36    static
37  get_set_mark_bit(x)  get_set_mark_bit(x)
38  int x;  int x;
39  {  {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26