fixed spelling in a comment

This commit is contained in:
Jeff Hill
2007-03-30 20:22:04 +00:00
parent 6f14f8b620
commit 8f50c431f2
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -100,7 +100,7 @@ inline void WireGet < epicsFloat64 > (
const epicsUInt8 * pWireSrc, epicsFloat64 & dst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
union {
epicsFloat64 _f;
@@ -138,7 +138,7 @@ inline void WireSet < epicsFloat64 > (
const epicsFloat64 & src, epicsUInt8 * pWireDst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
union {
epicsFloat64 _f;
@@ -202,7 +202,7 @@ inline void AlignedWireGet < epicsFloat64 > (
const epicsFloat64 & src, epicsFloat64 & dst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
union Swapper {
epicsUInt32 _u[2];
@@ -258,7 +258,7 @@ inline void AlignedWireSet < epicsFloat64 > (
const epicsFloat64 & src, epicsFloat64 & dst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
union Swapper {
epicsUInt32 _u[2];
+5 -5
View File
@@ -162,14 +162,14 @@ union WireAlias < epicsFloat32 > {
// Missaligned unsigned wire format get/set can be implemented generically
// w/o performance penalty. Attempts to improve this on architectures that
// dont have alignement requirements will probably get into trouble with
// over-aggresive optimization under strict aliasing rules.
// over-aggressive optimization under strict aliasing rules.
//
template < class T >
inline void WireGet ( const epicsUInt8 * pWireSrc, T & dst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
WireAlias < T > tmp;
WireGet ( pWireSrc, tmp._u );
@@ -206,7 +206,7 @@ template < class T >
inline void WireSet ( const T & src, epicsUInt8 * pWireDst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
WireAlias < T > tmp;
tmp._o = src;
@@ -242,7 +242,7 @@ template < class T >
inline void AlignedWireGet ( const T & src, T & dst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
WireAlias < T > srcu, dstu;
srcu._o = src;
@@ -254,7 +254,7 @@ template < class T >
inline void AlignedWireSet ( const T & src, T & dst )
{
// copy through union here
// a) prevents over-aggresive optimization under strict aliasing rules
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
WireAlias < T > srcu, dstu;
srcu._o = src;