invtrig_test.c (251241) | invtrig_test.c (287297) |
---|---|
1/*- 2 * Copyright (c) 2008 David Schultz <das@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 27/* 28 * Tests for corner cases in the inverse trigonometric functions. Some 29 * accuracy tests are included as well, but these are very basic 30 * sanity checks, not intended to be comprehensive. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008 David Schultz <das@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 27/* 28 * Tests for corner cases in the inverse trigonometric functions. Some 29 * accuracy tests are included as well, but these are very basic 30 * sanity checks, not intended to be comprehensive. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/tools/regression/lib/msun/test-invtrig.c 251241 2013-06-02 04:30:03Z das $"); | 34__FBSDID("$FreeBSD: head/tools/regression/lib/msun/test-invtrig.c 287297 2015-08-29 19:47:20Z rodrigc $"); |
35 36#include <assert.h> 37#include <fenv.h> 38#include <float.h> 39#include <math.h> 40#include <stdio.h> 41 42#include "test-utils.h" 43 | 35 36#include <assert.h> 37#include <fenv.h> 38#include <float.h> 39#include <math.h> 40#include <stdio.h> 41 42#include "test-utils.h" 43 |
44#define LEN(a) (sizeof(a) / sizeof((a)[0])) 45 | |
46#pragma STDC FENV_ACCESS ON 47 48/* 49 * Test that a function returns the correct value and sets the 50 * exception flags correctly. A tolerance specifying the maximum 51 * relative error allowed may be specified. For the 'testall' 52 * functions, the tolerance is specified in ulps. 53 * --- 405 unchanged lines hidden --- | 44#pragma STDC FENV_ACCESS ON 45 46/* 47 * Test that a function returns the correct value and sets the 48 * exception flags correctly. A tolerance specifying the maximum 49 * relative error allowed may be specified. For the 'testall' 50 * functions, the tolerance is specified in ulps. 51 * --- 405 unchanged lines hidden --- |