mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
complex math: libc/tinymath/csqrt.c: Add asm() license embedding
This commit is contained in:
parent
4030cae7e3
commit
47fee28d10
1 changed files with 8 additions and 2 deletions
|
@ -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 <das@FreeBSD.ORG>
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue