[riot-commits] [RIOT-OS/RIOT] f23771: tests: extend cib unittest

Ludwig Ortmann ludwig.ortmann at fu-berlin.de
Wed Dec 3 17:12:50 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: f23771c6fe736664393d0aee306a184100142456
      https://github.com/RIOT-OS/RIOT/commit/f23771c6fe736664393d0aee306a184100142456
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-11-11 (Tue, 11 Nov 2014)

  Changed paths:
    M tests/unittests/tests-core/tests-core-cib.c

  Log Message:
  -----------
  tests: extend cib unittest


  Commit: ab545f83b0c9eb0d3bb48b0e6006ab9527e4a1aa
      https://github.com/RIOT-OS/RIOT/commit/ab545f83b0c9eb0d3bb48b0e6006ab9527e4a1aa
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-11-11 (Tue, 11 Nov 2014)

  Changed paths:
    R core/cib.c
    M core/include/cib.h

  Log Message:
  -----------
  core: inline `cib.c`

The functions in `cib.h` are only used in `msg.c`. They are very small,
and proper function calls have a bigger overhead than inlining these
functions.

The difference in .text size (worst to best):

```
+104 native
+69  qemu-i386
+32  mbed_lpc1768
+28  samr21-xpro

-54  chronos
-54  z1
-56  iot-lab_M3
-56  msb-430
-56  msb-430h
-56  msba2
-56  openmote
-56  spark-core
-56  telosb
-56  wsn430-v1_3b
-56  wsn430-v1_4
-58  arduino-mega2560
-60  airfy-beacon
-60  arduino-due
-60  f4vi1
-60  msbiot
-60  pca10000
-60  pca10005
-60  stm32f0discovery
-60  stm32f3discovery
-60  stm32f4discovery
-60  udoo
-60  yunjia-nrf51822
-72  avsextrem
-72  pttu
-120 redbee-econotag
```


  Commit: a07b44781d2261f80553e828492697bbad5b93d2
      https://github.com/RIOT-OS/RIOT/commit/a07b44781d2261f80553e828492697bbad5b93d2
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-11-11 (Tue, 11 Nov 2014)

  Changed paths:
    M core/include/cib.h

  Log Message:
  -----------
  C++ -_-


  Commit: 8a9220a85c80e25bf86bb0150d545021333f37b4
      https://github.com/RIOT-OS/RIOT/commit/8a9220a85c80e25bf86bb0150d545021333f37b4
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-11-26 (Wed, 26 Nov 2014)

  Changed paths:
    M core/include/cib.h

  Log Message:
  -----------
  core: cib size must not exceed MAXINT/2


  Commit: e6c808d5fa984f722ddc0de803c0f51fdfa991e4
      https://github.com/RIOT-OS/RIOT/commit/e6c808d5fa984f722ddc0de803c0f51fdfa991e4
  Author: Ludwig Ortmann <ludwig.ortmann at fu-berlin.de>
  Date:   2014-12-03 (Wed, 03 Dec 2014)

  Changed paths:
    R core/cib.c
    M core/include/cib.h
    M tests/unittests/tests-core/tests-core-cib.c

  Log Message:
  -----------
  Merge pull request #1970 from Kijewski/optimize-cib

core: inline `cib.c`


Compare: https://github.com/RIOT-OS/RIOT/compare/27678333d336...e6c808d5fa98


More information about the commits mailing list