[netperf-dev] netperf2 commit notice r78 - trunk/src
raj at netperf.org
raj at netperf.org
Wed Jun 28 11:40:08 PDT 2006
Author: raj
Date: 2006-06-28 11:40:07 -0700 (Wed, 28 Jun 2006)
New Revision: 78
Modified:
trunk/src/netlib.c
Log:
Windows fixes from Andrew Gallatin
Modified: trunk/src/netlib.c
===================================================================
--- trunk/src/netlib.c 2006-06-21 18:05:24 UTC (rev 77)
+++ trunk/src/netlib.c 2006-06-28 18:40:07 UTC (rev 78)
@@ -555,9 +555,9 @@
conv_rec.bytes[i] = conv_rec.bytes[7-i];
conv_rec.bytes[7-i] = scratch;
}
-
-#if __FLOAT_WORD_ORDER != __BYTE_ORDER
- {
+
+#if defined(__FLOAT_WORD_ORDER) && defined(__BYTE_ORDER)
+ if (__FLOAT_WORD_ORDER != __BYTE_ORDER) {
/* Fixup mixed endian floating point machines */
unsigned int scratch = conv_rec.words[0];
conv_rec.words[0] = conv_rec.words[1];
@@ -599,8 +599,8 @@
conv_rec.bytes[7-i] = scratch;
}
-#if __FLOAT_WORD_ORDER != __BYTE_ORDER
- {
+#if defined(__FLOAT_WORD_ORDER) && defined(__BYTE_ORDER)
+ if (__FLOAT_WORD_ORDER != __BYTE_ORDER) {
/* Fixup mixed endian floating point machines */
unsigned int scratch = conv_rec.words[0];
conv_rec.words[0] = conv_rec.words[1];
@@ -1303,11 +1303,12 @@
temp_buffer = buffer_ptr;
limit = temp_buffer + length;
+ dirty_totals = 0;
for (i = 0;
((i < dirty_count) && (temp_buffer < limit));
i++) {
- *temp_buffer += i;
+ *temp_buffer += (char)i;
dirty_totals += *temp_buffer;
temp_buffer++;
}
More information about the netperf-dev
mailing list