[fpc-pascal] For..in enumerator for generic records?

2016-11-29 Thread Ryan Joseph
I have a generic record I would like to enumerate using for..in loops. Is this even possible? I tried briefly and it wasn’t clear this was possible so I thought I’d ask first. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pasc

[fpc-pascal] Using the LCL without Lazarus

2016-11-29 Thread BobJ
Most of the viewers of this message are probably already aware that I am totally blind and must rely on screen-reading software to put to voice that which appears on the computer's video display. Unfortunately, there is more than one technique for "painting" a video display, some of which are

Re: [fpc-pascal] SysSetCtrlBreakHandler

2016-11-29 Thread Tomas Hajny
On Tue, November 29, 2016 20:47, Dmitry Boyarintsev wrote: Hello Dmitry, > A question regarding your comment ( > http://bugs.freepascal.org/view.php?id=31023#c96393) > Specifically ad 2) > > Is it fine to safe-guard access to SpecialKey / ScanCode through the whole > crt unit? My only concern is

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: 'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to have AVX2 support. Very interesting. I will be pleased to compare it (on OS X) with Apple's Accelerate framework and with Intel's IPP lib

Re: [fpc-pascal] SysSetCtrlBreakHandler

2016-11-29 Thread Dmitry Boyarintsev
Hello Tomas A question regarding your comment ( http://bugs.freepascal.org/view.php?id=31023#c96393) Specifically ad 2) Is it fine to safe-guard access to SpecialKey / ScanCode through the whole crt unit? My only concern is that there're many places that has to be adjusted making the patch rather

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > > > > http://www.freepascal.org/docs-html/3.0.0/prog/progsu9.html > > I skipped over it looking for a $dataalign. $codealign for dataalignement, a > bit of a misnomer. Oh, and thanks, obviously :-) __

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
In our previous episode, Adriaan van Os said: > > 'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to > > have AVX2 support. > > Very interesting. I will be pleased to compare it (on OS X) with Apple's > Accelerate framework and > with Intel's IPP lib

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > > I wonder if it is possible to align constants used for shuffling > > (array[0..31] of byte typically) on 32-byte borders, > > http://www.freepascal.org/docs-html/3.0.0/prog/progsu9.html I skipped over it looking for a $dataalign. $codealign for dataa

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Jonas Maebe
Adriaan van Os wrote: > Jonas Maebe wrote: >> >> http://www.freepascal.org/docs-html/3.0.0/prog/progsu9.html > > But that is the code alignment, not the data alignment > ? It's for everything (there is no such thing as a "code constant

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Adriaan van Os
Marco van de Voort wrote: 'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to have AVX2 support. Very interesting. I will be pleased to compare it (on OS X) with Apple's Accelerate framework and with Intel's IPP lib . Jonas Maebe

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Jonas Maebe
marcov wrote on Tue, 29 Nov 2016: I wonder if it is possible to align constants used for shuffling (array[0..31] of byte typically) on 32-byte borders, http://www.freepascal.org/docs-html/3.0.0/prog/progsu9.html Jonas ___ fpc-pascal maillist - f

[fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
I'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to have AVX2 support. I wonder if it is possible to align constants used for shuffling (array[0..31] of byte typically) on 32-byte borders, so that I can use them directly in the code. Till now I preloaded the constants usi