324_Book

# Each datum can be 1 2 or 4 bytes long each vector

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: her its ﬁrst argument is greater than or equal to its second. Assume the function f2u returns an unsigned 32-bit number having the same bit representation as its ﬂoating-point argument. You can assume that neither argument is Æ Æ . The two ﬂavors of zero: ·¼ and ¼ are considered equal. int float_ge(float x, float y) { unsigned ux = f2u(x); unsigned uy = f2u(y); /* Get the sign bits */ unsigned sx = ux &gt;&gt; 31; unsigned sy = uy &gt;&gt; 31; /* Give an expression using only ux, uy, sx, and sy */ return /* ... */ ; } Homework Problem 2.48 [Category 1]: Given a ﬂoating-point format with a -bit exponent and an Ò-bit fraction, give formulas for the exponent , signiﬁcand Å , the fraction , and the value Î for the following quantities. In addition, describe the bit representation. A. The number ¼ . B. The largest odd integer that can be represented exactly. C. The reciprocal of the smallest positive normalized value. Homework Problem 2.49 [Category 1]: Intel-compatible processors also support...
View Full Document

## This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online