Changeset a8af6a8 in git
- Timestamp:
- Jul 30, 2012, 11:40:04 AM (12 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 86aa4d5c1040128ae11af385a7d11c3d770d370e
- Parents:
- ed667705fe7e65276090037dbcb57ee42dc3023f
- git-author:
- Martin Lee <martinlee84@web.de>2012-07-30 11:40:04+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-30 17:24:23+02:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_util.cc
red66770 ra8af6a8 48 48 } 49 49 50 int igcd( int a, int b ) 51 { 52 if ( a < 0 ) a = -a; 53 if ( b < 0 ) b = -b; 54 55 int c; 56 57 while ( b != 0 ) 58 { 59 c = a % b; 60 a = b; 61 b = c; 62 } 63 return a; 64 } 65 50 66 #include<stdio.h> 51 67 #include<stdlib.h> -
factory/cf_util.h
red66770 ra8af6a8 15 15 int ipower ( int b, int n ); 16 16 int ilog2 (int a); 17 int igcd (int a, int b); 17 18 18 19 /*BEGINPUBLIC*/
Note: See TracChangeset
for help on using the changeset viewer.