michael@0: /* michael@0: * Simple test driver for MPI library michael@0: * michael@0: * Test 1: Simple input test (drives single-digit multiply and add, michael@0: * as well as I/O routines) michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: #ifdef MAC_CW_SIOUX michael@0: #include michael@0: #endif michael@0: michael@0: #include "mpi.h" michael@0: michael@0: int main(int argc, char *argv[]) michael@0: { michael@0: int ix; michael@0: mp_int mp; michael@0: michael@0: #ifdef MAC_CW_SIOUX michael@0: argc = ccommand(&argv); michael@0: #endif michael@0: michael@0: mp_init(&mp); michael@0: michael@0: for(ix = 1; ix < argc; ix++) { michael@0: mp_read_radix(&mp, argv[ix], 10); michael@0: mp_print(&mp, stdout); michael@0: fputc('\n', stdout); michael@0: } michael@0: michael@0: mp_clear(&mp); michael@0: return 0; michael@0: }