-
Notifications
You must be signed in to change notification settings - Fork 0
/
pa2.h
28 lines (24 loc) · 803 Bytes
/
pa2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//---------------------------------------------------------------
//
// 4190.308 Computer Architecture (Fall 2021)
//
// Project #2: FP10 (10-bit floating point) Representation
//
// October 5, 2021
//
// Jaehoon Shim ([email protected])
// Ikjoon Son ([email protected])
// Seongyeop Jeong ([email protected])
// Systems Software & Architecture Laboratory
// Dept. of Computer Science and Engineering
// Seoul National University
//
//---------------------------------------------------------------
#ifndef _PA2_H_
#define _PA2_H_
typedef unsigned short int fp10;
fp10 int_fp10(int n); // convert int -> fp10
int fp10_int(fp10 x); // convert fp10 -> int
fp10 float_fp10(float f); // convert float -> fp10
float fp10_float(fp10 x); // convert fp10 -> float
#endif /* _PA2_H_ */