home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
gnu
/
djgpp
/
libsrc
/
c
/
sys
/
hton.s
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1992-03-02
|
221 b
|
19 lines
.globl _ntohl
_ntohl:
.globl _htonl
_htonl:
movl 4(%esp),%eax
xchgb %ah,%al
ror $16,%eax
xchgb %ah,%al
ret
.globl _ntohs
_ntohs:
.globl _htons
_htons:
movswl 4(%esp),%eax
xchgb %ah,%al
ret