# IEEE Floating Point

Tools needed: editor of your choice

C programming language

Concepts needed: IEEE Floating point representation

bit operations

round to even

round toward zero

The following bit-level floating-point coding rules should be used when implementing the functions for this Project:

1. Your code should replicate the conventions for IEEE floating-point operations, including using round-to-even mode when rounding is required.

2. The data type float_bits is defined to be equivalent to unsigned:

/* access bit-level representation floating-point number *.

typedef unsigned float_bits;

3. Instead of using data type float in your code, you will use float_bits. Your are allowed to use standard control structures (selection, loops) and you may use both int and unsigned data types, including unsigned and integer constants and operations. You may not use any unions, structs, or arrays. You may not use any floating-point data types, operations, or constants. Any floating-point value will be of type float_bits, and any returned floating-point value will be of type float_bits. Your code should perform the bit manipulations that implement the specified floating-point operations.

Problem Statement: Following the bit-level floating-point coding rules given above, you are to implement the following single-precision floating-point operations:

float_bits float_abs(float_bits f); - this functions computes the absolute value of f. If f is NaN, your function should return f.

float_bits float_twice(float_bits f); - this function computes 2 * f. If f is NaN, your function should return f.

float_bits float_i2f(int i); - this functions computes the bit-level representation of (float) i.

int float_f2i(float_bits f); - this functions computes (int) f. Your function should round toward zero. If f cannot be represented as an integer (e.g., it is out of range, or it is NaN, then the function should return 0x80000000.

-Test each function by evaluating it for given values of the argument and comparing the result to what would be obtained using the CS machine's floating-point operations.

Due 4/22/13

Beceriler: C Programlama

İşveren Hakkında:
( 13 değerlendirme ) Clemson, United States

Proje NO: #4437417

## Seçilen:

hbxfnzwpf

I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years, please let expert help you.

3 gün içinde 45\$ USD
(12 Değerlendirme)
4.1

## 7 freelancer bu iş için ortalamada 46\$ teklif veriyor

Schura

I can do it.

in 4 gün içinde50\$ USD
(27 Değerlendirme)
4.8
jasqwerty

Hello, I'm a native English speaker with extensive technical experience. I have a degree in Comp Sci and have worked in the industry on lots of C projects. I can get it done in a day or two max.

in 2 gün içinde55\$ USD
(2 Değerlendirme)
2.4

Hello sir. I am interested for this job. I have great experience with c/c++ programming. If you want serious man who can start right now, then I am perfect choice. Regards vladang

in 3 gün içinde45\$ USD
(6 Değerlendirme)
2.2

I am Ready to Start this IEEE Floating Point because I have done this in Computer Architecture Many times and I can Easily Implement this.

in 3 gün içinde45\$ USD
(1 Değerlendirme)
1.8
grigiq

in 3 gün içinde40\$ USD
(1 Değerlendirme)
1.1
techhelp56935

Hi I can do this. Please check PMB.

in 3 gün içinde50\$ USD
(0 Değerlendirme)
0.0
jayvthakar

I have 6 years of experience with C. Please check the personal message I have sent to you.

in 2 gün içinde50\$ USD
(0 Değerlendirme)
0.0