1 /****************************************************************************** 2 Copyright (c) 2007-2011, Intel Corp. 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 are met: 7 8 * Redistributions of source code must retain the above copyright notice, 9 this list of conditions and the following disclaimer. 10 * Redistributions in binary form must reproduce the above copyright 11 notice, this list of conditions and the following disclaimer in the 12 documentation and/or other materials provided with the distribution. 13 * Neither the name of Intel Corporation nor the names of its contributors 14 may be used to endorse or promote products derived from this software 15 without specific prior written permission. 16 17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 THE POSSIBILITY OF SUCH DAMAGE. 28 ******************************************************************************/ 29 30 #include "endian.h" 31 32 33 34 #if INSTANTIATE_DEFINES 35 36 # define ZERO 0 37 # define ONE 1 38 # define TWO 2 39 # define PI 3 40 # define PI_OVER_2 4 41 # define PI_OVER_4 5 42 # define THREE_PI_OVER_4 6 43 # define NINETY 7 44 # define ONE_EIGHTY 8 45 # define INF 9 46 # define LAST_CONS_INDEX 10 47 48 #endif 49 50 #if INSTANTIATE_TABLE 51 52 const TABLE_UNION PACKED_CONSTANT_TABLE[] = { 53 54 /* 00 */ DATA_2x2( 0x00000000, 0x00000000, 0x00000000, 0x00000000 ), 55 /* 01 */ DATA_4R( 0x00000000, 0x00000000, 0x00000000, 0x3fff0000 ), 56 /* 02 */ DATA_4R( 0x00000000, 0x00000000, 0x00000000, 0x40000000 ), 57 /* 03 */ DATA_4R( 0xc51701b8, 0x8469898c, 0xb54442d1, 0x4000921f ), 58 /* 04 */ DATA_4R( 0xc51701b8, 0x8469898c, 0xb54442d1, 0x3fff921f ), 59 /* 05 */ DATA_4R( 0xc51701b8, 0x8469898c, 0xb54442d1, 0x3ffe921f ), 60 /* 06 */ DATA_4R( 0x93d1414a, 0x234f2729, 0xc7f3321d, 0x40002d97 ), 61 /* 07 */ DATA_4R( 0x00000000, 0x00000000, 0x00000000, 0x40056800 ), 62 /* 08 */ DATA_4R( 0x00000000, 0x00000000, 0x00000000, 0x40066800 ), 63 /* 09 */ DATA_4R( 0x00000000, 0x00000000, 0x00000000, 0x7fff0000 ), 64 }; 65 66 #endif 67