
/*
 * Copyright (c) 2017, NVIDIA CORPORATION.  All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */


#define LOG_C0   -2.582644408471127750459572780528105795383453369140625
#define LOG_C1   2.209398500424584455004151095636188983917236328125e1
#define LOG_C2   -8.562958098710436161127290688455104827880859375e1
#define LOG_C3   1.986292562042041254244395531713962554931640625e2
#define LOG_C4   -3.068346384710179108878946863114833831787109375e2
#define LOG_C5   3.3228251650099190328546683304011821746826171875e2
#define LOG_C6   -2.5869708504617534572389558888971805572509765625e2
#define LOG_C7   1.46391859955122384917558520101010799407958984375e2
#define LOG_C8   -6.077058183609496921917525469325482845306396484375e1
#define LOG_C9   1.9804300859020347758132629678584635257720947265625e1
#define LOG_C10  -4.6873877747222110201619216240942478179931640625


#define EXP_C0 1.534581229890366051941269498470887810981366783380508422851562e-4
#define EXP_C1 1.33999312287381576631883906003395168227143585681915283203125e-3
#define EXP_C2 9.61848895603934807285728680881220498122274875640869140625e-3
#define EXP_C3 5.55032877693646675698602166448836214840412139892578125e-2
#define EXP_C4 0.2402264689064211033997509048276697285473346710205078125
#define EXP_C5 0.69314720573728527686085953973815776407718658447265625
#define EXP_C6 1.0000000005541682668308567372150719165802001953125


#define D_ONE_F       1.0f
#define D_ALL_ONES_EXPONENT 0x7F800000
#define D_BIT_MASK2  0x807FFFFF
#define D_EXP_OFFSET 126
#define D_OFFSET     0x3f000000
#define EXP_HI 128.0
#define EXP_LO -151.0
#define DBL2INT_CVT 6755399441055744.0
#define D_U24 24
#define D_TWO_TO_24_F 16777216.0f
#define D_SIGN_MASK2 0x7FFFFFFF



#define D_ABS_MASK  0x7FFFFFFF
#define D_POS_INF   0x7F800000
#define D_SIGN_MASK 0x80000000
#define D_NEG_INF   0xFF800000
#define D_NAN       0x7FC00000
#define D_NEG_NAN   0xFFC00000
#define D_MINUS_ONE_F -1.0f
#define D_MINUS_ZERO_F -0.0f


/*


#define D_ONE_D       1.0
#define D_MINUS_TWO_D -2.0
#define D_LN2_D       6.93147180559945290e-001

#define  MINUS_LN2_HI -6.9314718055994529e-1
#define  L2E 1.4426950408889634e+0
#define  MINUS_LN2_HI -6.9314718055994529e-1
#define  MINUS_LN2_LO -2.3190468138462996e-17

#define  D_BIT_MASK   0xFE

#define D_TWO_TO_M126_F 0x00800000

*/




