diff options
author | midipix <writeonce@midipix.org> | 2015-04-05 20:56:22 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-04-05 20:56:22 -0400 |
commit | 0574ba64b852a4b63e5bc79c3eaed47d2a312ccb (patch) | |
tree | fb990f9ae57fd00167b232d756ed03e6228ca9fe /float | |
parent | 251f26064f0ce721a635dd6e9358fd867181fcd5 (diff) | |
download | scrap-0574ba64b852a4b63e5bc79c3eaed47d2a312ccb.tar.bz2 scrap-0574ba64b852a4b63e5bc79c3eaed47d2a312ccb.tar.xz |
float, double, long double
Diffstat (limited to 'float')
-rw-r--r-- | float/fl.c | 14 | ||||
-rw-r--r-- | float/fl.i686-linux-ubuntu | 47 | ||||
-rw-r--r-- | float/fl.i686-unknown-linux-fpmath-sse | 49 | ||||
-rw-r--r-- | float/fl.i686-w64-mingw32 | 49 | ||||
-rw-r--r-- | float/fl.x86_64-linux-ubuntu | 30 |
5 files changed, 189 insertions, 0 deletions
diff --git a/float/fl.c b/float/fl.c new file mode 100644 index 0000000..4221aa4 --- /dev/null +++ b/float/fl.c @@ -0,0 +1,14 @@ +float fl(int j) +{ + return j * 4 / 3; +} + +double dbl(int j) +{ + return j * 4 / 3; +} + +long double ldbl(int j) +{ + return j * 4 / 3; +} diff --git a/float/fl.i686-linux-ubuntu b/float/fl.i686-linux-ubuntu new file mode 100644 index 0000000..e62565b --- /dev/null +++ b/float/fl.i686-linux-ubuntu @@ -0,0 +1,47 @@ + +fl.o: Dateiformat elf32-i386 + + +Disassembly of section .text: + +00000000 <fl>: + 0: 55 push %ebp + 1: b9 03 00 00 00 mov $0x3,%ecx + 6: 89 e5 mov %esp,%ebp + 8: 50 push %eax + 9: 8b 45 08 mov 0x8(%ebp),%eax + c: c1 e0 02 shl $0x2,%eax + f: 99 cltd + 10: f7 f9 idiv %ecx + 12: 89 45 fc mov %eax,-0x4(%ebp) + 15: db 45 fc fildl -0x4(%ebp) + 18: c9 leave + 19: c3 ret + +0000001a <dbl>: + 1a: 55 push %ebp + 1b: b9 03 00 00 00 mov $0x3,%ecx + 20: 89 e5 mov %esp,%ebp + 22: 50 push %eax + 23: 8b 45 08 mov 0x8(%ebp),%eax + 26: c1 e0 02 shl $0x2,%eax + 29: 99 cltd + 2a: f7 f9 idiv %ecx + 2c: 89 45 fc mov %eax,-0x4(%ebp) + 2f: db 45 fc fildl -0x4(%ebp) + 32: c9 leave + 33: c3 ret + +00000034 <ldbl>: + 34: 55 push %ebp + 35: b9 03 00 00 00 mov $0x3,%ecx + 3a: 89 e5 mov %esp,%ebp + 3c: 50 push %eax + 3d: 8b 45 08 mov 0x8(%ebp),%eax + 40: c1 e0 02 shl $0x2,%eax + 43: 99 cltd + 44: f7 f9 idiv %ecx + 46: 89 45 fc mov %eax,-0x4(%ebp) + 49: db 45 fc fildl -0x4(%ebp) + 4c: c9 leave + 4d: c3 ret diff --git a/float/fl.i686-unknown-linux-fpmath-sse b/float/fl.i686-unknown-linux-fpmath-sse new file mode 100644 index 0000000..8eeceb1 --- /dev/null +++ b/float/fl.i686-unknown-linux-fpmath-sse @@ -0,0 +1,49 @@ + +fl.o: Dateiformat elf32-i386 + + +Disassembly of section .text: + +00000000 <fl>: + 0: 55 push %ebp + 1: b9 03 00 00 00 mov $0x3,%ecx + 6: 89 e5 mov %esp,%ebp + 8: 50 push %eax + 9: 8b 45 08 mov 0x8(%ebp),%eax + c: c1 e0 02 shl $0x2,%eax + f: 99 cltd + 10: f7 f9 idiv %ecx + 12: f3 0f 2a c0 cvtsi2ss %eax,%xmm0 + 16: f3 0f 11 45 fc movss %xmm0,-0x4(%ebp) + 1b: d9 45 fc flds -0x4(%ebp) + 1e: c9 leave + 1f: c3 ret + +00000020 <dbl>: + 20: 55 push %ebp + 21: b9 03 00 00 00 mov $0x3,%ecx + 26: 89 e5 mov %esp,%ebp + 28: 83 ec 08 sub $0x8,%esp + 2b: 8b 45 08 mov 0x8(%ebp),%eax + 2e: c1 e0 02 shl $0x2,%eax + 31: 99 cltd + 32: f7 f9 idiv %ecx + 34: f2 0f 2a c0 cvtsi2sd %eax,%xmm0 + 38: f2 0f 11 45 f8 movsd %xmm0,-0x8(%ebp) + 3d: dd 45 f8 fldl -0x8(%ebp) + 40: c9 leave + 41: c3 ret + +00000042 <ldbl>: + 42: 55 push %ebp + 43: 89 e5 mov %esp,%ebp + 45: 51 push %ecx + 46: 8b 45 08 mov 0x8(%ebp),%eax + 49: b9 03 00 00 00 mov $0x3,%ecx + 4e: c1 e0 02 shl $0x2,%eax + 51: 99 cltd + 52: f7 f9 idiv %ecx + 54: 89 45 fc mov %eax,-0x4(%ebp) + 57: db 45 fc fildl -0x4(%ebp) + 5a: c9 leave + 5b: c3 ret diff --git a/float/fl.i686-w64-mingw32 b/float/fl.i686-w64-mingw32 new file mode 100644 index 0000000..9abfe85 --- /dev/null +++ b/float/fl.i686-w64-mingw32 @@ -0,0 +1,49 @@ + +fl.o: Dateiformat pe-i386 + + +Disassembly of section .text: + +00000000 <_fl>: + 0: 55 push %ebp + 1: b9 03 00 00 00 mov $0x3,%ecx + 6: 89 e5 mov %esp,%ebp + 8: 50 push %eax + 9: 8b 45 08 mov 0x8(%ebp),%eax + c: c1 e0 02 shl $0x2,%eax + f: 99 cltd + 10: f7 f9 idiv %ecx + 12: 89 45 fc mov %eax,-0x4(%ebp) + 15: db 45 fc fildl -0x4(%ebp) + 18: c9 leave + 19: c3 ret + +0000001a <_dbl>: + 1a: 55 push %ebp + 1b: b9 03 00 00 00 mov $0x3,%ecx + 20: 89 e5 mov %esp,%ebp + 22: 50 push %eax + 23: 8b 45 08 mov 0x8(%ebp),%eax + 26: c1 e0 02 shl $0x2,%eax + 29: 99 cltd + 2a: f7 f9 idiv %ecx + 2c: 89 45 fc mov %eax,-0x4(%ebp) + 2f: db 45 fc fildl -0x4(%ebp) + 32: c9 leave + 33: c3 ret + +00000034 <_ldbl>: + 34: 55 push %ebp + 35: b9 03 00 00 00 mov $0x3,%ecx + 3a: 89 e5 mov %esp,%ebp + 3c: 50 push %eax + 3d: 8b 45 08 mov 0x8(%ebp),%eax + 40: c1 e0 02 shl $0x2,%eax + 43: 99 cltd + 44: f7 f9 idiv %ecx + 46: 89 45 fc mov %eax,-0x4(%ebp) + 49: db 45 fc fildl -0x4(%ebp) + 4c: c9 leave + 4d: c3 ret + 4e: 90 nop + 4f: 90 nop diff --git a/float/fl.x86_64-linux-ubuntu b/float/fl.x86_64-linux-ubuntu new file mode 100644 index 0000000..cc1b332 --- /dev/null +++ b/float/fl.x86_64-linux-ubuntu @@ -0,0 +1,30 @@ + +fl.o: Dateiformat elf64-x86-64 + + +Disassembly of section .text: + +0000000000000000 <fl>: + 0: 8d 04 bd 00 00 00 00 lea 0x0(,%rdi,4),%eax + 7: b9 03 00 00 00 mov $0x3,%ecx + c: 99 cltd + d: f7 f9 idiv %ecx + f: f3 0f 2a c0 cvtsi2ss %eax,%xmm0 + 13: c3 retq + +0000000000000014 <dbl>: + 14: 8d 04 bd 00 00 00 00 lea 0x0(,%rdi,4),%eax + 1b: b9 03 00 00 00 mov $0x3,%ecx + 20: 99 cltd + 21: f7 f9 idiv %ecx + 23: f2 0f 2a c0 cvtsi2sd %eax,%xmm0 + 27: c3 retq + +0000000000000028 <ldbl>: + 28: 8d 04 bd 00 00 00 00 lea 0x0(,%rdi,4),%eax + 2f: b9 03 00 00 00 mov $0x3,%ecx + 34: 99 cltd + 35: f7 f9 idiv %ecx + 37: 89 44 24 f4 mov %eax,-0xc(%rsp) + 3b: db 44 24 f4 fildl -0xc(%rsp) + 3f: c3 retq |