diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-27 05:54:50 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-27 05:54:50 +0000 |
commit | 13d71f494bf1496c54af7cf74cd5975eb2c8249e (patch) | |
tree | 879e1f95950b0171ef5ac9b7e0d30eaa57a2a27b /lib/libc/hidden | |
parent | 041acb8c473ba72d0cd35f51e01ace2298c7c215 (diff) |
Wrap the remaining math functions in libc: __fpclassify*(), __flt_rounds(),
and ldexp().
ok millert@
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r-- | lib/libc/hidden/float.h | 25 | ||||
-rw-r--r-- | lib/libc/hidden/math.h | 33 |
2 files changed, 58 insertions, 0 deletions
diff --git a/lib/libc/hidden/float.h b/lib/libc/hidden/float.h new file mode 100644 index 00000000000..ea2cf5bae9a --- /dev/null +++ b/lib/libc/hidden/float.h @@ -0,0 +1,25 @@ +/* $OpenBSD: float.h,v 1.1 2015/10/27 05:54:49 guenther Exp $ */ +/* + * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_FLOAT_H_ +#define _LIBC_FLOAT_H_ + +#include_next <float.h> + +PROTO_NORMAL(__flt_rounds); + +#endif /* _LIBC_FLOAT_H_ */ diff --git a/lib/libc/hidden/math.h b/lib/libc/hidden/math.h new file mode 100644 index 00000000000..dd8e4f456e9 --- /dev/null +++ b/lib/libc/hidden/math.h @@ -0,0 +1,33 @@ +/* $OpenBSD: math.h,v 1.1 2015/10/27 05:54:49 guenther Exp $ */ +/* + * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_MATH_H_ +#define _LIBC_MATH_H_ + +#include_next <math.h> + +/* + * This file only wraps the handful of functions that are both + * defined and used by libc. + */ + +PROTO_NORMAL(__fpclassify); +PROTO_NORMAL(__fpclassifyf); +PROTO_NORMAL(__fpclassifyl); +PROTO_NORMAL(ldexp); + +#endif /* !_LIBC_MATH_H_ */ |