Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4972 → Rev 4973

/programs/develop/libraries/menuetlibc/src/libc/pc_hw/fpu/Makefile
0,0 → 1,3
THIS_SRCS = clear87.s cntrl87.s fpreset.s stat87.s
 
include $(MENUET_LIBC_TOPDIR)/Make.rules
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/fpu/clear87.s
0,0 → 1,10
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(clear87)
 
fstsw %ax
movzwl %ax, %eax
fclex
ret
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/fpu/cntrl87.s
0,0 → 1,29
#include<libc/asm.h>
.text
 
MK_C_SYM(control87)
pushl %ebp
movl %esp,%ebp
 
pushl %eax
fstcw (%esp)
fwait
popl %eax
andl $0xffff, %eax
 
movl 12(%ebp) , %ecx
notl %ecx
andl %eax, %ecx
 
movl 12(%ebp) , %edx
andl 8(%ebp) , %edx
 
orl %ecx, %edx
pushl %edx
fldcw (%esp)
popl %edx
 
movl %ebp,%esp
popl %ebp
ret
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/fpu/fpreset.s
0,0 → 1,11
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
.text
 
MK_C_SYM(fpreset)
 
fninit
ret
 
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/fpu/stat87.s
0,0 → 1,12
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
.text
 
#include<libc/asm.h>
MK_C_SYM(status87)
 
fstsw %ax
movzwl %ax, %eax
ret