1 
2 /*
3  * Copyright (c) 2016-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 #define CONST_PIOVER2  1.57079632679489661923132169163975144209858469968754
21 #define CONST_ONE      1.0
22 #define CONST_INF      0x7F800000
23 #define CONST_SGN      0x7FFFFFFF
24 
25 #define DBL17_C0  9.999999847657754514784755883738e-01
26 #define DBL17_C1 -3.333307334510667852001120081695e-01
27 #define DBL17_C2  1.999261939282235556181177571489e-01
28 #define DBL17_C3 -1.420364447586542067103465569744e-01
29 #define DBL17_C4  1.064093406202807207128202549029e-01
30 #define DBL17_C5 -7.504294616933972206229697121671e-02
31 #define DBL17_C6  4.269152018815716709276841811516e-02
32 #define DBL17_C7 -1.606862952136682218262642152240e-02
33 #define DBL17_C8  2.849889760370922456994557947496e-03
34 
35