This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path64-bit.patch
49 lines (42 loc) · 1.89 KB
/
64-bit.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff -rupN ns2-wimax-bluetooth-wsn/ns-2.34/bluetooth/bnep.cc ns2-wimax-bluetooth-wsn-64bit/ns-2.34/bluetooth/bnep.cc
--- ns2-wimax-bluetooth-wsn/ns-2.34/bluetooth/bnep.cc 2015-11-03 12:26:43.443045439 +0530
+++ ns2-wimax-bluetooth-wsn-64bit/ns-2.34/bluetooth/bnep.cc 2015-11-03 12:23:00.623044362 +0530
@@ -58,6 +58,11 @@
#include "lmp-piconet.h"
#include "scat-form.h"
+// Begin change - Soumen Moulik - 02/11/2015
+// header added for typecast precision change in 64-bit
+#include <inttypes.h>
+// End change - Soumen Moulik - 02/11/2015
+
#define BUFFSIZE 1024
int hdr_bnep::offset_;
@@ -345,8 +350,13 @@ void BNEP::piconet_sched()
}
_current = _current->next;
+// Begin change - Soumen Moulik - 02/11/2015
+// typecast precision change for 64-bit
+ //printf("%d %f bnepSched p:%x %f\n", bd_addr_, s.clock(),
+ //(unsigned int) _current->pico, _current->length);
printf("%d %f bnepSched p:%x %f\n", bd_addr_, s.clock(),
- (unsigned int) _current->pico, _current->length);
+ (intptr_t) _current->pico, _current->length);
+// End change - Soumen Moulik - 02/11/2015
lmp_->wakeup(_current->pico);
diff -rupN ns2-wimax-bluetooth-wsn/ns-2.34/bluetooth/bt.h ns2-wimax-bluetooth-wsn-64bit/ns-2.34/bluetooth/bt.h
--- ns2-wimax-bluetooth-wsn/ns-2.34/bluetooth/bt.h 2015-11-03 12:26:43.443045439 +0530
+++ ns2-wimax-bluetooth-wsn-64bit/ns-2.34/bluetooth/bt.h 2015-11-02 12:20:38.848979414 +0530
@@ -345,8 +345,13 @@ typedef short int16_t;
typedef unsigned short uint16_t;
// typedef int int32_t;
// typedef unsigned int uint32_t;
-typedef long long int int64_t;
-typedef unsigned long long int uint64_t;
+// Begin change - Soumen Moulik - 02/11/2015
+// Changes for 64-bit
+//typedef long long int int64_t;
+//typedef unsigned long long int uint64_t;
+typedef long int int64_t;
+typedef long unsigned int uint64_t;
+// End change - Soumen Moulik - 02/11/2015
typedef uint8_t uchar;