Reword
This commit is contained in:
1 parent
be198a7040
commit
cba37abfae
1 file changed
+2
-3
+2
-3
@@ -473,8 +473,7 @@ static inline void snapshot_mrsw_int_read_end(snapshot_mrsw_int_t s, unsigned in
|
|||||||
SNAPSHOTI_MRSW_CONTRACT(snap); \
|
SNAPSHOTI_MRSW_CONTRACT(snap); \
|
||||||
assert (old != NULL); \
|
assert (old != NULL); \
|
||||||
const M_C(name, _aligned_type_t) *oldx; \
|
const M_C(name, _aligned_type_t) *oldx; \
|
||||||
oldx = M_CTYPE_FROM_FIELD(M_C(name, _aligned_type_t), old, \
|
oldx = M_CTYPE_FROM_FIELD(M_C(name, _aligned_type_t), old, type, x); \
|
||||||
type, x); \
|
|
||||||
assert (oldx >= snap->data); \
|
assert (oldx >= snap->data); \
|
||||||
assert (oldx < snap->data + snap->core->n+SNAPSHOTI_MRSW_EXTRA_BUFFER); \
|
assert (oldx < snap->data + snap->core->n+SNAPSHOTI_MRSW_EXTRA_BUFFER); \
|
||||||
const unsigned int idx = oldx - snap->data; \
|
const unsigned int idx = oldx - snap->data; \
|
||||||
@@ -484,7 +483,7 @@ static inline void snapshot_mrsw_int_read_end(snapshot_mrsw_int_t s, unsigned in
|
|||||||
static inline type *M_C(name, _get_write_buffer)(M_C(name, _t) snap) \
|
static inline type *M_C(name, _get_write_buffer)(M_C(name, _t) snap) \
|
||||||
{ \
|
{ \
|
||||||
SNAPSHOTI_MRSW_CONTRACT(snap); \
|
SNAPSHOTI_MRSW_CONTRACT(snap); \
|
||||||
unsigned int idx = snapshot_mrsw_int_get_write_idx(snap->core); \
|
const unsigned int idx = snapshot_mrsw_int_get_write_idx(snap->core); \
|
||||||
return &snap->data[idx].x; \
|
return &snap->data[idx].x; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
|||||||
Reference in new issue
Block a user