14 #include "../PBpblas.h"
15 #include "../PBtools.h"
16 #include "../PBblacs.h"
17 #include "../PBblas.h"
53 int gcd=1, m_val, n_val, t;
58 if( M > N ) { m_val = N; n_val = M; }
59 else { m_val = M; n_val = N; }
63 while( !( m_val & 1 ) )
85 n_val -= ( n_val & 1 ) ? m_val : 0;
87 while( n_val >= m_val )
93 n_val -= ( n_val & 1 ) ? m_val : 0;
103 return ( n_val * gcd );