summaryrefslogtreecommitdiff
path: root/qdme.c
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-05-22 12:01:54 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-05-22 12:01:54 -0400
commitd77453f48c9bd1a59938da815004feaf9f147d6a (patch)
tree70c98e8b7c0bdaac1cd544a00aaf54b530ad7e77 /qdme.c
parenta8a4d0ceff7ea57a7b11236a634cf6d9a6be75bd (diff)
Switched to Native Byte Order from Big Endian
Diffstat (limited to 'qdme.c')
-rwxr-xr-xqdme.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/qdme.c b/qdme.c
index 171bd0f..543f234 100755
--- a/qdme.c
+++ b/qdme.c
@@ -265,18 +265,6 @@ int LoadBinary(const char * const path) {
}
fclose(fp);
-
- /* Convert from Big Endian to Little Endian */
- uint32_t test = 10;
- if (test != ntohl(test)) {
- for (size_t j = 0; j < offset; j += WORD_SIZE) {
- uint32_t word = 0;
- memcpy(&word, memory + j, WORD_SIZE);
- word = ntohl(word);
- memcpy(memory + j, &word, WORD_SIZE);
- }
- }
-
return 0;
}