MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / GB_code_string

Function GB_code_string

deps/GraphBLAS/Source/GB_code_string.c:14–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include "GB.h"
13
14GB_PUBLIC
15char *GB_code_string // return a static string for a type name
16(
17 const GB_Type_code code // code to convert to string
18)
19{
20
21 switch (code)
22 {
23 case GB_BOOL_code : return ("bool" ) ;
24 case GB_INT8_code : return ("int8_t" ) ;
25 case GB_INT16_code : return ("int16_t" ) ;
26 case GB_INT32_code : return ("int32_t" ) ;
27 case GB_INT64_code : return ("int64_t" ) ;
28 case GB_UINT8_code : return ("uint8_t" ) ;
29 case GB_UINT16_code : return ("uint16_t" ) ;
30 case GB_UINT32_code : return ("uint32_t" ) ;
31 case GB_UINT64_code : return ("uint64_t" ) ;
32 case GB_FP32_code : return ("float" ) ;
33 case GB_FP64_code : return ("double" ) ;
34 case GB_FC32_code : return ("float complex" ) ;
35 case GB_FC64_code : return ("double complex") ;
36 case GB_UDT_code : return ("user-defined" ) ;
37 default : return ("unknown type!" ) ;
38 }
39}
40

Callers 4

GB_setElementFunction · 0.85
GB_assign_prepFunction · 0.85
GB_BinaryOp_compatibleFunction · 0.85
mexFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected