From 47fee28d10c4a189a188a7e294ebee26041c7b21 Mon Sep 17 00:00:00 2001 From: Steve Phillips Date: Wed, 27 Apr 2022 16:43:03 -0700 Subject: [PATCH] complex math: libc/tinymath/csqrt.c: Add asm() license embedding --- libc/tinymath/csqrt.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libc/tinymath/csqrt.c b/libc/tinymath/csqrt.c index 3e542eafd..91d95f925 100644 --- a/libc/tinymath/csqrt.c +++ b/libc/tinymath/csqrt.c @@ -25,6 +25,14 @@ │ 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 */ /*- * Copyright (c) 2007 David Schultz @@ -52,8 +60,6 @@ * SUCH DAMAGE. */ -#include "libc/tinymath/complex_impl.h" - /* * gcc doesn't implement complex multiplication or division correctly, * so we need to handle infinities specially. We turn on this pragma to