mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 10:20:29 +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. │
|
│ 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue