summaryrefslogtreecommitdiff
path: root/win/3dsftk/source/swapbyte.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/3dsftk/source/swapbyte.c')
-rw-r--r--win/3dsftk/source/swapbyte.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/win/3dsftk/source/swapbyte.c b/win/3dsftk/source/swapbyte.c
new file mode 100644
index 0000000..ef69f43
--- /dev/null
+++ b/win/3dsftk/source/swapbyte.c
@@ -0,0 +1,36 @@
+/* this source was algorythmically generated by makeswap.c */
+
+#include "3dstype.h"
+#include "swapbyte.h"
+void N2ILong3ds(void *native, void *intel){
+ *((unsigned long *)(intel)) = *((unsigned long *)(native));
+}
+
+void I2NLong3ds(void *intel, void *native){
+ *((unsigned long *)(native)) = *((unsigned long *)(intel));
+}
+
+void N2IShort3ds(void *native, void *intel){
+ *((unsigned short *)(intel)) = *((unsigned short *)(native));
+}
+
+void I2NShort3ds(void *intel, void *native){
+ *((unsigned short *)(native)) = *((unsigned short *)(intel));
+}
+
+void N2IFloat3ds(void *native, void *intel){
+ *((float *)(intel)) = *((float *)(native));
+}
+
+void I2NFloat3ds(void *intel, void *native){
+ *((float *)(native)) = *((float *)(intel));
+}
+
+void N2IDouble3ds(void *native, void *intel){
+ *((double *)(intel)) = *((double *)(native));
+}
+
+void I2NDouble3ds(void *intel, void *native){
+ *((double *)(native)) = *((double *)(intel));
+}
+