Skip to content

Commit 9cf28fa

Browse files
committed
---
yaml --- r: 4863 b: refs/heads/master c: 4aa1655 h: refs/heads/master i: 4861: 6ea4bfd 4859: 4d4428e 4855: ce6dbd7 4847: 829afde 4831: c6c9fe5 4799: f747cd9 4735: e82535e 4607: 90c3a45 v: v3
1 parent 8afed9e commit 9cf28fa

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 6751d40c607c79dd81b4cbc5a07892271a128754
2+
refs/heads/master: 4aa165553bfb2a74e2e54f08fd9507e23bc24708

trunk/src/rt/rust_shape.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,6 @@ const uint8_t CMP_LE = 2u;
3535

3636
namespace shape {
3737

38-
// NB: This function does not align.
39-
template<typename T>
40-
inline data_pair<T>
41-
bump_dp(ptr_pair &ptr) {
42-
data_pair<T> data(*reinterpret_cast<T *>(ptr.fst),
43-
*reinterpret_cast<T *>(ptr.snd));
44-
ptr += sizeof(T);
45-
return data;
46-
}
47-
48-
template<typename T>
49-
inline data_pair<T>
50-
get_dp(ptr_pair &ptr) {
51-
data_pair<T> data(*reinterpret_cast<T *>(ptr.fst),
52-
*reinterpret_cast<T *>(ptr.snd));
53-
return data;
54-
}
55-
5638
// A shape printer, useful for debugging
5739

5840
void

trunk/src/rt/rust_shape.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,24 @@ class ptr_pair {
665665
}
666666
};
667667

668+
// NB: This function does not align.
669+
template<typename T>
670+
inline data_pair<T>
671+
bump_dp(ptr_pair &ptr) {
672+
data_pair<T> data(*reinterpret_cast<T *>(ptr.fst),
673+
*reinterpret_cast<T *>(ptr.snd));
674+
ptr += sizeof(T);
675+
return data;
676+
}
677+
678+
template<typename T>
679+
inline data_pair<T>
680+
get_dp(ptr_pair &ptr) {
681+
data_pair<T> data(*reinterpret_cast<T *>(ptr.fst),
682+
*reinterpret_cast<T *>(ptr.snd));
683+
return data;
684+
}
685+
668686
} // end namespace shape
669687

670688

0 commit comments

Comments
 (0)