1f01ffa9dSTom Stellard /* 2f01ffa9dSTom Stellard * Copyright (c) 2015 Advanced Micro Devices, Inc. 3f01ffa9dSTom Stellard * 4f01ffa9dSTom Stellard * Permission is hereby granted, free of charge, to any person obtaining a copy 5f01ffa9dSTom Stellard * of this software and associated documentation files (the "Software"), to deal 6f01ffa9dSTom Stellard * in the Software without restriction, including without limitation the rights 7f01ffa9dSTom Stellard * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8f01ffa9dSTom Stellard * copies of the Software, and to permit persons to whom the Software is 9f01ffa9dSTom Stellard * furnished to do so, subject to the following conditions: 10f01ffa9dSTom Stellard * 11f01ffa9dSTom Stellard * The above copyright notice and this permission notice shall be included in 12f01ffa9dSTom Stellard * all copies or substantial portions of the Software. 13f01ffa9dSTom Stellard * 14f01ffa9dSTom Stellard * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15f01ffa9dSTom Stellard * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16f01ffa9dSTom Stellard * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17f01ffa9dSTom Stellard * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18f01ffa9dSTom Stellard * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19f01ffa9dSTom Stellard * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20f01ffa9dSTom Stellard * THE SOFTWARE. 21f01ffa9dSTom Stellard */ 22f01ffa9dSTom Stellard 23*fd13434dSJan Vesely #define __CLC_BODY <clc/math/unary_decl.inc> 24*fd13434dSJan Vesely #define __CLC_FUNCTION native_log2 25f01ffa9dSTom Stellard #define __FLOAT_ONLY 26*fd13434dSJan Vesely 27f01ffa9dSTom Stellard #include <clc/math/gentype.inc> 28*fd13434dSJan Vesely 29f01ffa9dSTom Stellard #undef __FLOAT_ONLY 30*fd13434dSJan Vesely #undef __CLC_BODY 31*fd13434dSJan Vesely #undef __CLC_FUNCTION 32