| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Reported by: tijl
|
|
|
|
| |
Mea culpa.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
To prevent foot-shooting, add a _Static_assert() to guarantee that
_Complex_I is always a float _Complex. I'm not going to MFC this part of
the diff.
MFC after: 2 weeks
|
|
|
|
| |
bde and kargl.
|
|
|
|
| |
Not sure why we have math.h in lib/msun/ and complex.h in include/.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Rotting in an old src tree since: March 2005
|
| |
|
| |
|
|
|
|
|
|
|
| |
needed for cases where GCC's builtin functions cannot be used and for
compilers that don't know about them.
Approved by: das (mentor)
|
|
|
|
|
|
|
|
|
| |
arguments to the needed type and so the result type depended on the argument
type. Fixing them isn't really worth the effort because GCC emits the same
assembler code with or without them.
Not minded by: ru
Approved by: das (mentor)
|
|
|
|
|
|
| |
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
|
|
to fix the "-nostdinc WARNS=X" breakage caused by broken prototypes
for cabs() and cabsl() in <math.h>.
Reimplemented cabs() and cabsl() using new complex numbers types and
moved prototypes from <math.h> to <complex.h>.
|