Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit ce2b405

Browse files
committed
add more Halide typedefs
1 parent e7cd425 commit ce2b405

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

include/tc/core/libraries.h

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ namespace c {
3232

3333
constexpr auto types = R"C(
3434
// Halide type handling
35-
typedef int int32;
36-
typedef long int64;
35+
typedef signed char int8;
36+
typedef unsigned char uint8;
37+
typedef signed short int16;
38+
typedef unsigned short uint16;
39+
typedef signed int int32;
40+
typedef unsigned int uint32;
41+
typedef signed long int64;
42+
typedef unsigned long uint64;
3743
typedef float float32;
3844
typedef double float64;
3945
)C";
@@ -81,16 +87,16 @@ float fmodf ( float x, float y );
8187
//float frexpf ( float x, int* nptr );
8288
float hypotf ( float x, float y );
8389
//int ilogbf ( float x );
84-
//__RETURN_TYPE isfinite ( float a );
85-
//__RETURN_TYPE isinf ( float a );
86-
//__RETURN_TYPE isnan ( float a );
90+
//__RETURN_TYPE isfinite ( float a );
91+
//__RETURN_TYPE isinf ( float a );
92+
//__RETURN_TYPE isnan ( float a );
8793
float j0f ( float x );
8894
float j1f ( float x );
8995
//float jnf ( int n, float x );
9096
//float ldexpf ( float x, int exp );
9197
float lgammaf ( float x );
92-
//long long int llrintf ( float x );
93-
//long long int llroundf ( float x );
98+
//long long int llrintf ( float x );
99+
//long long int llroundf ( float x );
94100
float log10f ( float x );
95101
float log1pf ( float x );
96102
float log2f ( float x );
@@ -120,7 +126,7 @@ float roundf ( float x );
120126
float rsqrtf ( float x );
121127
//float scalblnf ( float x, long int n );
122128
//float scalbnf ( float x, int n );
123-
//__RETURN_TYPE signbit ( float a );
129+
//__RETURN_TYPE signbit ( float a );
124130
//void sincosf ( float x, float* sptr, float* cptr );
125131
//void sincospif ( float x, float* sptr, float* cptr );
126132
float sinf ( float x );

0 commit comments

Comments
 (0)