]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r229590 manually:
authored <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Feb 2012 15:28:28 +0000 (15:28 +0000)
committered <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Feb 2012 15:28:28 +0000 (15:28 +0000)
commitf169d7043e1c0487508f1f69bbc5a78e2bcb31ae
tree914fc12a3272dba3d51c57def9c817b8305b3ce6
parent99ddf77fd73871897403bc542b31bd7b3367ed58
MFC r229590 manually:

  It turns out our GCC has quite an interesting bug:

        typeof(1.0fi) != float _Complex
        typeof((float _Complex)1.0fi) != float _Complex
        typeof((float _Complex)1.0i) == float _Complex

  In other words: if casting to an equal size, GCC seems to take a
  shortcut. By casting down from a double to a float, GCC doesn't take
  this shortcut, yielding the proper type.

git-svn-id: svn://svn.freebsd.org/base/stable/9@231282 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
include/complex.h