Tomek, It will initialize first value to the constant that you've supplied and the rest will be zero-initialized.
Compile your code to see what's going on: > ispc --emit-llvm-text t.ispc -o - Dmitry. On Tue, Nov 5, 2019 at 3:38 AM Tomek <[email protected]> wrote: > Hi, > > I'd like to initialise like this: > > float array[576] = {0.}; > > This compiles, but does it work? > > Thank you:) > Tomek > > > -- > You received this message because you are subscribed to the Google Groups > "Intel SPMD Program Compiler Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ispc-users/c7e32903-1345-4c58-a9c7-00e21e7a3726%40googlegroups.com > <https://groups.google.com/d/msgid/ispc-users/c7e32903-1345-4c58-a9c7-00e21e7a3726%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Intel SPMD Program Compiler Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ispc-users/CACRFwuhpyW3zvq0%3DK8auj2nDWyhEa4OTL4bGB6T79nGHfBj9kQ%40mail.gmail.com.
