File: binary_impl.inc

package info (click to toggle)
libclc 0.2.0%2Bgit20180917-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,552 kB
  • sloc: lisp: 13,186; ansic: 2,418; python: 647; cpp: 93; sh: 29; makefile: 10; pascal: 7
file content (22 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#ifndef __CLC_SCALAR

_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, __CLC_GENTYPE y) {
  return FUNCTION_IMPL(x, y);
}

#endif

_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, float y) {
  __CLC_GENTYPE vec_y = (__CLC_GENTYPE) (y);
  return FUNCTION_IMPL(x, vec_y);
}

#ifdef cl_khr_fp64

_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, double y) {
  __CLC_GENTYPE vec_y = (__CLC_GENTYPE) (y);
  return FUNCTION_IMPL(x, vec_y);
}

#endif