// file: $PDSP/class/float_8/v1.0/flt8_dbg_0.cc // // isip include files // #include "float_8.h" #include // method: debug_cc // // arguments: // FILE* fp_p: (input) file pointer to output the debug information to // char_1* message_p: (input) a message to be concatenated to each debug // message // // return: a logical_1 indicating the status // logical_1 Float_8::debug_cc(FILE* fp_a, char_1* message_a) { // dump internal data // fprintf(fp_a, "%s: data value: %f\n", message_a, value_d); fprintf(fp_a, "%s: num_mults_d: %ld\n", message_a, num_mults_d); fprintf(fp_a, "%s: num_adds_d: %ld\n", message_a, num_adds_d); fprintf(fp_a, "%s: num_objs_d: %ld\n", message_a, num_objs_d); fprintf(fp_a, "%s: max_num_objs_d: %ld\n", message_a, max_num_objs_d); // exit gracefully // return ISIP_TRUE; }