Project

General

Profile

Bug #1469

sizeof call generates compilation error in src/gromacs/simd/impl_x86_sse2/impl_x86_sse2.h

Added by David van der Spoel over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
core library
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

The statement
#define gmx_simd_extract_fi(x, i) _mm_cvtsi128_si32(_mm_srli_si128((x), sizeof(int) * (i)))
generates a compilation error with gcc 4.8.2 probably due to the sizeof function returning an 8 byte value. Changing the sizeof(int) to 4 makes it compile.

History

#1 Updated by Erik Lindahl over 5 years ago

  • Status changed from New to Resolved

Fix was merged into git already on March 16 - see https://gerrit.gromacs.org/#/c/3272/ .

#2 Updated by Roland Schulz over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF