"Fossies" - the Fresh Open Source Software Archive

Member "pocl-1.8/lib/kernel/ocml/src/addF.cl" (12 Oct 2021, 559 Bytes) of package /linux/misc/pocl-1.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lisp source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /*===--------------------------------------------------------------------------
    2  *                   ROCm Device Libraries
    3  *
    4  * This file is distributed under the University of Illinois Open Source
    5  * License. See LICENSE.TXT for details.
    6  *===------------------------------------------------------------------------*/
    7 
    8 #include "mathF.h"
    9 
   10 #define GEN(LN,UN) \
   11 CONSTATTR float \
   12 MATH_MANGLE(LN)(float x, float y) \
   13 { \
   14     return BUILTIN_##UN##_F32(x, y); \
   15 }
   16 
   17 // GEN(add_rte,ADD_RTE)
   18 // GEN(add_rtn,ADD_RTN)
   19 // GEN(add_rtp,ADD_RTP)
   20 // GEN(add_rtz,ADD_RTZ)
   21