1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

FIO: Add sim_byte_swap_data routine to byte swap

This is an unconditional swap which may not be dependent on the
particular endian orientation of the simulated or host system.
This commit is contained in:
Mark Pizzolato
2021-08-17 15:20:07 -07:00
parent efc79d710a
commit 4e729165ee
2 changed files with 11 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ typedef void (*DIR_ENTRY_CALLBACK)(const char *directory,
t_stat sim_dir_scan (const char *cptr, DIR_ENTRY_CALLBACK entry, void *context);
void sim_buf_swap_data (void *bptr, size_t size, size_t count);
void sim_byte_swap_data (void *bptr, size_t size, size_t count);
void sim_buf_copy_swapped (void *dptr, const void *bptr, size_t size, size_t count);
const char *sim_get_os_error_text (int error);
typedef struct SHMEM SHMEM;