1 2 /* 3 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 */ 18 19 20 #define LOG_C0 -2.582644408471127750459572780528105795383453369140625 21 #define LOG_C1 2.209398500424584455004151095636188983917236328125e1 22 #define LOG_C2 -8.562958098710436161127290688455104827880859375e1 23 #define LOG_C3 1.986292562042041254244395531713962554931640625e2 24 #define LOG_C4 -3.068346384710179108878946863114833831787109375e2 25 #define LOG_C5 3.3228251650099190328546683304011821746826171875e2 26 #define LOG_C6 -2.5869708504617534572389558888971805572509765625e2 27 #define LOG_C7 1.46391859955122384917558520101010799407958984375e2 28 #define LOG_C8 -6.077058183609496921917525469325482845306396484375e1 29 #define LOG_C9 1.9804300859020347758132629678584635257720947265625e1 30 #define LOG_C10 -4.6873877747222110201619216240942478179931640625 31 32 33 #define EXP_C0 1.534581229890366051941269498470887810981366783380508422851562e-4 34 #define EXP_C1 1.33999312287381576631883906003395168227143585681915283203125e-3 35 #define EXP_C2 9.61848895603934807285728680881220498122274875640869140625e-3 36 #define EXP_C3 5.55032877693646675698602166448836214840412139892578125e-2 37 #define EXP_C4 0.2402264689064211033997509048276697285473346710205078125 38 #define EXP_C5 0.69314720573728527686085953973815776407718658447265625 39 #define EXP_C6 1.0000000005541682668308567372150719165802001953125 40 41 42 #define D_ONE_F 1.0f 43 #define D_ALL_ONES_EXPONENT 0x7F800000 44 #define D_BIT_MASK2 0x807FFFFF 45 #define D_EXP_OFFSET 126 46 #define D_OFFSET 0x3f000000 47 #define EXP_HI 128.0 48 #define EXP_LO -151.0 49 #define DBL2INT_CVT 6755399441055744.0 50 #define D_U24 24 51 #define D_TWO_TO_24_F 16777216.0f 52 #define D_SIGN_MASK2 0x7FFFFFFF 53 54 55 56 #define D_ABS_MASK 0x7FFFFFFF 57 #define D_POS_INF 0x7F800000 58 #define D_SIGN_MASK 0x80000000 59 #define D_NEG_INF 0xFF800000 60 #define D_NAN 0x7FC00000 61 #define D_NEG_NAN 0xFFC00000 62 #define D_MINUS_ONE_F -1.0f 63 #define D_MINUS_ZERO_F -0.0f 64 65 66 /* 67 68 69 #define D_ONE_D 1.0 70 #define D_MINUS_TWO_D -2.0 71 #define D_LN2_D 6.93147180559945290e-001 72 73 #define MINUS_LN2_HI -6.9314718055994529e-1 74 #define L2E 1.4426950408889634e+0 75 #define MINUS_LN2_HI -6.9314718055994529e-1 76 #define MINUS_LN2_LO -2.3190468138462996e-17 77 78 #define D_BIT_MASK 0xFE 79 80 #define D_TWO_TO_M126_F 0x00800000 81 82 */ 83 84 85 86 87