]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib_blackfin/muldi3.c
[Blackfin]PATCH-1/2]: Remove obsolete blackfin port and add bf533 platform support
[people/ms/u-boot.git] / lib_blackfin / muldi3.c
index 1fc34e3d932d49cce4ad5fe1c9f5ecd169bc896e..da55711dd7451f405f5370ea14ad60e8641fc792 100644 (file)
@@ -64,29 +64,29 @@ do {                                                                        \
        __w.ll; })
 #endif
 
-typedef unsigned int USItype    __attribute__ ((mode (SI)));
-typedef int SItype     __attribute__ ((mode (SI)));
-typedef int DItype     __attribute__ ((mode (DI)));
-typedef        int word_type __attribute__ ((mode (__word__)));
+typedef unsigned int USItype __attribute__ ((mode(SI)));
+typedef int SItype __attribute__ ((mode(SI)));
+typedef int DItype __attribute__ ((mode(DI)));
+typedef int word_type __attribute__ ((mode(__word__)));
 
-struct DIstruct {SItype low, high;};
-typedef union
-{
+struct DIstruct {
+       SItype low, high;
+};
+typedef union {
        struct DIstruct s;
        DItype ll;
 } DIunion;
 
-DItype __muldi3 (DItype u, DItype v)
+DItype __muldi3(DItype u, DItype v)
 {
        DIunion w;
        DIunion uu, vv;
 
-       uu.ll = u,
-       vv.ll = v;
+       uu.ll = u, vv.ll = v;
        /*  panic("kernel panic for __muldi3"); */
-       w.ll = __umulsidi3 (uu.s.low, vv.s.low);
+       w.ll = __umulsidi3(uu.s.low, vv.s.low);
        w.s.high += ((USItype) uu.s.low * (USItype) vv.s.high
-       + (USItype) uu.s.high * (USItype) vv.s.low);
+                    + (USItype) uu.s.high * (USItype) vv.s.low);
 
        return w.ll;
 }