summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/ceil.S
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/i386/ceil.S')
-rw-r--r--mdk-stage1/dietlibc/i386/ceil.S44
1 files changed, 44 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/i386/ceil.S b/mdk-stage1/dietlibc/i386/ceil.S
new file mode 100644
index 000000000..e6a4e989c
--- /dev/null
+++ b/mdk-stage1/dietlibc/i386/ceil.S
@@ -0,0 +1,44 @@
+.text
+
+.global ceilf,ceil,ceill,__flcetr
+ .type ceilf,@function
+ .type ceil,@function
+ .type ceill,@function
+ .type __flcetr,@function
+
+ceilf:
+ flds 4(%esp)
+ movb $0x08,%ah
+ jmp __flcetr
+
+ceill:
+ fldt 4(%esp)
+ movb $0x08,%ah
+ jmp __flcetr
+
+ceil:
+ fldl 4(%esp)
+ movb $0x08,%ah
+
+# Wspolny kod dla funkcji floor, ceil i trunc
+# W ah maska bitow 11 i 10 rejestru sterowania koprocesora
+__flcetr:
+ xorl %ecx,%ecx # wyzerowanie rejestru
+ movb %ah,%ch # i utworzenie maski w cx
+ pushl %eax # krotsze niz subl $4,%esp
+ fstcw (%esp)
+ movw (%esp),%ax
+ andb $0x03,%ah # wyzerowanie bitow 11 i 10
+ orl %ecx,%eax # ustawienie bitow z maski
+ movw %ax,2(%esp)
+ fldcw 2(%esp)
+ frndint
+ fldcw (%esp) # odtworzenie rejestru sterowania
+ popl %eax # i polozenia stosu
+ ret
+
+.Lende:
+.size ceil,.Lende-ceil
+.size ceill,.Lende-ceill
+.size ceilf,.Lende-ceilf
+.size flcetr,.Lende-__flcetr
5-12-09 04:21:26 +0000'>2005-12-091-4/+4 * Updatd POT file.Funda Wang2005-12-0871-15127/+16276 * add ndiswrapper in INSTALL section, commonly used for wireless cardsOlivier Blin2005-12-071-0/+1 * don't try to install an old library (that is anyway pulled by other packages)Olivier Blin2005-12-071-1/+1 * install nscd on laptopsFrederic Lepied2005-12-061-1/+1 * NVU is the new defaut Web editor in Mandriva LinuxDavid Baudens2005-12-051-4/+1 * *** empty log message ***José Melo2005-12-051-191/+93 * UpdatedWilly Sudiarto Raharjo2005-12-051-2/+2 * Updated POT file.Funda Wang2005-12-0471-7234/+7309 * add cdrdao-gcdmaster to burn audio on gnomeFlorent Villard2005-12-011-1/+1 * typo fixThierry Vignaud2005-11-301-2/+2 * updateThierry Vignaud2005-11-301-10/+10 * UpdatedWilly Sudiarto Raharjo2005-11-301-3/+3 * Updated POT file.Funda Wang2005-11-3071-31195/+31581 * Updated Malay translationSharuzzaman Ahmat Raslan2005-11-261-3162/+3569 * updateThierry Vignaud2005-11-251-3/+3 * Updated zh_CN translationFunda Wang2005-11-241-120/+4 * adapt to MDV::PackdrakengPascal Rigaux2005-11-231-1/+3 * *** empty log message ***José Melo2005-11-221-182/+94 * updated Walloon file (better strings in drakfont)Pablo Saratxaga2005-11-211-12/+16 * install aoss too when installing ALSAThierry Vignaud2005-11-211-2/+2 * bpalogin is required for Telstra's BPA cable connectionsOlivier Blin2005-11-211-0/+1 * UpdatedWilly Sudiarto Raharjo2005-11-191-3/+5 * updateThierry Vignaud2005-11-182-13/+6 * Updated POT fileThierry Vignaud2005-11-1871-25406/+25489 * updateThierry Vignaud2005-11-171-8/+8 * updateThierry Vignaud2005-11-151-52/+43 * Updated Malay translationSharuzzaman Ahmat Raslan2005-11-141-32/+30 * fix upgrading conectivaoffice pkg (bugzilla #18948)Pascal Rigaux2005-11-141-0/+4 * updateThierry Vignaud2005-11-071-4/+4 * Updated French translationChristophe Berthelé2005-11-021-29/+44 * *** empty log message ***José Melo2005-10-301-181/+98 * Updated Malay translationSharuzzaman Ahmat Raslan2005-10-291-2316/+2718 * Updated POT file.Funda Wang2005-10-28