MCPcopy Create free account
hub / github.com/apache/madlib / printout_double

Function printout_double

methods/svec/src/pg_gp/SparseData.c:185–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void printout_double(double *vals, int num_values, int stop)
186{
187 (void) stop; /* avoid warning about unused parameter */
188 char *output_str = (char *)palloc(sizeof(char)*(num_values*(6+18+2))+1);
189 char *str = output_str;
190 int numout;
191 for (int i=0; i<num_values; i++) {
192 numout = snprintf(str,26,"%6.2f,%#llX,",vals[i],
193 *((long long unsigned int *)(&(vals[i]))));
194 str += numout-1;
195 }
196 *str = '\0';
197 elog(NOTICE,"doubles:%s",output_str);
198}
199void printout_index(char *ix, int num_values, int stop)
200{
201 (void) stop; /* avoid warning about unused parameter */

Callers 1

printout_sdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected