mailing list of musl libc
 help / color / mirror / code / Atom feed
2bcc7754e8cf08e86082e4183ade68fcc0287e29 blob 117 bytes (raw)

1
2
3
4
5
6
7
8
 
#include <math.h>

float sqrtf(float x)
{
	long double t;
	__asm__ ("fsqrt" : "=t"(t) : "0"(x));
	return (float)t;
}
debug log:

solving 2bcc7754 ...
found 2bcc7754 in https://inbox.vuxu.org/musl/20200106174346.6489-1-amonakov@ispras.ru/

applying [1/1] https://inbox.vuxu.org/musl/20200106174346.6489-1-amonakov@ispras.ru/
diff --git a/src/math/i386/sqrtf.c b/src/math/i386/sqrtf.c
new file mode 100644
index 00000000..2bcc7754

Checking patch src/math/i386/sqrtf.c...
Applied patch src/math/i386/sqrtf.c cleanly.

index at:
100644 2bcc7754e8cf08e86082e4183ade68fcc0287e29	src/math/i386/sqrtf.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).