summaryrefslogtreecommitdiffstats
path: root/regress/lib/libm/cephes/cephes.c
blob: e7a0920818624e568902d613401e3443b498250b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*	$OpenBSD: cephes.c,v 1.1 2011/05/30 20:23:35 martynas Exp $	*/

/*
 * Written by Martynas Venckus.  Public domain
 */

#include <float.h>
#include <stdio.h>

#include "cephes.h"

int
main(void)
{
	int retval = 0;

	printf("=> Testing monot (double precision):\n");
	retval |= monot();
	putchar('\n');

#if	LDBL_MANT_DIG == 64
	printf("=> Testing monotl (extended precision):\n");
	retval |= monotl();
	putchar('\n');
#endif	/* LDBL_MANT_DIG == 64 */

#if	LDBL_MANT_DIG == 113
	printf("=> Testing monotll (quadruple precision):\n");
	retval |= monotll();
	putchar('\n');
#endif	/* LDBL_MANT_DIG == 113 */

	printf("=> Testing testvect (double precision):\n");
	retval |= testvect();
	putchar('\n');

#if	LDBL_MANT_DIG == 64
	printf("=> Testing testvectl (extended precision):\n");
	retval |= testvectl();
	putchar('\n');
#endif	/* LDBL_MANT_DIG == 64 */

#if	LDBL_MANT_DIG == 113
	printf("=> Testing testvectll (quadruple precision):\n");
	retval |= testvectll();
	putchar('\n');
#endif	/* LDBL_MANT_DIG == 113 */

	return (retval);
}