Skip to content

Commit 38c4f1e

Browse files
joevtdingusdev
authored andcommitted
memaccess: Fix comments for some 64 bit macros.
1 parent a6483fa commit 38c4f1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

memaccess.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
5656
((((uint8_t*)(addr))[0] << 24) | (((uint8_t*)(addr))[1] << 16) | \
5757
(((uint8_t*)(addr))[2] << 8) | ((uint8_t*)(addr))[3] )
5858

59-
/* read an unaligned big-endian QWORD (32bit) */
59+
/* read an unaligned big-endian QWORD (64bit) */
6060
#define READ_QWORD_BE_U(addr) \
6161
((uint64_t(((uint8_t*)(addr))[0]) << 56) | (uint64_t(((uint8_t*)(addr))[1]) << 48) | \
6262
(uint64_t(((uint8_t*)(addr))[2]) << 40) | (uint64_t(((uint8_t*)(addr))[3]) << 32) | \
@@ -71,7 +71,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
7171
((((uint8_t*)(addr))[3] << 24) | (((uint8_t*)(addr))[2] << 16) | \
7272
(((uint8_t*)(addr))[1] << 8) | ((uint8_t*)(addr))[0] )
7373

74-
/* read an unaligned little-endian DWORD (64bit) */
74+
/* read an unaligned little-endian QWORD (64bit) */
7575
#define READ_QWORD_LE_U(addr) \
7676
((uint64_t(((uint8_t*)(addr))[7]) << 56) | (uint64_t(((uint8_t*)(addr))[6]) << 48) | \
7777
(uint64_t(((uint8_t*)(addr))[5]) << 40) | (uint64_t(((uint8_t*)(addr))[4]) << 32) | \
@@ -103,7 +103,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
103103
((uint8_t*)(addr))[3] = (uint8_t)(val); \
104104
} while (0)
105105

106-
/* write an unaligned big-endian DWORD (64bit) */
106+
/* write an unaligned big-endian QWORD (64bit) */
107107
#define WRITE_QWORD_BE_U(addr, val) \
108108
do { \
109109
((uint8_t*)(addr))[0] = ((uint64_t)(val) >> 56); \
@@ -141,7 +141,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
141141
((uint8_t*)(addr))[3] = ((val) >> 24); \
142142
} while (0)
143143

144-
/* write an unaligned little-endian DWORD (64bit) */
144+
/* write an unaligned little-endian QWORD (64bit) */
145145
#define WRITE_QWORD_LE_U(addr, val) \
146146
do { \
147147
((uint8_t*)(addr))[0] = (uint8_t)(val) ; \

0 commit comments

Comments
 (0)