<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-11-09)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
 <font color='#225522'><em>(on branch rtems-4-10-branch)</em></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-11-09 Werner Almesberger <werner@almesberger.net>

        PR 1955/cpukit
        * rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/ChangeLog.diff?r1=text&tr1=1.24&r2=text&tr2=1.25&diff_format=h">M</a></td><td width='1%'>1.25</td><td width='100%'>cpukit/score/cpu/lm32/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/ChangeLog.diff?r1=text&tr1=1.12&r2=text&tr2=1.12.2.1&diff_format=h">M</a></td><td width='1%'>1.12.2.1</td><td width='100%'>cpukit/score/cpu/lm32/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&diff_format=h">M</a></td><td width='1%'>1.15</td><td width='100%'>cpukit/score/cpu/lm32/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h.diff?r1=text&tr1=1.8&r2=text&tr2=1.8.2.1&diff_format=h">M</a></td><td width='1%'>1.8.2.1</td><td width='100%'>cpukit/score/cpu/lm32/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-11-09    Werner Almesberger <werner@almesberger.net>
+
+       PR 1955/cpukit
+       * rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
+
</font> 2011-09-27        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        PR 1914/cpukit

<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-11-09    Werner Almesberger <werner@almesberger.net>
+
+       PR 1955/cpukit
+       * rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
+
</font> 2010-05-29        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * irq.c: Change _exception_stack_frame into void*.

<font color='#006600'>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
</font><font color='#997700'>@@ -1258,8 +1258,10 @@
</font>  *  @param[in] value is the value to be swapped
  *  @return the value after being endian swapped
  */
<font color='#880000'>-#define CPU_swap_u16( value ) \
-  (((value&0xff) << 8) | ((value >> 8)&0xff))
</font><font color='#000088'>+static inline uint16_t CPU_swap_u16(uint16_t v)
+{
+    return v << 8 | v >> 8;
+}
</font> 
 #ifdef __cplusplus
 }

<font color='#006600'>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
</font><font color='#997700'>@@ -1272,8 +1272,10 @@
</font>  *  @param[in] value is the value to be swapped
  *  @return the value after being endian swapped
  */
<font color='#880000'>-#define CPU_swap_u16( value ) \
-  (((value&0xff) << 8) | ((value >> 8)&0xff))
</font><font color='#000088'>+static inline uint16_t CPU_swap_u16(uint16_t v)
+{
+    return v << 8 | v >> 8;
+}
</font> 
 #ifdef __cplusplus
 }
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>