
/* 
 * Copyright (c) 2017-2018, 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.
 *
 */


long long const ABS_MASK_LL = 0x7fffffffffffffffLL;
long long const SGN_MASK_LL = 0x8000000000000000LL;
double    const THRESHOLD_D = 0.58;
double    const PI_HI_D     = 3.1415926535897931e-00;

// p0 coefficients
double const A0_D = -7.11098205226494972652773185473051853477954864501953125e-2;
double const B0_D =  9.485129851677488732608622967745759524405002593994140625e-2;
double const C0_D = -8.498863933818902316463805846069590188562870025634765625e-2;
double const D0_D =  2.8167631416132772603777567610450205393135547637939453125e-2;
double const E0_D = -2.1236858811203261632183370011262013576924800872802734375e-2;
double const F0_D = -9.05979072560843777528472031690398580394685268402099609375e-3;
double const G0_D = -1.43438849443223333246510975413912092335522174835205078125e-2;
double const H0_D = -1.73125902222988521661495298076260951347649097442626953125e-2;
double const I0_D = -2.23750622681186950302389959688298404216766357421875e-2;
double const J0_D = -3.0381807357819833048662161445463425479829311370849609375e-2;
double const K0_D = -4.4642861066358570376610970242836629040539264678955078125e-2;
double const L0_D = -7.4999999940853712132593500427901744842529296875e-2;
double const M0_D = -0.1666666666670042762365966382276383228600025177001953125;
double const N0_D =  1.5707963267948965579989817342720925807952880859375;

// p1 coefficients
double const A1_D =  8.368915281600273919936951172449113300899625755846500396728515625e-6;
double const B1_D = -9.6245710521813799902778041595041713662794791162014007568359375e-5;
double const C1_D =  5.2518279127727906553657621913089315057732164859771728515625e-4;
double const D1_D = -1.82292523407674537938572001394277322106063365936279296875e-3;
double const E1_D =  4.575972452673355596319826332774027832783758640289306640625e-3;
double const F1_D = -9.0255487743186209315116030893477727659046649932861328125e-3;
double const G1_D =  1.500506851269619613964412252471447573043406009674072265625e-2;
double const H1_D = -2.2557206238831263578337171793464221991598606109619140625e-2;
double const I1_D =  3.299021374337458845094062098723952658474445343017578125e-2;
double const J1_D = -5.0599064250250007368503446514296228997409343719482421875e-2;
double const K1_D =  8.9010993358267842534559122213977389037609100341796875e-2;
double const L1_D = -0.2145973221939393715818056307398364879190921783447265625;
double const M1_D =  1.570796075001462011044850441976450383663177490234375;

