Math/MulTimeShort.c File Reference

Task to create two short numbers for muliplication. Execute for a fixed number of iterations the multiplication of two random short numbers. More...

#include <stdlib.h>
#include "problem.h"

Functions

void prepareInput (int inputSize)
 Select two random numbers in the range 1.
int execute ()
 Execute by invoking malloc(numElements) a total of numT times.
void postInputProcessing ()
 No postprocessing needed.
void problemUsage ()
 No specific problem usage.

Variables

static short m
 First random short.
static short n
 Second random short.
static int psize
 Number of times to compute multiplication.


Detailed Description

Task to create two short numbers for muliplication. Execute for a fixed number of iterations the multiplication of two random short numbers.

Author:
George Heineman
Date:
6/15/08

Function Documentation

int execute (  ) 

Execute by invoking malloc(numElements) a total of numT times.

.numElements

output sum to be sure is correct.

void postInputProcessing (  ) 

No postprocessing needed.

void prepareInput ( int  inputSize  ) 

Select two random numbers in the range 1.

.255

void problemUsage (  ) 

No specific problem usage.


Variable Documentation

short m [static]

First random short.

short n [static]

Second random short.

int psize [static]

Number of times to compute multiplication.

Algorithm Development Kit 1.0