syclreference.com
  1. SYCL
  2. | API Reference
  3. | Built-Ins

Built-Ins

Functions

abs

MISSING

abs_diff

Returns |x - y| without modulo overflow.

acos

MISSING

acosh

MISSING

acospi

MISSING

add_sat

Returns x + y and saturates the result.

all

Returns 1 if the most significant bit in all components of x is set; otherwise returns 0.

any

Returns 1 if the most significant bit in any component of x is set; otherwise returns 0.

asin

MISSING

asinh

MISSING

asinpi

MISSING

atan

MISSING

atan2

MISSING

atan2pi

MISSING

atanh

MISSING

atanpi

MISSING

bitselect

Each bit of the result is the corresponding bit of a if the corresponding bit of c is 0.

cbrt

MISSING

ceil

MISSING

clamp

MISSING

clz

Returns the number of leading 0-bits in x, starting at the most significant bit position.

copysign

MISSING

cos

MISSING

cosh

MISSING

cospi

MISSING

cross

Returns the cross product of p0.xyz and p1.xyz.

degrees

Converts radians to degrees, i.e. (180 / π) * x.

distance

Returns the distance between p0 and p1.

divide

MISSING

dot

Compute dot product.

erf

MISSING

erfc

MISSING

exp

MISSING

exp10

MISSING

exp2

MISSING

expm1

MISSING

fabs

MISSING

fast_distance

Returns f ast length(p0 - p1).

fast_length

Returns the length of vector p computed as: sqrt((half)(pow(p.x,2) + pow(p.y,2)+ ...)).

fast_normalize

Returns a vector in the same direction as p but with a length of 1. fast_normalize is computed as: p * rsqrt((half)(pow(p.x, 2) + pow(p.y, 2) + ...)).

fdim

MISSING

floor

MISSING

fma

MISSING

fmax

MISSING

fmin

MISSING

fmod

MISSING

fract

MISSING

frexp

MISSING

hadd

Returns (x + y) >> 1. The intermediate sum does not modulo overflow.

hypot

MISSING

ilogb

MISSING

isequal

Returns the component-wise compare of x == y.

isfinite

Test for finite value.

isgreater

Returns the component-wise compare of x > y.

isgreaterequal

Returns the component-wise compare of x >= y.

isinf

Test for infinity value (positive or negative).

isless

Returns the component-wise compare of x < y.

islessequal

Returns the component-wise compare of x <= y.

islessgreater

Returns the component-wise compare of (x < y) || (x > y).

isnan

Test for a NaN.

isnormal

Test for a normal value.

isnotequal

Returns the component-wise compare of x != y.

isordered

Test if arguments are ordered.

isunordered

Test if arguments are unordered.

ldexp

MISSING

length

Return the length of vector p, i.e. sqrt((p.x * p.x) + (p.y * p.y) + ...)

lgamma

MISSING

lgamma_r

MISSING

log

MISSING

log10

MISSING

log1p

MISSING

log2

MISSING

logb

MISSING

mad

MISSING

mad24

Multipy two 24-bit integer values x and y and add the 32-bit integer result to the 32-bit integer z.

mad_hi

Returns mul_hi(a, b) + c.

mad_sat

Returns a * b + c and saturates the result.

make_genuint_impl

MISSING

max

MISSING

maxmag

MISSING

min

MISSING

minmag

MISSING

mix

Returns the linear blend of x&y implemented as: x + (y - x) * a. a must be a value in the range 0.0 ... 1.0. If a is not in the range 0.0 … 1.0, the return values are undefined.

modf

MISSING

mul24

Multiply two 24-bit integer values x and y. x and y are 32-bit integers but only the low 24-bits are used to perform the multiplication.

mul_hi

Computes x * y and returns the high half of the product of x and y.

nan

MISSING

nextafter

MISSING

normalize

Returns a vector in the same direction as p but with a length of 1.

popcount

Returns the number of non-zero bits in x.

pow

MISSING

pown

MISSING

powr

MISSING

radians

Converts degrees to radians, i.e. (π / 180) * x.

recip

MISSING

remainder

MISSING

remquo

MISSING

rhadd

Returns (x + y + 1) >> 1. The intermediate sum does not modulo overflow.

rint

MISSING

rootn

MISSING

rotate

For each element in v, the bits are shifted left by the number of bits given by the corresponding element in i (subject to usual shift modulo rules described in section 6.3).

round

MISSING

rsqrt

MISSING

select

MISSING

sign

Returns 1.0 if x > 0, -0.0 if x = -0.0, +0.0 if x = +0.0, or -1.0 if x < 0. Returns 0.0 if x is a NaN.

signbit

Test for sign bit. The scalar version of the function returns a 1 if the sign bit in the float is set else returns 0.

sin

MISSING

sincos

MISSING

sinh

MISSING

sinpi

MISSING

smoothstep

Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1.

sqrt

MISSING

step

Returns 0.0 if x < edge, otherwise it returns 1.0.

sub_sat

Returns x - y and saturates the result.

sycl_to_abacus

MISSING

tan

MISSING

tanh

MISSING

tanpi

MISSING

tgamma

MISSING

trunc

MISSING

upsample

Returns result[i] = (hi[i] << 8) | lo[i]

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000