change log for rtems (2011-11-09)
rtems-vc at rtems.org
rtems-vc at rtems.org
Wed Nov 9 16:11:33 UTC 2011
*joel* (on branch rtems-4-10-branch):
2011-11-09 Werner Almesberger <werner at almesberger.net>
PR 1955/cpukit
* rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
M 1.25 cpukit/score/cpu/lm32/ChangeLog
M 1.12.2.1 cpukit/score/cpu/lm32/ChangeLog
M 1.15 cpukit/score/cpu/lm32/rtems/score/cpu.h
M 1.8.2.1 cpukit/score/cpu/lm32/rtems/score/cpu.h
diff -u rtems/cpukit/score/cpu/lm32/ChangeLog:1.24 rtems/cpukit/score/cpu/lm32/ChangeLog:1.25
--- rtems/cpukit/score/cpu/lm32/ChangeLog:1.24 Tue Sep 27 04:17:01 2011
+++ rtems/cpukit/score/cpu/lm32/ChangeLog Wed Nov 9 09:15:25 2011
@@ -1,3 +1,8 @@
+2011-11-09 Werner Almesberger <werner at almesberger.net>
+
+ PR 1955/cpukit
+ * rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
+
2011-09-27 Sebastian Huber <sebastian.huber at embedded-brains.de>
PR 1914/cpukit
diff -u rtems/cpukit/score/cpu/lm32/ChangeLog:1.12 rtems/cpukit/score/cpu/lm32/ChangeLog:1.12.2.1
--- rtems/cpukit/score/cpu/lm32/ChangeLog:1.12 Sat May 29 00:19:12 2010
+++ rtems/cpukit/score/cpu/lm32/ChangeLog Wed Nov 9 09:15:40 2011
@@ -1,3 +1,8 @@
+2011-11-09 Werner Almesberger <werner at almesberger.net>
+
+ PR 1955/cpukit
+ * rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
+
2010-05-29 Ralf Corsépius <ralf.corsepius at rtems.org>
* irq.c: Change _exception_stack_frame into void*.
diff -u rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.14 rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.15
--- rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.14 Tue Sep 27 04:17:02 2011
+++ rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h Wed Nov 9 09:15:25 2011
@@ -1258,8 +1258,10 @@
* @param[in] value is the value to be swapped
* @return the value after being endian swapped
*/
-#define CPU_swap_u16( value ) \
- (((value&0xff) << 8) | ((value >> 8)&0xff))
+static inline uint16_t CPU_swap_u16(uint16_t v)
+{
+ return v << 8 | v >> 8;
+}
#ifdef __cplusplus
}
diff -u rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.8 rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.8.2.1
--- rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.8 Sun Apr 25 09:58:27 2010
+++ rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h Wed Nov 9 09:15:40 2011
@@ -1272,8 +1272,10 @@
* @param[in] value is the value to be swapped
* @return the value after being endian swapped
*/
-#define CPU_swap_u16( value ) \
- (((value&0xff) << 8) | ((value >> 8)&0xff))
+static inline uint16_t CPU_swap_u16(uint16_t v)
+{
+ return v << 8 | v >> 8;
+}
#ifdef __cplusplus
}
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111109/be96def9/attachment-0001.html>
More information about the vc
mailing list