search for: print_f32_sparc

Displaying 1 result from an estimated 1 matches for "print_f32_sparc".

2006 Nov 15
0
How to print out float/double arguments from arg0, arg1, ...?
...double type, such as from sin(), cos(), etc. By trial and error, I came up following macros. union { double d64; float f32[2]; int64_t s64; int32_t s32[2]; } VALUE; #define PRINT_F32_sparc(val) \ VALUE.s64 = val; \ printf("\n%s = %f\n", \ "val", VALUE.f32[1]); #define PRINT_F32_i386(val) \ VALUE.s64 = val; \ printf...