aboutsummaryrefslogtreecommitdiff
path: root/src/common (follow)
AgeCommit message (Expand)AuthorFilesLines
2023-11-22tuklib_integer: Fix typo discovered by codespell.Jia Tan1-1/+1
2023-10-22mythread.h: Make MYTHREAD_POSIX compatible with MinGW-w64's winpthreads.Lasse Collin1-1/+22
2023-10-18tuklib_integer: Revise unaligned reads and writes on strict-align archs.Lasse Collin1-67/+189
2023-10-18tuklib_integer: Add missing write64be and write64le fallback functions.Lasse Collin1-0/+34
2023-09-24tuklib_physmem: Comment out support for Windows versions older than 2000.Lasse Collin1-11/+9
2023-09-24sysdefs.h: Update the comment about __USE_MINGW_ANSI_STDIO.Lasse Collin1-1/+9
2023-09-22MSVC: #define inline and restrict only when needed.Lasse Collin1-5/+8
2023-09-22tuklib: Update tuklib_attr_noreturn for C11/C17 and C23.Lasse Collin2-3/+23
2023-08-08mythread.h: Fix typo error in Vista threads mythread_once().Jamaika11-1/+1
2023-08-01mythread.h: Disable signal functions in builds targeting Wasm + WASI.ChanTsune1-1/+1
2023-05-04tuklib_integer.h: Reverts previous commit.Jia Tan1-2/+2
2023-05-04tuklib_integer.h: Changes two other UINT_MAX == UINT32_MAX to >=.Jia Tan1-2/+2
2023-05-03tuklib_integer.h: Fix a recent copypaste error in Clang detection.Lasse Collin1-2/+2
2023-04-19Windows: Include <intrin.h> when needed.Jia Tan1-0/+6
2023-04-19tuklib_integer: Use __builtin_clz() with Clang.Jia Tan1-3/+3
2023-01-26tuklib_physmem: Check for __has_warning before GCC version.Lasse Collin1-3/+3
2023-01-24Revert "tuklib_common: Define __has_warning if it is not defined."Lasse Collin1-7/+0
2023-01-24tuklib_physmem: Clean up the way -Wcast-function-type is silenced on Windows.Lasse Collin1-4/+13
2023-01-19tuklib_physmem: Silence warning from -Wcast-function-type on MinGW-w64.Jia Tan1-0/+9
2023-01-19tuklib_common: Define __has_warning if it is not defined.Jia Tan1-0/+7
2023-01-12xz: Silence warnings from -Wsign-conversion in a 32-bit build.Lasse Collin1-1/+1
2023-01-12liblzma: Silence a warning from -Wsign-conversion in a 32-bit build.Lasse Collin1-2/+2
2023-01-10sysdefs.h: Don't include strings.h anymore.Lasse Collin1-6/+0
2023-01-10sysdefs.h: Fix a comment.Lasse Collin1-1/+1
2023-01-10sysdefs.h: Don't include memory.h anymore even if it were available.Lasse Collin1-6/+2
2023-01-06Style: Change #if !defined() to #ifndef in mythread.h.Jia Tan1-1/+1
2023-01-02Build: Only define HAVE_PROGRAM_INVOCATION_NAME if it is set to 1.Jia Tan2-2/+2
2022-12-30liblzma: Includes sys/time.h conditionally in mythreadJia Tan1-1/+7
2022-12-30Build: No longer require HAVE_DECL_CLOCK_MONOTONIC to always be set.Jia Tan1-2/+2
2022-10-31Windows: Fix mythread_once() macro with Vista threads.Lasse Collin1-3/+4
2022-10-20tuklib_cpucores: Use HW_NCPUONLINE on OpenBSD.Lasse Collin1-0/+9
2022-10-05tuklib_integer: Add 64-bit endianness-converting reads and writes.Lasse Collin1-2/+44
2022-09-28tuklib_physmem: Fix Unicode builds on Windows.Lasse Collin1-1/+1
2020-07-12Windows: Fix building of resource files when config.h isn't used.Lasse Collin1-1/+3
2020-02-22Use defined(__GNUC__) before __GNUC__ in preprocessor lines.Lasse Collin1-1/+2
2020-02-20tuklib_exit: Add missing header.Lasse Collin1-0/+1
2020-02-18Revert the previous commit and add a comment.Lasse Collin1-7/+10
2020-02-17Do not check for HAVE_CONFIG_H in tuklib_config.h.Lasse Collin1-8/+7
2020-02-16sysdefs.h: Omit the conditionals around string.h and limits.h.Lasse Collin1-6/+2
2019-12-31Rename unaligned_read32ne to read32ne, and similarly for the others.Lasse Collin1-34/+30
2019-12-31Rename read32ne to aligned_read32ne, and similarly for the others.Lasse Collin1-28/+28
2019-12-31Revise tuklib_integer.h and .m4.Lasse Collin1-217/+271
2019-07-12Fix comment typos in tuklib_mbstr* files.Lasse Collin3-3/+3
2019-07-12Add missing include to tuklib_mbstr_width.c.Lasse Collin1-0/+1
2019-07-12Update tuklib base headers to include stdbool.h.Lasse Collin2-1/+2
2019-06-23tuklib_mbstr_width: Fix a warning from -Wsign-conversion.Lasse Collin1-1/+1
2019-06-23tuklib_cpucores: Silence warnings from -Wsign-conversion.Lasse Collin1-5/+5
2019-06-23tuklib_integer: Silence warnings from -Wsign-conversion.Lasse Collin1-3/+3
2019-06-20tuklib_integer: Fix usage of conv macros.Lasse Collin1-4/+8
2019-06-01tuklib_integer: Cleanup MSVC-specific code.Lasse Collin1-11/+9
2019-06-01tuklib_integer: Improve unaligned memory access.Lasse Collin1-12/+168
2018-01-10tuklib_integer: New Intel C compiler needs immintrin.h.Lasse Collin1-0/+11
2017-04-19Update the home page URLs to HTTPS.Lasse Collin1-1/+1
2016-10-24tuklib_cpucores: Add support for sched_getaffinity().Lasse Collin1-0/+9
2015-11-08tuklib_physmem: Hopefully silence a warning on Windows.Lasse Collin1-1/+2
2015-03-29Fix the detection of installed RAM on QNX.Lasse Collin1-1/+13
2015-02-10tuklib_cpucores: Use cpuset_getaffinity() on FreeBSD if available.Lasse Collin1-0/+18
2015-02-03Add a few casts to tuklib_integer.h to silence possible warnings.Lasse Collin1-12/+12
2014-12-21Fix build when --disable-threads is used.Lasse Collin1-0/+2
2014-10-09Add support for AmigaOS/AROS to tuklib_physmem().Lasse Collin1-0/+7
2014-01-12Windows: Add MSVC defines for inline and restrict keywords.Lasse Collin1-0/+10
2014-01-12Fix typos in comments.Lasse Collin1-1/+1
2013-09-17Add native threading support on Windows.Lasse Collin1-111/+402
2013-08-04Fix the previous commit which broke the build.Lasse Collin1-1/+1
2013-08-03Windows: Add Windows support to tuklib_cpucores().Lasse Collin1-1/+12
2012-12-14liblzma: Fix mythread_sync for nested locking.Lasse Collin1-2/+3
2011-08-09Workaround unusual SIZE_MAX on SCO OpenServer.Lasse Collin1-3/+6
2011-05-28Don't call close(-1) in tuklib_open_stdxxx() on error.Lasse Collin1-1/+3
2011-05-17Don't use clockid_t in mythread.h when clock_gettime() isn't available.Lasse Collin1-0/+2
2011-04-19Fix portability problems in mythread.h.Lasse Collin1-4/+27
2011-04-10Revise mythread.h.Lasse Collin1-20/+180
2011-01-18Add alloc_size and malloc attributes to a few functions.Lasse Collin1-0/+6
2010-12-12Add missing PRIx32 and PRIx64 compatibility definitions.Lasse Collin1-0/+9
2010-10-23Windows: Use MinGW's stdio functions.Lasse Collin1-0/+5
2010-10-09Windows: Update common_w32res.rc.Lasse Collin1-6/+3
2010-09-10xz: Multiple fixes.Lasse Collin3-0/+161
2010-09-07Fix use of N_() and ngettext().Lasse Collin1-2/+2
2010-05-26Rename MIN() and MAX() to my_min() and my_max().Lasse Collin1-7/+5
2010-05-26Better #error message.Lasse Collin1-2/+2
2010-05-10Updates to tuklib_physmem and tuklib_cpucores.Lasse Collin2-3/+44
2010-02-12Collection of language fixes to comments and docs.Lasse Collin2-2/+2
2010-01-27Silence two compiler warnings on DOS-like systems.Lasse Collin1-1/+5
2010-01-12Add IRIX-specific code to tuklib_physmem and tuklib_cpucores.Lasse Collin2-0/+25
2009-11-26Typo fix to sysdefs.h.Lasse Collin1-1/+1
2009-11-22Update tuklib_integer.h with bit scan functions.Lasse Collin1-8/+181
2009-10-04Use a tuklib module for integer handling.Lasse Collin4-223/+357
2009-09-27Work around a bug in Interix header files.Lasse Collin1-0/+6
2009-09-22Avoid non-standard preprocessor construct.Lasse Collin1-4/+7
2009-09-21Make sure that TUKLIB_DOSLIKE doesn't get defined on Cygwin.Lasse Collin1-1/+2
2009-09-19Various changes.Lasse Collin14-65/+410
2009-09-05Add OS/2-specific code to physmem.h.Lasse Collin1-11/+21
2009-09-05Use sysctl() != -1 instead of !sysctl() to check ifLasse Collin2-2/+2
2009-08-29Fix sysctl() usage.Lasse Collin2-2/+2
2009-07-18Added public domain notice into a few files.Lasse Collin1-1/+8
2009-06-27Make physmem() work on Cygwin 1.5 and older.Lasse Collin1-37/+40
2009-06-27Moved the Windows resource files outside the windows directoryLasse Collin1-0/+46
2009-06-24Support HW_PHYSMEM64Lasse Collin1-11/+19
2009-04-13Put the interesting parts of XZ Utils into the public domain.Lasse Collin7-31/+21
2009-03-18Fix wrong macro names in lc_cpucores.m4 and cpucores.h.Lasse Collin1-2/+2
2009-02-15Make physmem.h work on old Windows versions.Lasse Collin1-4/+27
2009-02-14Cleanups to the code that detects the amount of RAM andLasse Collin2-8/+65
2009-02-13Improve support for DOS-like systems.Lasse Collin2-0/+16
2009-02-08Fix aliasing issue in physmem.h.Lasse Collin1-9/+10
2009-02-05Various code cleanups the the xz command line tool.Lasse Collin1-0/+13
2009-01-31Add LZMA_API to liblzma API headers. It's useful at leastLasse Collin1-2/+0
2009-01-07Use pthread_sigmask() instead of sigprocmask() when pthreadsLasse Collin1-0/+6
2008-12-31Remove lzma_init() and other init functions from liblzma API.Lasse Collin1-0/+34
2008-11-19Oh well, big messy commit again. Some highlights:Lasse Collin3-14/+17
2008-09-11Fix a compiler error on big endian systems that don'tLasse Collin1-14/+18
2008-08-28Sort of garbage collection commit. :-| Many things are stillLasse Collin2-17/+51
2008-06-18Update the code to mostly match the new simpler file formatLasse Collin2-0/+211
2008-05-11Remove support for pre-C89 libc versions that lack memcpy,Lasse Collin1-13/+2
2008-01-16Added ARRAY_SIZE(array) macro.Lasse Collin1-0/+4
2008-01-08More pre-C99 inttypes.h compatibility fixes. Now the codeLasse Collin1-11/+0
2008-01-06Introduced compatibility with systems that have pre-C99Lasse Collin1-1/+58
2007-12-09Imported to git.Lasse Collin3-0/+227