This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: 14 return false; 15 memcpy(src, packet, ptr1  packet); 16 src[ptr1  packet] = 0; 17 return true; 18 } 19 20 void report_log(dst) { 21 char log[1024]; 22 sprintf(log, "[%2d%2d2d %2d:%2d:%2d] %s", . .., dst); 23 } 3) int (*a[5])(float) _________ //an array of size 5 pointers to functions which take a float argument and return an integer III Float pointer Consider the following 16bit floating point representation based on the IEEE floating point format: There is a sign bit in the most significant bit. The next k = 5 bits are the exponent. The last n= 10 bits are the fractional part. Bias is 15. Numeric values are encoded in this format as a value of the form (1) s * M * 2 E , where s is the sign bit, E is exponent after biasing, and M is the significand. Fill the following table for this floating point representation. Description E M Value 0 14 Smallest denorm 14 1/1024 1/2^24 Largest denorm 14 1023/1024 1023/2^24 Smallest norm 14 1 1/16384 or 1/2^14 1 1 1 Largest norm 15 2047/1024 65504...
View
Full Document
 Fall '10
 jing
 floating point representation, const char* packet

Click to edit the document details