1 2 /* 3 * Copyright (c) 2019, 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 const float C1 = -3.33332509e-01; // ((float)-0x1.55551ep-2) //I2F(0xBEAAAA8F) 21 const float C2 = 1.99954212e-01; // ((float)0x1.998198p-3) //I2F(0x3E4CC0CC) 22 const float C3 = -1.42211244e-01; // ((float)-0x1.233fa6p-3) //I2F(0xBE119FD3) 23 const float C4 = 1.06959172e-01; // ((float)0x1.b61ad2p-4) //I2F(0x3DDB0D69) 24 const float C5 = -7.60018304e-02; // ((float)-0x1.374db2p-4) //I2F(0xBD9BA6D9) 25 const float C6 = 4.36340049e-02; // ((float)0x1.657324p-5) //I2F(0x3D32B992) 26 const float C7 = -1.65580809e-02; // ((float)-0x1.0f49ap-6) //I2F(0xBC87A4D0) 27 const float C8 = 2.95445486e-03; // ((float)0x1.833f0ep-9) //I2F(0x3B419F87) 28 29 #define PI_2 1.57079632679489655799898173427 30 31