This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12690] New: Wrong comment in header
- From: "ottavio at campana dot vi dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2003 15:24:51 -0000
- Subject: [Bug c/12690] New: Wrong comment in header
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12690
Summary: Wrong comment in header
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ottavio at campana dot vi dot it
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-linux
GCC host triplet: i386-linux
GCC target triplet: i386-linux
Ok, it's not very important, but it's an error. I was reading the file
/usr/lib/gcc-lib/i386-linux/3.3/include/mmintrin.h and I found this little error:
/* Creates a vector of four 16-bit values, all elements containing B. */
static __inline __m64
_mm_set1_pi8 (char __b)
{
unsigned int __w = (unsigned char)__b << 8 | (unsigned char)__b;
unsigned int __i = __w << 16 | __w;
return _mm_set1_pi32 (__i);
}
I don't think that the comment it's right. The __b gets duplicated in __w, then
__w gets duplicated in __i and get duplicated again in _mm_set1_pi32 . So the
comment should be:
/* Creates a vector of eight 8-bit values, all elements containing B. */