File: isfinite_fp64.cl

package info (click to toggle)
pocl 1.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,816 kB
  • sloc: lisp: 135,476; ansic: 64,403; cpp: 32,196; vhdl: 1,040; sh: 382; python: 336; makefile: 151; pascal: 140; java: 72; xml: 49
file content (13 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifdef SINGLEVEC
_CL_OVERLOADABLE inttype isfinite(vtype i)
#else
_CL_OVERLOADABLE itype isfinite(vtype i)
#endif
{
  itype res = ((as_utype(i) << 1) < (utype)(EXPBITS_DP64 << 1));
#ifdef SINGLEVEC
  return convert_int(res);
#else
  return res;
#endif
}