NO

Recent Posts

Pages: [1] 2 3 ... 10
1
Windows questions / Re: Useful links...
« Last post by larryli on May 20, 2022, 11:40:55 am »
Windows API tutorial using Pelles C.

https://zetcode.com/gui/winapi/
2
In case any forum member are using vCardz_i - A new version is posted on SourceForge - https://sourceforge.net/projects/vcardz/  which was updated using Pelles C version 11.  Version 2.5.3.2 has many improvements over 2.1.5 mentioned above. 

Feedback always welcome.

John Z
3
Bug reports / Re: Pelles 11 'Find dialog' possible non-critical bug
« Last post by frankie on May 11, 2022, 01:34:07 pm »
Yes, I confirm the bug.
4
Bug reports / Pelles 11 'Find dialog' possible non-critical bug
« Last post by John Z on May 11, 2022, 01:19:28 pm »
Has anyone else experienced this?  I don't think it is my system or installation.

Running Windows 11,  plus Pelles C version 11.

When I use the Find dialog box and pick a previously searched find string from the drop down list the 'Find Next' button does not become active.  It seems it is only active after actually typing in the 'Find What' field. Kind of defeats the purpose of the drop down box.  Example screen shots attached.

John Z
5
Bug reports / Re: expected 'signed char' but found '__m128i'
« Last post by frankie on May 08, 2022, 09:16:12 pm »
Thanks for explanation Pelle
6
Bug reports / Re: expected 'signed char' but found '__m128i'
« Last post by Pelle on May 08, 2022, 06:52:37 pm »
Unfortunately you are allowed to initialize individual elements of a SIMD type with MSVC (it would have been much better if SIMD types always behaved like BLOBs, like in other compilers). This complicates parsing of initializers for SIMD types (with or without /Ze): it can be a SIMD, or a union of arrays with various scalar types and lengths.

The initializer parsing needs to be rewritten anyway, for other/better reasons than this, but this is going to take some considerable time...
7
Bug reports / Re: expected 'signed char' but found '__m128i'
« Last post by frankie on May 08, 2022, 02:52:25 pm »
You're welcome Robert.
I made some more tests, specifically using the zero initialization for structures:
Code: [Select]
  struct processed_utf_bytes previous = {0};
This, as should be expected, works.
But compiling your header file triggers an internal compiler error:
Code: [Select]
fatal error: Internal error: cast_tree(#1).
Maybe Pelle can have a look on it.
On the other hand, using the same initialization in a simple program as below compiles and runs without errors:
Code: [Select]
#include <stdio.h>
#include <immintrin.h>

struct test__m128i
{
  __m128i rawbytes;
  __m128i high_nibbles;
  __m128i carried_continuations;
};

int main(int argc, char *argv[])
{
struct test__m128i t = {0};
printf("Hello World! %lld\n", *(long long int *)&t);
}
At this point is hard to say where the problem is, probably inside the compiler itself.
Let wait for Pelle...  :P
8
Bug reports / Re: expected 'signed char' but found '__m128i'
« Last post by Robert on May 06, 2022, 08:37:58 pm »
Thanks frankie, that gives me a go ahead for now.
9
Bug reports / Re: expected 'signed char' but found '__m128i'
« Last post by frankie on May 06, 2022, 02:33:49 pm »
Pelles C 11.00.2, This code

Code: [Select]
struct processed_utf_bytes previous = {.rawbytes = _mm_setzero_si128(),
                                       .high_nibbles = _mm_setzero_si128(),
                                       .carried_continuations =
                                           _mm_setzero_si128()};

is producing these errors

Code: [Select]
simdutf8check.h(162): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(163): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(165): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
Apparently you can't call intrinsic function inside an initialization. Changing initialization to:
Code: [Select]
struct processed_utf_bytes previous;
previous.rawbytes = _mm_setzero_si128();
previous.high_nibbles = _mm_setzero_si128();
previous.carried_continuations = _mm_setzero_si128();
Seems to work.
Anyway there are still many warnings:
Code: [Select]
warning #2071: Overflow or truncation in constant expression.
10
Bug reports / expected 'signed char' but found '__m128i'
« Last post by Robert on May 06, 2022, 06:38:33 am »
Pelles C 11.00.2, This code

Code: [Select]
struct processed_utf_bytes previous = {.rawbytes = _mm_setzero_si128(),
                                       .high_nibbles = _mm_setzero_si128(),
                                       .carried_continuations =
                                           _mm_setzero_si128()};

is producing these errors

Code: [Select]
simdutf8check.h(162): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(163): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.
simdutf8check.h(165): error #2082: Invalid initialization type; expected 'signed char' but found '__m128i'.

where the struct members have been declared as

Code: [Select]
struct processed_utf_bytes {
  __m128i rawbytes;
  __m128i high_nibbles;
  __m128i carried_continuations;
};

in the attached file.
Pages: [1] 2 3 ... 10