Note: This is an obsolete section of the FreeRTOS website. If you want to view these pages but cannot see the menu frame then click here. Otherwise click here to visit the main FreeRTOS website.

16bit Arithmetic
[Software Test Details]

For the first test the operation was the addition of two volatile unsigned 16bit numbers, with the result also stored in a volatile unsigned 16bit number. The operation was performed 20 times within the timed period, with each operation using a different set or combination of variables. The test was then repeated with a multiplication in place of the addition, then again with a division in place of the multiplication.

Standard C code was used to declare the variables, and perform the additions/multiplications/divisions. Volatile variables were used to prevent the development tools optimizing the operation away, and to force the result to be written to RAM.

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2015 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOS distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd..