File: target.isph

package info (click to toggle)
ispc 1.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 95,356 kB
  • sloc: cpp: 55,778; python: 6,681; yacc: 3,074; lex: 1,095; ansic: 714; sh: 283; makefile: 16
file content (129 lines) | stat: -rw-r--r-- 3,486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// -*- mode: c++ -*-
// Copyright (c) 2024-2025, Intel Corporation
// SPDX-License-Identifier: BSD-3-Clause

// @file stdlib.isph
// @brief A piece of ISPC standard library code that contains target dependent
// variable definitions.

#pragma once

#ifndef ISPC_MATH_LIB_ISPC_VAL
#error ISPC_MATH_LIB_ISPC_VAL undefined
#endif

static const uniform int32 __math_lib_ispc = ISPC_MATH_LIB_ISPC_VAL;

#ifndef ISPC_MATH_LIB_ISPC_FAST_VAL
#error ISPC_MATH_LIB_ISPC_FAST_VAL undefined
#endif

static const uniform int32 __math_lib_ispc_fast = ISPC_MATH_LIB_ISPC_FAST_VAL;

#ifndef ISPC_MATH_LIB_SVML_VAL
#error ISPC_MATH_LIB_SVML_VAL undefined
#endif

static const uniform int32 __math_lib_svml = ISPC_MATH_LIB_SVML_VAL;

#ifndef ISPC_MATH_LIB_SYSTEM_VAL
#error ISPC_MATH_LIB_SYSTEM_VAL undefined
#endif

static const uniform int32 __math_lib_system = ISPC_MATH_LIB_SYSTEM_VAL;

#ifdef ISPC_TARGET_HAS_HALF
#define ISPC_TARGET_HAS_HALF_VAL 1
#else
#define ISPC_TARGET_HAS_HALF_VAL 0
#endif

static const uniform int32 __have_native_half_converts = ISPC_TARGET_HAS_HALF_VAL;

#ifdef ISPC_TARGET_HAS_HALF_FULL_SUPPORT
#define ISPC_TARGET_HAS_HALF_FULL_SUPPORT_VAL 1
#else
#define ISPC_TARGET_HAS_HALF_FULL_SUPPORT_VAL 0
#endif

static const uniform int32 __have_native_half_full_support = ISPC_TARGET_HAS_HALF_FULL_SUPPORT_VAL;

#ifdef ISPC_TARGET_HAS_RAND
#define ISPC_TARGET_HAS_RAND_VAL 1
#else
#define ISPC_TARGET_HAS_RAND_VAL 0
#endif

static const uniform int32 __have_native_rand = ISPC_TARGET_HAS_RAND_VAL;

#ifdef ISPC_TARGET_HAS_TRANSCENDENTALS
#define ISPC_TARGET_HAS_TRANSCENDENTALS_VAL 1
#else
#define ISPC_TARGET_HAS_TRANSCENDENTALS_VAL 0
#endif

static const uniform int32 __have_native_transcendentals = ISPC_TARGET_HAS_TRANSCENDENTALS_VAL;

#ifdef ISPC_TARGET_HAS_TRIGONOMETRY
#define ISPC_TARGET_HAS_TRIGONOMETRY_VAL 1
#else
#define ISPC_TARGET_HAS_TRIGONOMETRY_VAL 0
#endif

static const uniform int32 __have_native_trigonometry = ISPC_TARGET_HAS_TRIGONOMETRY_VAL;

#ifdef ISPC_TARGET_HAS_RSQRTD
#define ISPC_TARGET_HAS_RSQRTD_VAL 1
#else
#define ISPC_TARGET_HAS_RSQRTD_VAL 0
#endif

static const uniform int32 __have_native_rsqrtd = ISPC_TARGET_HAS_RSQRTD_VAL;

#ifdef ISPC_TARGET_HAS_RCPD
#define ISPC_TARGET_HAS_RCPD_VAL 1
#else
#define ISPC_TARGET_HAS_RCPD_VAL 0
#endif

static const uniform int32 __have_native_rcpd = ISPC_TARGET_HAS_RCPD_VAL;

#ifdef ISPC_TARGET_HAS_SATURATING_ARITHMETIC
#define ISPC_TARGET_HAS_SATURATING_ARITHMETIC_VAL 1
#else
#define ISPC_TARGET_HAS_SATURATING_ARITHMETIC_VAL 0
#endif

static const uniform int32 __have_saturating_arithmetic = ISPC_TARGET_HAS_SATURATING_ARITHMETIC_VAL;

#ifdef ISPC_TARGET_HAS_DOT_PRODUCT_VNNI
#define ISPC_TARGET_HAS_DOT_PRODUCT_VNNI_VAL 1
#else
#define ISPC_TARGET_HAS_DOT_PRODUCT_VNNI_VAL 0
#endif

static const uniform int32 __have_dot_product_vnni = ISPC_TARGET_HAS_DOT_PRODUCT_VNNI_VAL;

#ifdef ISPC_TARGET_HAS_CONFLICT_DETECTION
#define ISPC_TARGET_HAS_CONFLICT_DETECTION 1
#else
#define ISPC_TARGET_HAS_CONFLICT_DETECTION 0
#endif

static const uniform int32 __have_conflict_detection = ISPC_TARGET_HAS_CONFLICT_DETECTION;

#ifdef ISPC_TARGET_HAS_XE_PREFETCH
#define ISPC_TARGET_HAS_XE_PREFETCH_VAL 1
#else
#define ISPC_TARGET_HAS_XE_PREFETCH_VAL 0
#endif

static const uniform int32 __have_xe_prefetch = ISPC_TARGET_HAS_XE_PREFETCH_VAL;

#ifdef ISPC_TARGET_XE
#define ISPC_IS_XE_TARGET_VAL 1
#else
#define ISPC_IS_XE_TARGET_VAL 0
#endif

static const uniform int32 __is_xe_target = ISPC_IS_XE_TARGET_VAL;