Shiva,
For what it's worth, I'm in the early stages of a rewrite that removes
the use of the __typeof__ keyword (though that was not the reason for
the rewrite). But this won't help you anytime soon.
According to gcc documentation, __type__ is ISO C [1]. MSVC is notorious
for being standards non-compliant, and we tend to not change our code to
accommodate these kinds of broken development tools. That said, someone
on the mailing list may (hopefully) have a workaround.
Field
[1]
https://gcc.gnu.org/onlinedocs/gcc/Typeof.html
On 6/18/20 2:05 PM, Shivaprashanth H wrote:
> In generated blis.h file, I see a macro as below using __typeof__ keyword.
> as per my understanding (spent good amount of time googling around),
> this keyword is not supported in msvc compiler.
>
> #define bli_cxxpbyris( xr, xi, br, bi, yr, yi ) \
> { \
> const*__typeof__* (yr) yt_r = (xr) + (br) * (yr) - (bi) * (yi); \
> const*__typeof__* (yi) yt_i = (xi) + (bi) * (yr) + (br) * (yi); \
> (yr) = yt_r; \
> (yi) = yt_i; \
> }
>
> switching to decltype, auto or _Generic keywords has not helped.
> I think this is the only issue if resolved will make blis.h compilable
> in msvc
> is there any alternate to __typeof__ which is portable across different
> compilers?
>
>
> Disclaimer:This message is intended only for the designated
> recipient(s). It may contain confidential or proprietary information and
> may be subject to other confidentiality protections. If you are not a
> designated recipient, you may not review, copy or distribute this
> message. Please notify the sender by e-mail and delete this message.
> GlobalEdge does not accept any liability for virus infected mails.
>
> --
> You received this message because you are subscribed to the Google
> Groups "blis-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
blis-devel+...@googlegroups.com
> <mailto:
blis-devel+...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/blis-devel/650fd825-b08f-4e1e-b79f-5ed74f745889o%40googlegroups.com
> <
https://groups.google.com/d/msgid/blis-devel/650fd825-b08f-4e1e-b79f-5ed74f745889o%40googlegroups.com?utm_medium=email&utm_source=footer>.