1 2 /* 3 * Copyright (c) 2017-2018, 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 int const ABS_MASK_I = 0x7fffffff; 21 int const SGN_MASK_I = 0x80000000; 22 float const THRESHOLD_F = 0.54f; 23 float const PI_F = 3.141592654f; 24 25 // p0 coefficients 26 float const A0_F = -4.974142462e-02f; 27 float const B0_F = -1.929998025e-02f; 28 float const C0_F = -4.657111317e-02f; 29 float const D0_F = -7.485233247e-02f; 30 float const E0_F = -0.166670561e-00f; 31 float const F0_F = 1.570796371e-00f; 32 33 // p1 coefficients 34 float const A1_F = -1.782068401e-03f; 35 float const B1_F = 1.112941187e-02f; 36 float const C1_F = -3.470803052e-02f; 37 float const D1_F = 8.167114854e-02f; 38 float const E1_F = -2.126772702e-01f; 39 float const F1_F = 1.570580363e-00f; 40 41