]> git.wh0rd.org - ICEs.git/blob - bfin-bfdsp/test.c
initial import
[ICEs.git] / bfin-bfdsp / test.c
1 #include <stdio.h>
2 #include "float16.h"
3
4 int main(){
5 fract16 a = 1, b = 2;
6 float16 a16,b16,c16;
7
8 a16 = fr16_to_fl16(a);
9 b16 = fr16_to_fl16(b);
10 c16 = add_fl16(a16,b16);
11 printf("\n\r Result is %f",fl16_to_fl(c16));
12
13 return 0;
14 }
15