Remove stdio.h include from test bubblesort.

There's no need to include stdio.h.

ChangeLog:

	* src/bubblesort/bubblesort.c: Remove stdio.h include.
There's no need for a +1 on SCALE_FACTOR of test cubic.

Having a +1 on the scale factor for test cubic doesn't make much
difference.  Having all the SCALE_FACTOR defines follow a known
pattern allows for easier scripted changes.

ChangeLog:

	* src/cubic/basicmath_small.c (SCALE_FACTOR): Remove the +1.
Whitespace fixes in SCALE_FACTOR definition in test fasta.

Just making things consistent and easier to read.

ChangeLog:

	* src/fasta/fasta.c (SCALE_FACTOR): Whitespace fixes.
Remove the bubblesort_quick test.

It was strange that we had two variations on bubble sort that only
varied on the number of times the benchmark loop was run.  The
user can always adjust the SCALE_FACTOR to run a test more or less if
they wish.

ChangeLog:

	* src/bubblesort/Makefile.am: Remove bubblesort_quick test.
	* src/bubblesort/Makefile.in: Regenerate.
	* src/bubblesort/bubblesort.c (BUBBLESORT_RSHIFT): Remove.
	(SCALE_FACTOR): No longer rely on BUBBLESORT_RSHIFT.
Remove test sglib-listinsertsort1.

The two tests sglib-listinsertsort and sglib-listinsertsort1 were
basically identical.  By the time macro expansion had occurred the
only difference would depend on whether the compiler chose to inline a
function or not, not sufficiently different to justify being a
separate test.

Merge these two tests into one, I've taken the code from
sglib-listinsertsort1, but renamed it to sglib-listinsertsort.

ChangeLog:

	* configure.ac: Remove sglib-listinsertsort1.
	* configure: Regenerate.
	* src/sglib-listinsertsort/Makefile.am: Remove general automake
	HOWTO comment.
	* src/sglib-listinsertsort/Makefile.in: Regenerate.
	* src/sglib-listinsertsort/listinsertsort.c: Copied from old
	listinsertsort1.
	* src/sglib-listinsertsort/sglib.h (SGLIB_LIST_LEN): Remove
	declaraion of _ce_.
	* src/sglib-listinsertsort1/Makefile.am: Removed.
	* src/sglib-listinsertsort1/Makefile.in: Removed.
	* src/sglib-listinsertsort1/listinsertsort1.c: Removed.
	* src/sglib-listinsertsort1/sglib.h: Removed.
Remove all the gdb-* tests.

These tests, taken from the gdb testsuite are not representetive of
any real work load, they are artificial tests designed to exercise
features of the debugger.

Tests removed gdb-advance, gdb-all-types, gdb-anon, gdb-arrayidx,
gdb-async, gdb-auxv, gdb-bitfields, gdb-constvars, gdb-store.

ChangeLog:

	* configure.ac: Remove all the gdb-* tests.
	* configure: Regenerate.
	* src/gdb-advance/Makefile.am: Deleted.
	* src/gdb-advance/Makefile.in: Deleted.
	* src/gdb-advance/advance.c: Deleted.
	* src/gdb-all-types/Makefile.am: Deleted.
	* src/gdb-all-types/Makefile.in: Deleted.
	* src/gdb-all-types/all-types.c: Deleted.
	* src/gdb-anon/Makefile.am: Deleted.
	* src/gdb-anon/Makefile.in: Deleted.
	* src/gdb-anon/anon.c: Deleted.
	* src/gdb-arrayidx/Makefile.am: Deleted.
	* src/gdb-arrayidx/Makefile.in: Deleted.
	* src/gdb-arrayidx/arrayidx.c: Deleted.
	* src/gdb-async/Makefile.am: Deleted.
	* src/gdb-async/Makefile.in: Deleted.
	* src/gdb-async/async.c: Deleted.
	* src/gdb-auxv/Makefile.am: Deleted.
	* src/gdb-auxv/Makefile.in: Deleted.
	* src/gdb-auxv/auxv.c: Deleted.
	* src/gdb-bitfields/Makefile.am: Deleted.
	* src/gdb-bitfields/Makefile.in: Deleted.
	* src/gdb-bitfields/bitfields.c: Deleted.
	* src/gdb-constvars/Makefile.am: Deleted.
	* src/gdb-constvars/Makefile.in: Deleted.
	* src/gdb-constvars/constvars.c: Deleted.
	* src/gdb-store/Makefile.am: Deleted.
	* src/gdb-store/Makefile.in: Deleted.
	* src/gdb-store/store.c: Deleted.
