complex math: libc/tinymath/csqrt.c: Add asm() license embedding

This commit is contained in:
Steve Phillips 2022-04-27 16:43:03 -07:00
parent 4030cae7e3
commit 47fee28d10
No known key found for this signature in database
GPG key ID: 7295C51C3F8AA1E2

View file

@ -25,6 +25,14 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "libc/tinymath/complex_impl.h"
asm(".ident\t\"\\n\\n\
Musl libc (MIT License)\\n\
Copyright 2005-2014 Rich Felker, et. al.\"");
asm(".include \"libc/disclaimer.inc\"");
/* clang-format off */
/* origin: FreeBSD /usr/src/lib/msun/src/s_csqrt.c */ /* origin: FreeBSD /usr/src/lib/msun/src/s_csqrt.c */
/*- /*-
* Copyright (c) 2007 David Schultz <das@FreeBSD.ORG> * Copyright (c) 2007 David Schultz <das@FreeBSD.ORG>
@ -52,8 +60,6 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include "libc/tinymath/complex_impl.h"
/* /*
* gcc doesn't implement complex multiplication or division correctly, * gcc doesn't implement complex multiplication or division correctly,
* so we need to handle infinities specially. We turn on this pragma to * so we need to handle infinities specially. We turn on this pragma to