Arithmetic Functions (MATH) Sample Demo

Location

$TwlSDK/build/demos/math

Compilation

Move to the $TwlSDK/build/demos/math directory and enter

% make

 The compilation will begin, and the SRL executable file and the NEF or TEF files having binary information will be generated in $TwlSDK/build/demos/fs/(sample name)/bin/(platform)/(target)/.

$TwlSDK/build/demos/math/(sample name)/bin/(platform)/(target)/

 For example:

$TwlSDK/build/demos/math/misc-1/bin/ARM9-TS/Release/main.srl

will be the executable file for the misc-1 demo.

Execution

For NITRO ROMs:

If using the Ensata emulator:

If using IS-NITRO-DEBUGGER:

If using IS-TWL-DEBUGGER:

For TWL/NITRO HYBRID ROMs:

If using IS-NITRO-DEBUGGER:

If using IS-TWL-DEBUGGER:

For TWL LIMITED ROMs:

If using IS-TWL-DEBUGGER:

Description


Name Directories Operation
misc-1 demos Tests the operation of various math functions. The results are displayed on the debug output.
rand_lc demos Random number test using linear congruential generators.
qsort demos A test of the quicksort function. When the A Button is pressed, it rearranges data generated with random numbers.
fft-1 demos Carries out an operational test for the fast Fourier transform function. The results are displayed on the debug output.
fft-2 demos Runs the fast Fourier transform function on microphone input and carries out spectral display.
dgt-1 demos Tests the operation of the message digest and hash functions. The results are displayed in the debug output.
dgt-2 demos Compares the operation speed of the message digest and hash functions. The results are displayed in the debug output.

Operation

Operates normally in all operating environments.

See Also

MATH Features List

Revision History

2008/07/11 Changed descriptions to support TWL.
2005/07/05 Added a description of the fft-2 demo.
2005/05/13 Added a description of the fft-1 demo.
2005/05/10 Added a description of the misc-1 sample.
2005/04/18 Added descriptions for dgt-1, dgt-2 demos.
2005/04/12 Added qsort demo.
2005/03/02 Revised descriptions to reflect current support environment conditions.
2004/12/15 Initial version.


CONFIDENTIAL