Convert crc32 test to a single source file, add GPL header.

Merge the contents of the LICENCE file and the header file into the
single source file for the crc32 test.
As the LICENCE is free with no restrictions, I've added a GPL header to
this version of the code.

ChangeLog:

	* src/crc32/LICENSE: Removed.
	* src/crc32/crc.h: Removed.
	* src/crc32/crc_32.c: Add licence information originally from
	LICENCE, add a GPL header.  Add in contents of header file.
	(updateCRC32): Remove, unused.
	* src/crc32/Makefile.am: Remove crc.h and LICENCE references.
	* src/crc32/Makefile.in: Regenerate.
Merge tests ctl-stack and ctl-vector into a single directory.

The tests ctl-stack and ctl-vector are basically the same except on
different container types.  Merge these two tests into a single source
directory.

ChangeLog:

	* configure.ac: Remove ctl-stack and ctl-vector, add ctl.
	* configure: Regenerate.
	* src/ctl-stack/Makefile.am: Remove.
	* src/ctl-stack/Makefile.in: Remove.
	* src/ctl-stack/ctl.h: Remove.
	* src/ctl-stack/stack.c: Remove.
	* src/ctl-vector/Makefile.am: Remove.
	* src/ctl-vector/Makefile.in: Remove.
	* src/ctl-vector/vector.c: Remove.
	* src/ctl-vector/ctl.h: Move to src/ctl/ctl.h.
	* src/ctl-stack/stack.h: Move to src/ctl/stack.h.
	* src/ctl-vector/vector.h: Move to src/ctl/vector.h.
	* src/ctl/Makefile.am: New file.
	* src/ctl/Makefile.in: Generated.
	* src/ctl/ctl.c New file, merging old stack.c and vector.c.
	* src/ctl/ctl.h: Moved from src/ctl-vector/ctl.h.
	* src/ctl/stack.h: Moved from src/ctl-vector/stack.h.
	* src/ctl/vector.h: Moved from src/ctl-vector/vector.h.
Add GPL header to the ctl test.

The in-file comment suggests it is acceptable to place these files under
a GPL licence.

ChangeLog:

	* src/ctl/ctl.h: Add GPL header.
	* src/ctl/stack.h: Add GPL header.
	* src/ctl/vector.h: Add GPL header.
Add GPL header to test bs.

This code is public domain, within BEEBS it's GPL.

ChangeLog:

	* src/bs/bs.c: Add GPL header.
Add GPL header to the dijkstra test.

The LICENCE file for test dijkstra declares the code GPL.  I've added a
GPL header to the source file, copied the LICENCE file into the source
file and deleted the extra LICENCE file.

ChangeLog:

	* src/dijkstra/LICENSE: Removed.
	* src/dijkstra/Makefile.am: Remove reference to LICENCE file.
	* src/dijkstra/dijkstra_small.c: Add GPL header, and copy in the
	original contents of the LICENCE file.
Add GPL header to the miniz test.

ChangeLog:

	* src/miniz/miniz.c: Add GPL header.
	* src/miniz/miniz.h: Add GPL header.
Add GPL header to two header files in nettle-des test.

ChangeLog:

	* src/nettle-des/keymap.h: Add GPL header.
	* src/nettle-des/rotors.h: Add GPL header.
Add GPL header to the picojpeg test source.

This source is public domain, the BEEBS version is GPL.

