/programs/develop/libraries/menuetlibc/src/libc/pc_hw/endian/Makefile |
---|
0,0 → 1,3 |
THIS_SRCS = htonl.s htons.s ntohl.s ntohs.s |
include $(MENUET_LIBC_TOPDIR)/Make.rules |
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/endian/htonl.s |
---|
0,0 → 1,11 |
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
#include <libc/asmdefs.h> |
#include<libc/asm.h> |
MK_C_SYM(htonl) |
movl 4(%esp), %eax |
xchgb %ah, %al |
rorl $16, %eax |
xchgb %ah, %al |
ret |
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/endian/htons.s |
---|
0,0 → 1,9 |
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
#include <libc/asmdefs.h> |
#include<libc/asm.h> |
MK_C_SYM(htons) |
movl 4(%esp), %eax |
xchgb %ah, %al |
ret |
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/endian/ntohl.s |
---|
0,0 → 1,11 |
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
#include <libc/asmdefs.h> |
#include<libc/asm.h> |
MK_C_SYM(ntohl) |
movl 4(%esp), %eax |
xchgb %ah, %al |
rorl $16, %eax |
xchgb %ah, %al |
ret |
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/endian/ntohs.s |
---|
0,0 → 1,8 |
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
#include <libc/asmdefs.h> |
#include<libc/asm.h> |
MK_C_SYM(ntohs) |
movl 4(%esp), %eax |
xchgb %ah, %al |
ret |