summaryrefslogtreecommitdiff
path: root/win/3dsftk/source/swapbyte.c
blob: ef69f43a21add042794b3308d6a00c2823690bf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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));
}