/scanf implementation via the __USE_MINGW_ANSI_STDIO macro, then
you will see that %z will work.
To write portable code you can use the 'PRI/SCN' defines from inttypes.h header.
Kai
2018-01-25 16:27 GMT+01:00 lemonsqueeze :
Hi,
I'm looking for a portable way to print a size_t.
I th
Hi,
I'm looking for a portable way to print a size_t.
I thought "%zu" was the recommended way to do it, but I'm getting
unknown format warnings when printf() is called with "%zu".
I guess i can use something like %llu instead but shouldn't this work in
C99 mode really ? (must be missing somet
Here's the whole benchmark so far:
tls method 1 thread 2 threads
---linux--
__thread610 100% 600 98%
---mingw--
[ TlsGet
pthread_self()
- own array-based tls using GetCurrentThreadId()
Fastest so far is the last one, getting comparable perf with linux
(8% slower instead of 30%).
On 01/15/2018 10:22 PM, lemonsqueeze wrote:
Hi,
Typically what kind of performance should I expect when porting
cpu-intensive code from
Hi,
Typically what kind of performance should I expect when porting
cpu-intensive code from linux to mingw-w64 ?
I'm doing some experiments with a particular C99 app:
linux i686 gcc 4.8vswindows x86 mingw-w64 7.2 (msys2)
same hardware (intel atom)
Surprisingly it's getting almost 30%