contributed by < TingSheng >
Quiz1 - Problem C
Promblem Describe
We implement fp16_to_fp32 function (with clz), which converts a 16-bit floating-point number in IEEE half-precision format (bit representation) to a 32-bit floating-point number in IEEE single-precision format (bit representation).
clz function counts the number of leading zero bits in the binary representation of an unsigned integer, starting from the most significant bit (MSB). It returns an integer representing how many zero bits precede the first 1 in the binary representation of the number. If the input is zero, the output is "undefined".
C code of fp16_to_fp32
static inline int my_clz(uint32_t x) {