Added CMK_IS_HETERO to all the net-all versions.
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Thu, 24 Oct 1996 19:40:21 +0000 (19:40 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Thu, 24 Oct 1996 19:40:21 +0000 (19:40 +0000)
26 files changed:
src/arch/cm5/conv-mach.h
src/arch/exemplar/conv-mach.h
src/arch/ncube2/conv-mach.h
src/arch/net-aix-ppc/conv-mach.h
src/arch/net-hp-cc/conv-mach.h
src/arch/net-hp/conv-mach.h
src/arch/net-sol-cc/conv-mach.h
src/arch/net-sol/conv-mach.h
src/arch/net-sun/conv-mach.h
src/arch/net/machine.c
src/arch/paragon-osf/conv-mach.h
src/arch/paragon-sunmos/conv-mach.h
src/arch/sim-hp/conv-mach.h
src/arch/sim-rs6k/conv-mach.h
src/arch/sim-sol/conv-mach.h
src/arch/sim-sun/conv-mach.h
src/arch/sp1/conv-mach.h
src/arch/t3d/conv-mach.h
src/arch/tcp-hp/conv-mach.h
src/arch/tcp-sol/conv-mach.h
src/arch/uth-hp/conv-mach.h
src/arch/uth-rs6k/conv-mach.h
src/arch/uth-sol-cc/conv-mach.h
src/arch/uth-sol/conv-mach.h
src/arch/uth-sun/conv-mach.h
src/conv-core/converse.h

index 1bd5fd047e4fecc170bf508a7b675e683634cf3d..09626b80bcb333906727925c10a8c269d7dfd7ab 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.21  1996-08-08 20:16:53  jyelon
+ * Revision 2.22  1996-10-24 19:40:23  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.21  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.20  1996/08/02 21:14:19  milind
@@ -65,6 +68,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "cm5"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 8567a11daafc20c41bfae53065c9536d78458625..e57f5749844868e60e61164f3079203602cd77a0 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.20  1996-08-08 20:16:53  jyelon
+ * Revision 2.21  1996-10-24 19:40:23  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.20  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.19  1996/07/24 22:06:49  milind
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "exemplar"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 3e32273812e0bc734f66a31ab70a6cf3ed20f9ac..73e04bce5569d17199e44462ab9e0a85724e2276 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.20  1996-08-08 20:16:53  jyelon
+ * Revision 2.21  1996-10-24 19:40:24  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.20  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.19  1996/07/16 17:23:37  jyelon
@@ -61,6 +64,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "ncube2"
 
 #define CMK_MALLOC_USE_GNU                                 0
index cc28afef230946b4722ccabe8513a14ccbbbf51e..90a808bb968bf9d8055413fa47f3c9f9ce37efd4 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.21  1996-08-08 20:16:53  jyelon
+ * Revision 1.22  1996-10-24 19:40:25  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.21  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.20  1996/07/19 17:07:37  jyelon
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "net-rs6k"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 9e096b806c7d1cb5fa3c1d6840a6a43f73f0218a..811b067943e9b53eab6f9910061ac2f13350775c 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.8  1996-10-22 19:08:32  milind
+ * Revision 1.9  1996-10-24 19:40:25  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.8  1996/10/22 19:08:32  milind
  * Added +z option to produce position independent code.
  * Needed for parallel perl.
  *
@@ -65,6 +68,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "net-hp-cc"
 
 #define CMK_MALLOC_USE_GNU                                 0
index e8f758fbafa9c1927c8fe8126d3ea32e196b1577..4c57b170a5fe4dddcb78b4f1847439bff9ec6456 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.25  1996-08-08 20:16:53  jyelon
+ * Revision 2.26  1996-10-24 19:40:24  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.25  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.24  1996/07/19 17:07:37  jyelon
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             1
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "net-hp"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 6ac13816c98dbb0af760d8dcfe13d6e7e43132f8..44adb90fd3f710ffb7147acbde8c15adf30fc3e1 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1996-10-09 19:46:22  milind
+ * Revision 1.2  1996-10-24 19:40:26  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.1  1996/10/09 19:46:22  milind
  * uses CC and cc instead of g++ and gcc.
  *
  * Revision 2.24  1996/08/08 20:16:53  jyelon
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "net-sol"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 9b04fa7e73ccb323f3cc7d7d427e33df7e5fde4b..efc77395decfc2ee1da2814a4fa71857eee0cbd3 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.24  1996-08-08 20:16:53  jyelon
+ * Revision 2.25  1996-10-24 19:40:26  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.24  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.23  1996/07/16 17:23:37  jyelon
@@ -61,6 +64,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "net-sol"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 51ae494593cbab333701182e76d2697e6bbf8c18..614b5c9c270bb2e9454931ce551b2a8d12a76b9a 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.23  1996-08-08 20:16:53  jyelon
+ * Revision 2.24  1996-10-24 19:40:27  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.23  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.22  1996/08/08 17:18:28  milind
@@ -67,6 +70,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "net-sun"
 
 #define CMK_MALLOC_USE_GNU                                 0
index df66a0bf59ae0ed939fb6808f8ef9c2ae15613d4..013d65f9462dfd37f997f2b293125bc63c7eb7db 100644 (file)
@@ -1042,10 +1042,12 @@ static void send_ack(packet,penum)
      int penum;
 {
   NumSends++;
+#if CMK_IS_HETERO
   packet->seq_num = htonl(packet->seq_num);
   packet->PeNum = htonl(packet->PeNum);
   packet->pktidx = htonl(packet->pktidx);
   packet->rem_size = htonl(packet->rem_size);
+#endif
   my_sendto(data_skt, (char *)packet, sizeof(DATA_HDR), 0, 
     (struct sockaddr *)&addr_table[penum],
     sizeof(struct sockaddr_in));
@@ -1194,10 +1196,12 @@ int destpe;
 
     NumSends++ ;
     act_size=(packet->rem_size<MAXDSIZE)?packet->rem_size:MAXDSIZE;
+#if CMK_IS_HETERO
     packet->seq_num = htonl(packet->seq_num);
     packet->PeNum = htonl(packet->PeNum);
     packet->pktidx = htonl(packet->pktidx);
     packet->rem_size = htonl(packet->rem_size);
+#endif
     bytes_sent = my_sendto(data_skt, (char *)packet,
           act_size + sizeof(DATA_HDR),
           0, (struct sockaddr *)&addr_table[destpe],
@@ -1271,10 +1275,12 @@ static int RetransmitPackets()
         NumRetransmits++ ;
         NumSends++;
         act_size=(packet->rem_size<MAXDSIZE)?packet->rem_size:MAXDSIZE;
+#if CMK_IS_HETERO
         packet->seq_num = htonl(packet->seq_num);
         packet->PeNum = htonl(packet->PeNum);
         packet->pktidx = htonl(packet->pktidx);
         packet->rem_size = htonl(packet->rem_size);
+#endif
         my_sendto(data_skt, (char *)packet,
             act_size + sizeof(DATA_HDR), 0, (struct sockaddr *)&addr_table[i],
             sizeof(struct sockaddr_in)); 
index 680ae0885bec94fb21c89e4b133d3fb7cc8f020c..fff2799f2c14a200c1e8bd3d30ebe30fcce7a7b0 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.7  1996-08-08 20:16:53  jyelon
+ * Revision 1.8  1996-10-24 19:40:28  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.7  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.6  1996/07/16 17:23:37  jyelon
@@ -61,6 +64,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "paragon"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 680ae0885bec94fb21c89e4b133d3fb7cc8f020c..de2477f4de9bee58f7ed485d5e544cd4b0364c7d 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.7  1996-08-08 20:16:53  jyelon
+ * Revision 1.8  1996-10-24 19:40:29  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.7  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.6  1996/07/16 17:23:37  jyelon
@@ -61,6 +64,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "paragon"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 8aeaf7d81c099d3495085ff9bbfcba4f2714aeee..66106d244f31f467c3e7626bad9ba22d5ec530c1 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.12  1996-08-08 20:16:53  jyelon
+ * Revision 1.13  1996-10-24 19:40:29  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.12  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.11  1996/07/24 21:28:11  gursoy
@@ -67,6 +70,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "sim-hp"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 73f6c30d59d51ca9f00d6a9b48bf7964eda826d3..d4a13fea99298f4ff0f7da7618f0547d200d5835 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.11  1996-08-08 20:16:53  jyelon
+ * Revision 1.12  1996-10-24 19:40:30  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.11  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.10  1996/07/24 21:29:36  gursoy
@@ -67,6 +70,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-rs6k"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 05e4af0b7ef582ee11cca8d9bc450a714feaa078..addab95052d3b1c52bdb3272ed6d4700241fd62a 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.10  1996-08-08 20:16:53  jyelon
+ * Revision 1.11  1996-10-24 19:40:30  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.10  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.9  1996/07/24 21:30:29  gursoy
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-sol"
 
 #define CMK_MALLOC_USE_GNU                                 0
index f85f7cc78acd9f41a1ca6c28a5d3f08d1a23d8d8..18b98ff902b87fc31a13a6e7678daa377b3e198c 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.10  1996-08-08 20:16:53  jyelon
+ * Revision 1.11  1996-10-24 19:40:30  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.10  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.9  1996/07/24 21:31:34  gursoy
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-sun"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 8c23843e5e13edbd8518e3b57478b0e96f3454a2..4f61e642f0f15237b5d51270f469d6f8247cebd1 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.19  1996-08-08 20:16:53  jyelon
+ * Revision 2.20  1996-10-24 19:40:31  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.19  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.18  1996/07/24 22:03:49  milind
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "sp1"
 
 #define CMK_MALLOC_USE_GNU                                 0
index a33332b565d671e655c6d37350068338e0ddf38b..2c1765231f685492e2630c6b81849edd803a1637 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.8  1996-08-08 20:16:53  jyelon
+ * Revision 1.9  1996-10-24 19:40:31  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.8  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.7  1996/07/16 21:08:30  gursoy
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "t3d"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 43fb1bde9c7d9ed1177220382231b0063aeaaa93..b535443360c567d3dc8db8576263f792072ca8ef 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.25  1996-08-08 20:16:53  jyelon
+ * Revision 2.26  1996-10-24 19:40:32  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.25  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.24  1996/07/19 17:07:37  jyelon
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             1
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "tcp-hp"
 
 #define CMK_MALLOC_USE_GNU                                 0
index c436fe648d1d68ffe15e4ec55f2595c18e57bdc5..25309e90b6e97cf6115e3e2c69f80eebbc5f2265 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.25  1996-08-08 20:16:53  jyelon
+ * Revision 2.26  1996-10-24 19:40:32  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.25  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 2.24  1996/07/16 17:23:37  jyelon
@@ -61,6 +64,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      1
+
 #define CMK_MACHINE_NAME                                   "tcp-sol"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 9395fd32b11b754118e56a9b746b5ce3980607e3..23be2fd50792fe25a87096b91ca0528228529a27 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.14  1996-08-08 20:16:53  jyelon
+ * Revision 1.15  1996-10-24 19:40:33  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.14  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.13  1996/07/19 17:07:37  jyelon
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-hp"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 83033e3f8c0c88e3db11b12f2cff8049bea4a619..e374d21d88a4ffad90b8e0fc1167517b1037da45 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.16  1996-08-08 20:16:53  jyelon
+ * Revision 1.17  1996-10-24 19:40:33  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.16  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.15  1996/07/19 17:07:37  jyelon
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-rs6k"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 216d426b41285671a893cbf20e4e0b9446293380..e06f99a5597b697ccfb1f0fa04c4709d41036318 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1996-10-09 17:29:43  milind
+ * Revision 1.2  1996-10-24 19:40:34  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.1  1996/10/09 17:29:43  milind
  * uses CC and cc on solaris.
  *
  * Revision 1.16  1996/08/08 20:16:53  jyelon
@@ -64,6 +67,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-sol-cc"
 
 #define CMK_MALLOC_USE_GNU                                 0
index f81f28dac6460344273cb37a15b4f57651d3d497..788ba49829df6f900d9f1472a47dd66ad31e05e6 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.16  1996-08-08 20:16:53  jyelon
+ * Revision 1.17  1996-10-24 19:40:34  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.16  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.15  1996/07/16 17:23:37  jyelon
@@ -61,6 +64,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-sol"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 175e12227fbc9d44e8c391fba66710c322253e68..c432fea69a7197394c25844c05d7107f51c3be47 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.17  1996-08-08 20:16:53  jyelon
+ * Revision 1.18  1996-10-24 19:40:35  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 1.17  1996/08/08 20:16:53  jyelon
  * *** empty log message ***
  *
  * Revision 1.16  1996/08/05 15:28:49  jyelon
@@ -67,6 +70,8 @@
 
 #define CMK_FIX_HP_CONNECT_BUG                             0
 
+#define CMK_IS_HETERO                                      0
+
 #define CMK_MACHINE_NAME                                   "uth-sun"
 
 #define CMK_MALLOC_USE_GNU                                 0
index 11fac408e9c85f349f0a5e7d1e16af7e52e20ca7..fd79faad17f3c1b9081019acda47a56994730368 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.47  1996-07-16 17:23:18  jyelon
+ * Revision 2.48  1996-10-24 19:40:21  milind
+ * Added CMK_IS_HETERO to all the net-all versions.
+ *
+ * Revision 2.47  1996/07/16 17:23:18  jyelon
  * Misc
  *
  * Revision 2.46  1996/07/16 09:26:46  milind
@@ -289,10 +292,20 @@ CpvExtern(int,         CsdStopFlag);
 
 extern int CmiRegisterHandler CMK_PROTO((CmiHandler));
 
+#if CMK_IS_HETERO
+
+#define CmiGetHandler(env)  (ntohl((*((int *)(env)))))
+
+#define CmiSetHandler(env,x)  (*((int *)(env)) = (htonl(x)))
+
+#else
+
 #define CmiGetHandler(env)  (*((int *)(env)))
 
 #define CmiSetHandler(env,x)  (*((int *)(env)) = x)
 
+#endif
+
 #define CmiGetHandlerFunction(env)\
     (CpvAccess(CmiHandlerTable)[CmiGetHandler(env)])