Intel® Implicit SPMD Program Compiler (Intel® ISPC)
1.13.0
|
#include <unistd.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | _FORTIFY_SOURCE 0 |
#define | PRINT_BUF_SIZE 4096 |
#define | APPEND(str) |
#define | PRINT_SCALAR(fmt, type) |
#define | PRINT_VECTOR(fmt, type) |
Typedefs | |
typedef int | Bool |
Functions | |
void | __do_print (const char *format, const char *types, int width, uint64_t mask, void **args) |
int | __num_cores () |
#define _FORTIFY_SOURCE 0 |
Definition at line 63 of file builtins.c.
#define APPEND | ( | str | ) |
Definition at line 87 of file builtins.c.
Referenced by __do_print().
#define PRINT_BUF_SIZE 4096 |
Definition at line 85 of file builtins.c.
Referenced by __do_print().
#define PRINT_SCALAR | ( | fmt, | |
type | |||
) |
Definition at line 97 of file builtins.c.
Referenced by __do_print().
#define PRINT_VECTOR | ( | fmt, | |
type | |||
) |
Definition at line 102 of file builtins.c.
Referenced by __do_print().
typedef int Bool |
Definition at line 83 of file builtins.c.
void __do_print | ( | const char * | format, |
const char * | types, | ||
int | width, | ||
uint64_t | mask, | ||
void ** | args | ||
) |
This function is called by PrintStmt to do the work of printing values from ispc programs. Note that the function signature here must match the parameters that PrintStmt::EmitCode() generates.
format | Print format string |
types | Encoded types of the values being printed. (See lEncodeType()). |
width | Vector width of the compilation target |
mask | Current lane mask when the print statemnt is called |
args | Array of pointers to the values to be printed |
Definition at line 128 of file builtins.c.
References __num_cores(), APPEND, PRINT_BUF_SIZE, PRINT_SCALAR, and PRINT_VECTOR.
int __num_cores | ( | ) |
Definition at line 211 of file builtins.c.
Referenced by __do_print().