|
Message-Id: <20200111152354.5743-1-amonakov@ispras.ru>
Date: Sat, 11 Jan 2020 18:23:54 +0300
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
Subject: [PATCH] math: move more x86-family lrint functions to C
---
It was news to me that GCC inline asm conventions allow to specify
effect on x87 register stack. Here a clobber tells the compiler
that the asm pops the topmost element off the stack.
src/math/i386/llrint.c | 8 ++++++++
src/math/i386/llrint.s | 8 --------
src/math/i386/llrintf.c | 8 ++++++++
src/math/i386/llrintf.s | 9 ---------
src/math/i386/llrintl.c | 8 ++++++++
src/math/i386/llrintl.s | 8 --------
src/math/i386/lrint.c | 8 ++++++++
src/math/i386/lrint.s | 7 -------
src/math/i386/lrintf.c | 8 ++++++++
src/math/i386/lrintf.s | 7 -------
src/math/i386/lrintl.c | 8 ++++++++
src/math/i386/lrintl.s | 7 -------
src/math/x86_64/llrintl.c | 8 ++++++++
src/math/x86_64/llrintl.s | 7 -------
src/math/x86_64/lrintl.c | 8 ++++++++
src/math/x86_64/lrintl.s | 7 -------
16 files changed, 64 insertions(+), 60 deletions(-)
create mode 100644 src/math/i386/llrint.c
delete mode 100644 src/math/i386/llrint.s
create mode 100644 src/math/i386/llrintf.c
delete mode 100644 src/math/i386/llrintf.s
create mode 100644 src/math/i386/llrintl.c
delete mode 100644 src/math/i386/llrintl.s
create mode 100644 src/math/i386/lrint.c
delete mode 100644 src/math/i386/lrint.s
create mode 100644 src/math/i386/lrintf.c
delete mode 100644 src/math/i386/lrintf.s
create mode 100644 src/math/i386/lrintl.c
delete mode 100644 src/math/i386/lrintl.s
create mode 100644 src/math/x86_64/llrintl.c
delete mode 100644 src/math/x86_64/llrintl.s
create mode 100644 src/math/x86_64/lrintl.c
delete mode 100644 src/math/x86_64/lrintl.s
View attachment "0007-math-move-more-x86-family-lrint-functions-to-C.patch" of type "text/x-patch" (4691 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.