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