Yulou Yang / Mbed 2 deprecated c_and_asm_mult

Dependencies:   mbed

Fork of c_and_asm by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
yangyulounk
Date:
Tue Apr 26 01:52:57 2016 +0000
Parent:
2:9d258b4b0d88
Commit message:
final version

Changed in this revision

mult_c.c Show annotated file Show diff for this revision Revisions of this file
--- a/mult_c.c	Tue Apr 26 01:52:16 2016 +0000
+++ b/mult_c.c	Tue Apr 26 01:52:57 2016 +0000
@@ -3,16 +3,7 @@
 #endif
 
     int mult_c(int c, int d) {
-        /*
-        int result=0;
-        for (int i=0;i<d;i++){
-        result+=c;
-        
-            }
-        return result;
-
-        */
-        return c*d;
+       return c*d;
     }
 
 #ifdef __cplusplus