MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / handleADD_SUB

Method handleADD_SUB

src/library/blas/gens/kprintf.cpp:1135–1156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133}
1134
1135void kprintf::handleADD_SUB(char **_src, char **_dst, const char op)
1136{
1137 int numCharsWritten = 0;
1138 char id1[256], id2[256], id3[256];
1139 char * ptr;
1140 char *src = *_src;
1141 char *dst = *_dst;
1142
1143 ptr = mystrtok( src, "(,)");
1144 ptr = mystrtok( NULL, "(,)"); // Get first ID
1145 strcpy( id1, ptr);
1146 ptr = mystrtok( NULL, "(,)"); // Get second ID
1147 strcpy( id2, ptr);
1148 ptr = mystrtok( NULL, "(,)"); // Get third ID
1149 strcpy( id3, ptr);
1150 *_src = ptr + strlen(ptr) + 1;
1151
1152 numCharsWritten = sprintf(dst, "%s = %s %c %s", id1, id2, op, id3);
1153 dst += numCharsWritten;
1154
1155 *_dst = dst;
1156}
1157
1158void kprintf::handleVLoadWithIncx(char **_src, char **_dst, bool ignoreFirst)
1159{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected