complex math: libc/tinymath/{complex,complex_impl,libm}.h: Add asm() block to each

This commit is contained in:
Steve Phillips 2022-04-27 17:36:26 -07:00
parent 47fee28d10
commit e09e7977ae
No known key found for this signature in database
GPG key ID: 7295C51C3F8AA1E2
3 changed files with 18 additions and 0 deletions

View file

@ -28,6 +28,12 @@
#ifndef _COMPLEX_H
#define _COMPLEX_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 */
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -31,6 +31,12 @@
#include <libc/tinymath/complex.h>
#include <libc/tinymath/libm.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 */
#undef __CMPLX
#undef CMPLX
#undef CMPLXF

View file

@ -33,6 +33,12 @@
#include <libc/isystem/math.h>
#include <libc/isystem/endian.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 */
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN
union ldshape {