ChangeLog:

	* src/picojpeg/picojpeg.c: Add GPL header.
	* src/picojpeg/picojpeg.h: Add GPL header.
Regenerate Makefile.in for dijkstra after commit 64e1ea3.

Forgot to commit the regenerated file Makefile.in after commit 64e1ea3.

ChangeLog:

	* src/dijkstra/Makefile.in: Regenerate after commit 64e1ea3.
Merge sglib-arraysort and sglib-arraysort1 tests.

The sglib-arraysort and sglib-arraysort1 tests are based on example code
shipped with sglib.  These two tests used different API to access the
sort routines, and also used different sort algorithms (heap vs quick).

For BEEBS we don't care about the different APIs, these make very
little, or no, difference to performance, however, the different search
algorithms might.

This patch merges the two array sorts together, using one API approach,
but testing both sort algorithms.

ChangeLog:

	* configure.ac: Remove sglib-arraysort1.
	* configure: Regenerate.
	* src/sglib-arraysort/Makefile.am: Add support for quick sort and
	heap sort variants.
	* src/sglib-arraysort/Makefile.in: Regenerate.
	* src/sglib-arraysort/arraysort.c (benchmark): Add quick sort and
	heap sort variants.
	* src/sglib-arraysort/sglib.h (SGLIB___ARRAY_HEAP_DOWN): Remove
	unused variable _t_.
	* src/sglib-arraysort1/Makefile.am: Removed.
	* src/sglib-arraysort1/arraysort1.c: Removed.
	* src/sglib-arraysort1/sglib.h: Removed.
	* src/sglib-arraysort1/Makefile.in: Removed.
Add GPL headers to sglib-* tests.

The sglib can be licensed under GPL, so add GPL headers to these files.

ChangeLog:

	* src/sglib-arraybinsearch/sglib.h: Add GPL header.
	* src/sglib-arraysort/sglib.h: Add GPL header.
	* src/sglib-dllist/sglib.h: Add GPL header.
	* src/sglib-hashtable/sglib.h: Add GPL header.
	* src/sglib-listinsertsort/sglib.h: Add GPL header.
	* src/sglib-listsort/sglib.h: Add GPL header.
	* src/sglib-queue/sglib.h: Add GPL header.
	* src/sglib-rbtree/sglib.h: Add GPL header.
Remove duplicate 'Suite' in BEEBS header comments.

When I fixed the expansion of BEEBS a while back, in some cases (lots of
the Makefile.am files) the word Suite was actually on the following
line.
When I automatically updated the expansion I failed to spot this, and
added the word Suite in a second time.

This patch I remove the duplicate word 'Suite' and regenerate the
Makefile.in files.

ChangeLog:

	* Makefile.am: Remove duplicate word 'Suite' in header.
	* Makefile.in: Regenerate.
	* analysis/Makefile.am: Remove duplicate word 'Suite' in header.
	* src/*/Makefile.am: Likewise.
	* src/*/Makefile.in: Regenerate.
Add GPL headers to the platform code.

This is all helper code written to facilitate running on different
targets.  This can all be placed under GPL.

ChangeLog:

	* src/platformcode/msp430.s: Add GPL header.
	* src/platformcode/pic32mx.ld: Add GPL header.
	* src/platformcode/pic32mx_startup.s: Add GPL header.
	* src/platformcode/platformcode.h: Add GPL header.
	* src/platformcode/sam4lxplained.ld: Add GPL header.
	* src/platformcode/startup.S: Add GPL header.
	* src/platformcode/startup.c: Add GPL header.
	* src/platformcode/stm32f05_flash.ld: Add GPL header.
	* src/platformcode/stm32vl_flash.ld: Add GPL header.
Use SCALE_FACTOR to control repeat count in test compress.

The test compress incorrectly uses REPEAT_FACTOR not SCALE_FACTOR to
control how many times the benchmark is run.

ChangeLog:

	* src/compress/compress.c (main): Use SCALE_FACTOR not
	REPEAT_FACTOR.