- hello.c prints does what it is supposed to do
git-svn-id: http://moon:8086/svn/mips@8 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
+1
-14
@@ -1,19 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define A 0.5
|
|
||||||
#define B 0.55
|
|
||||||
|
|
||||||
_Sat long _Fract sat_add3 (_Sat long _Fract a, _Sat long _Fract b)
|
|
||||||
{
|
|
||||||
return a + b;
|
|
||||||
}
|
|
||||||
|
|
||||||
long _Fract mul3 (long _Fract a, long _Fract b)
|
|
||||||
{
|
|
||||||
return a * b;
|
|
||||||
}
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
printf("hello %X + %X = %X\n", (_Sat long _Fract)A, (_Sat long _Fract)B, sat_add3(A, B));
|
printf("Hello, world!\n");
|
||||||
printf("hello %X * %X = %X\n", (_Sat long _Fract)A, (_Sat long _Fract)B, mul3(A, B));
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user