xref: /llvm-project/libclc/generic/include/clc/math/log.h (revision 139185dfc7767c0b263fb67d4d209ce9700747a5)
17a09e88bSTom Stellard /*
27a09e88bSTom Stellard  * Copyright (c) 2015 Advanced Micro Devices, Inc.
37a09e88bSTom Stellard  *
47a09e88bSTom Stellard  * Permission is hereby granted, free of charge, to any person obtaining a copy
57a09e88bSTom Stellard  * of this software and associated documentation files (the "Software"), to deal
67a09e88bSTom Stellard  * in the Software without restriction, including without limitation the rights
77a09e88bSTom Stellard  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
87a09e88bSTom Stellard  * copies of the Software, and to permit persons to whom the Software is
97a09e88bSTom Stellard  * furnished to do so, subject to the following conditions:
107a09e88bSTom Stellard  *
117a09e88bSTom Stellard  * The above copyright notice and this permission notice shall be included in
127a09e88bSTom Stellard  * all copies or substantial portions of the Software.
137a09e88bSTom Stellard  *
147a09e88bSTom Stellard  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
157a09e88bSTom Stellard  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167a09e88bSTom Stellard  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
177a09e88bSTom Stellard  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
187a09e88bSTom Stellard  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
197a09e88bSTom Stellard  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
207a09e88bSTom Stellard  * THE SOFTWARE.
217a09e88bSTom Stellard  */
22d3c242aeSPeter Collingbourne 
23*139185dfSJan Vesely #define __CLC_BODY <clc/math/unary_decl.inc>
24*139185dfSJan Vesely #define __CLC_FUNCTION log
25*139185dfSJan Vesely 
267a09e88bSTom Stellard #include <clc/math/gentype.inc>
27*139185dfSJan Vesely 
28*139185dfSJan Vesely #undef __CLC_BODY
29*139185dfSJan Vesely #undef __CLC_FUNCTION
30