Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHI #32 Implement complete public API #34

Merged
merged 319 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
319 commits
Select commit Hold shift + click to select a range
317c841
GHI #32 Add WILL_FAIL_IF_ANY_NOT
doodspav May 19, 2024
3a50a69
GHI #32 Remove WILL_FAIL_IF_ALL_SUCCEED_FALSE
doodspav May 19, 2024
6d91bd1
GHI #32 Add COMPILER_HAS_STDINT and PATOMIC_HAS_STDINT
doodspav May 19, 2024
a06e024
GHI #32 Make use of WILL_FAIL_IF_ANY_NOT
doodspav May 19, 2024
2e01f44
GHI #32 Minor fix to COMPILER_HAS_STDDEF_INTPTR_EXTN
doodspav May 19, 2024
cfe5390
GHI #32 Replace empty set() with unset()
doodspav May 19, 2024
e2ce8c8
GHI #32 Add empty stdint.h
doodspav May 19, 2024
e4cc0ca
GHI #32 Add llong, int128, and intptr to stdint.h
doodspav May 20, 2024
c4a64fc
GHI #32 Implement align.c
doodspav May 20, 2024
56f0eb8
GHI #32 Remove warning guard CMake option PATOMIC_INCLUDES_WITH_SYSTEM
doodspav May 25, 2024
27c1b86
GHI #32 Rename PATOMIC_INSTALL_CMAKEDIR to CMAKE_INSTALL_CMAKEDIR
doodspav May 25, 2024
1a39662
GHI #32 Rename PATOMIC_BUILD_SHARED to PATOMIC_BUILD_SHARED_LIBS
doodspav May 25, 2024
a537860
GHI #32 Add FULL paths for cache variables
doodspav May 25, 2024
220d99b
GHI #32 List include sources in src/ CML not root CML
doodspav May 25, 2024
15dff71
GHI #32 Prevent warning about old GNUInstallDirs_get_absolute_install…
doodspav May 25, 2024
9848e39
GHI #32 Update issues in include/ from CLion Nova additional findings
doodspav Jun 4, 2024
ae750b4
GHI #32 Update issues in src/ from CLion Nova additional findings
doodspav Jun 4, 2024
385f25b
GHI #32 Improve CMake except for in /test
doodspav Jun 5, 2024
aa15b23
GHI #32 Improve CMake in /test
doodspav Jun 5, 2024
191ba9d
GHI #32 Add gtest include dir to include target
doodspav Jun 5, 2024
78f05ec
GHI #32 Minor missed thing in CreateTest
doodspav Jun 5, 2024
122224e
GHI #32 Remove unnecessary include
doodspav Jun 5, 2024
9567766
GHI #32 Add const to align.c
doodspav Jun 5, 2024
5d646db
GHI #32 Rename PATOMIC_VERSION to PATOMIC_VERSION_STRING for clarity
doodspav Jun 8, 2024
66908bb
GHI #32 Add patomic_version_string() function
doodspav Jun 8, 2024
5206259
GHI #32 Fix PATOMIC_VERSION_COMPATIBLE_WITH
doodspav Jun 8, 2024
66925eb
GHI #32 Warn about SemVer limitations (major version 0)
doodspav Jun 8, 2024
c9f736c
GHI #32 Improve docs in align.h
doodspav Jun 8, 2024
67c621d
GHI #32 Declare all align.cpp test cases
doodspav Jun 8, 2024
4ca3d8c
GHI #32 Add common test headers
doodspav Jun 8, 2024
24dc6ff
GHI #32 Add const to old tests
doodspav Jun 8, 2024
60e9b81
GHI #32 Check that alignments are valid
doodspav Jun 8, 2024
9e1d0c0
GHI #32 Add align.hpp for test commmon
doodspav Jun 8, 2024
e097f87
GHI #32 Implement aligned_pointer
doodspav Jun 8, 2024
5eecb9b
GHI #32 Implement some align tests
doodspav Jun 8, 2024
c701010
GHI #32 Add runtime_alignof for tests
doodspav Jun 9, 2024
cbe05bc
GHI #32 Improve runtime_alignof
doodspav Jun 9, 2024
52006dd
GHI #32 Make use of runtime_alignof
doodspav Jun 9, 2024
ff3c827
GHI #32 Don't use runtime_alignof for invalid alignments
doodspav Jun 9, 2024
18d01cc
GHI #32 Finish BTs for align and fix off-by-one error
doodspav Jun 9, 2024
d62dbca
GHI #32 Implement version functions
doodspav Jun 9, 2024
54b3082
GHI #32 Improve memory_order BT case names
doodspav Jun 9, 2024
f8fbabc
GHI #32 Test version functions
doodspav Jun 9, 2024
c3c54c4
GHI #32 Improve test case names
doodspav Jun 9, 2024
1dc5476
GHI #20 Add compiler checks for function name identifiers
doodspav Jun 11, 2024
3823bf3
GHI #32 Add PATOMIC_FUNC_NAME macro
doodspav Jun 11, 2024
6b5d7a1
GHI #32 Add check for noreturn attribute
doodspav Jun 11, 2024
f91e0d2
GHI #32 `static` must come before `_Noreturn`
doodspav Jun 11, 2024
7f30a8a
GHI #32 Add PATOMIC_NORETURN function attribute
doodspav Jun 11, 2024
c8e0477
GHI #32 Update CMake
doodspav Jun 11, 2024
cd77918
GHI #32 Add checks for __assume and __builtin_unreachable
doodspav Jun 12, 2024
10116ae
GHI #32 Add PATOMIC_UNREACHABLE
doodspav Jun 12, 2024
59f0aa3
GHI #32 Make compiler checks singular
doodspav Jun 12, 2024
62978b8
GHI #32 HasIntegerType is now HasType
doodspav Jun 12, 2024
03910d0
GHI #32 HasIdentifier is now HasVariable
doodspav Jun 12, 2024
5eb9233
GHI #32 HasBuiltin is now HasFunction
doodspav Jun 12, 2024
c711127
GHI #32 PATOMIC_HAS_STDINT moved to HasHeader.cmake
doodspav Jun 12, 2024
4cd9401
GHI #32 Add PATOMIC_HAS_WCHAR_H (and add _H suffix to PATOMIC_HAS_STD…
doodspav Jun 12, 2024
822f3d4
GHI #32 Add PATOMIC_HAS_WCHAR_{FWIDE, FWPRINTF}
doodspav Jun 12, 2024
8953e8c
GHI #32 Add assert.h in stdlib
doodspav Jun 12, 2024
033b72f
GHI #32 Move types/version.c to patomic_version.c
doodspav Jun 12, 2024
69f4a94
GHI #32 Minor ifdef fixes
doodspav Jun 12, 2024
35317f1
GHI #32 Move pow2 functions into math.h from align.c
doodspav Jun 12, 2024
e561a68
GHI #32 Implement ids.h
doodspav Jun 12, 2024
2c97ad9
GHI #32 Clarify docs
doodspav Jun 12, 2024
96e0663
GHI #32 Required unsigned types for patomic_unsigned maths functions
doodspav Jun 12, 2024
be223ed
GHI #32 Don't allow creation functions to be nullable in register.h
doodspav Jun 13, 2024
bc09c8a
GHI #32 Add BtTypesIds
doodspav Jun 13, 2024
7412b7d
GHI #32 Fix fxprint with wide strings
doodspav Jun 13, 2024
49e8150
GHI #32 Remove spaces
doodspav Jun 13, 2024
e776721
GHI #32 Implement some test cases for BtTypesIds
doodspav Jun 13, 2024
e724077
GHI #32 Register an empty stdc implementation
doodspav Jun 13, 2024
a60dab6
GHI #32 Implement more cases for BtTypesIds
doodspav Jun 13, 2024
7bf80a3
GHI #32 Finish cases for BtTypesIds
doodspav Jun 13, 2024
63d21f8
GHI #32 Skip empty set
doodspav Jun 13, 2024
85610c6
GHI #32 Fix and simplify assert.c for msvc
doodspav Jun 13, 2024
8405cd6
GHI #32 Fix BtTypesIds for msvc
doodspav Jun 13, 2024
db2c4bf
GHI #32 Fix BtTypesAlign.meets_minimum_fails_buffer_fits_but_misalign…
doodspav Jun 13, 2024
a068ebf
GHI #32 Add empty BtTypesFeatureCheck
doodspav Jun 15, 2024
d34fdef
GHI #32 Add spec, flag, and raw ops to transaction ops
doodspav Jun 15, 2024
577b9e8
GHI #32 Implement opcat-only feature check functions
doodspav Jun 15, 2024
7d19c9d
GHI #32 Add patomic_unsigned_is_pow2_or_zero to math.h
doodspav Jun 15, 2024
f777df7
GHI #32 Implement remaining feature_check functions
doodspav Jun 15, 2024
291df59
GHI #32 Rename feature_check src files
doodspav Jun 15, 2024
9ea81df
GHI #32 Remove some static casts from BtTypesIds
doodspav Jun 15, 2024
5125bb5
GHI #32 Add helper type convertible_to_any
doodspav Jun 15, 2024
cd04bfe
GHI #32 patomic::patomic and PATOMIC_{BINARY, SOURCE}_DIR are require…
doodspav Jun 16, 2024
b734ecc
GHI #32 patomic-test-include now has patomic include dirs
doodspav Jun 16, 2024
506dc65
GHI #32 Add make_ops helper functions for tests
doodspav Jun 16, 2024
8031a1b
GHI #32 Implement make_ops helpers
doodspav Jun 16, 2024
215d000
GHI #32 Define all test cases for any/all feature check
doodspav Jun 16, 2024
0727660
GHI #32 Rename some files
doodspav Jun 16, 2024
283c436
GHI #32 Add a static_assert check
doodspav Jun 16, 2024
9fabf73
GHI #32 Implement easy tests
doodspav Jun 16, 2024
cf3c814
GHI #32 Rename files again
doodspav Jun 16, 2024
86b768e
GHI #32 Declare a bunch more ops helpers
doodspav Jun 16, 2024
26e4735
GHI #32 Implement all new ops helpers
doodspav Jun 16, 2024
fd6fdc3
GHI #32 Add more ops helpers
doodspav Jun 16, 2024
36a2b68
GHI #32 Redeclare some ops helpers
doodspav Jun 16, 2024
8e3eee8
GHI #32 Improve ops helpers (impl)
doodspav Jun 16, 2024
626adc2
GHI #32 Add a bunch of consts
doodspav Jun 16, 2024
340da06
GHI #32 Add some (broken) feature check tests
doodspav Jun 16, 2024
300b68a
GHI #32 Fix broken test
doodspav Jun 16, 2024
4f5aeca
GHI #32 Add test counterpart
doodspav Jun 16, 2024
5d814f2
GHI #32 Add explicit tests
doodspav Jun 16, 2024
0382433
GHI #32 Add transaction tests
doodspav Jun 16, 2024
2a46060
GHI #32 Update make_ops API
doodspav Jun 16, 2024
158f0e6
GHI #32 Implement new make_ops API
doodspav Jun 16, 2024
f3c163c
GHI #32 Add LDST tests
doodspav Jun 17, 2024
c8ecfc6
GHI #32 Add XCHG tests
doodspav Jun 17, 2024
bdecf65
GHI #32 Add BIT tests
doodspav Jun 17, 2024
dba6a47
GHI #32 Add BIN(_V/F) tests
doodspav Jun 17, 2024
e4d648d
GHI #32 Add ARI(_V/F) tests
doodspav Jun 17, 2024
ed9fca6
GHI #32 Add TSPEC tests
doodspav Jun 17, 2024
f5da82c
GHI #32 Add TFLAG tests
doodspav Jun 17, 2024
ff1c63a
GHI #32 Add TRAW tests
doodspav Jun 17, 2024
7667834
GHI #32 Add test::make_ops_all_nonnull<D>
doodspav Jun 17, 2024
7b6acdf
GHI #32 Add full test
doodspav Jun 17, 2024
8d66670
GHI #32 Introduce BtTypesFeatureCheckLeaf
doodspav Jun 17, 2024
200f707
GHI #32 Add to_string helper for ops_domain
doodspav Jun 17, 2024
d9eb636
GHI #32 Use to_string for GetName because of msvc limitations
doodspav Jun 17, 2024
d219b6f
GHI #32 Add base leaf tests
doodspav Jun 17, 2024
a1cb6ff
GHI #32 Add check_leaf_full leaf tests
doodspav Jun 17, 2024
8179ae6
GHI #32 Add opkinds to make_ops helpers
doodspav Jun 17, 2024
b2ccb85
GHI #32 Add ldst, xchg, bitwise leaf checks
doodspav Jun 17, 2024
38f3a7b
GHI #32 Add bin, ari leaf checks
doodspav Jun 17, 2024
aba32f8
GHI #32 Add tspec, tflag, traw leaf checks
doodspav Jun 17, 2024
b5e9fe6
GHI #32 Add make_opcats and make_opkinds helpers
doodspav Jun 17, 2024
03cd260
GHI #32 Use make_opcats in any/alll
doodspav Jun 17, 2024
0d8fbf6
GHI #32 Check invalid bits not unset in any/all
doodspav Jun 17, 2024
20a326c
GHI #32 Rename some test cases
doodspav Jun 17, 2024
a37ad2f
GHI #32 Rename type_traits test header to utility
doodspav Jun 17, 2024
b46d4e2
GHI #32 Use make functions in leaf check
doodspav Jun 17, 2024
7c65bc5
GHI #32 Add templated death test for feature check leaf
doodspav Jun 17, 2024
188020e
GHI #32 Make full_opcat unsigned int instead of patomic_opcat_t
doodspav Jun 17, 2024
8615508
GHI #32 Add death tests for leaf check
doodspav Jun 17, 2024
9902383
GHI #32 Perform opcat check before short circuit in check_leaf
doodspav Jun 17, 2024
8904ef5
GHI #32 Add final leaf check tests
doodspav Jun 17, 2024
61fb42d
GHI #32 Fix tests
doodspav Jun 17, 2024
d9fb271
GHI #32 Move patomic_version/export into types
doodspav Jun 17, 2024
6637aca
GHI #32 Move types to api
doodspav Jun 17, 2024
1a0e929
GHI #32 Update /include and header guards
doodspav Jun 17, 2024
2b3d9e1
GHI #32 Update /src (half)
doodspav Jun 17, 2024
f21468d
GHI #32 Move types to api in /src
doodspav Jun 17, 2024
3ff737b
GHI #32 Rename patomic_config to config
doodspav Jun 17, 2024
191e355
GHI #32 Update /test includes
doodspav Jun 17, 2024
3bd815e
GHI #32 Move /test types to api
doodspav Jun 17, 2024
a61b253
GHI #32 Rename BTs from Types to Api
doodspav Jun 17, 2024
53fe1ee
GHI #32 Reformat bt and st CML files
doodspav Jun 17, 2024
c77d824
GHI #32 Remove uts
doodspav Jun 17, 2024
88e5c3f
GHI #32 Add BtApiOptions
doodspav Jun 17, 2024
0881dc6
GHI #32 Improve docs
doodspav Jun 18, 2024
c2c9fb4
GHI #32 Move combine functions into their own file
doodspav Jun 18, 2024
4b2f6f7
GHI #32 Move patomic_(explicit)t definitions to combine.h
doodspav Jun 18, 2024
a418997
GHI #32 Move the patomic_*t types into core.h
doodspav Jun 18, 2024
13335ab
GHI #32 Implement combine operations
doodspav Jun 18, 2024
5261416
GHI #32 Keep null pointer stability (sounds crazy ik)
doodspav Jun 18, 2024
376554b
GHI #32 Add make_ops_all_nonnull overload that takes a function point…
doodspav Jun 18, 2024
a4e26b7
GHI #32 Add empty BtApiCombine
doodspav Jun 18, 2024
fff8b08
GHI #32 Reorder some stuff
doodspav Jun 18, 2024
86fc934
GHI #32 Fix SET_MIN_NZ to work correctly
doodspav Jun 19, 2024
5ed58cf
GHI #32 Improve docs
doodspav Jun 19, 2024
ebed267
GHI #32 Rework make_ops.cpp so that functions are more modular
doodspav Jun 20, 2024
363abab
GHI #32 Add overloads that take a nonnull_vaue
doodspav Jun 20, 2024
d204f83
GHI #32 Add some base stuff in make_ops.cpp
doodspav Jun 20, 2024
50cc81c
GHI #32 Define make_ops_array functions for IET opcats
doodspav Jun 21, 2024
0c600c8
GHI #32 Define make_ops_array functions for transaction-only opcats
doodspav Jun 21, 2024
55dcf81
GHI #32 Rename base_t to ldst_t and use base_t for patomic*_t
doodspav Jun 21, 2024
db42e3a
GHI #32 Create all empty tests for BtApiCombine(T)
doodspav Jun 24, 2024
3e96a35
GHI #32 Implement (in-)equality comparison operators for patomic_align_t
doodspav Jun 24, 2024
c92e2a5
GHI #32 Implement combine tests that apply to all ops at once
doodspav Jun 24, 2024
8e34c89
GHI #32 Implement combine tests that apply to ldst ops
doodspav Jun 25, 2024
e2b9c81
GHI #32 Implement combine tests that apply to ldst ops (fix)
doodspav Jun 25, 2024
2bdeeac
GHI #32 Make align objects global for ease of reuse
doodspav Jun 25, 2024
057391c
GHI #32 Implement combine tests that apply to xchg ops
doodspav Jun 25, 2024
e80a96b
GHI #32 Implement combine tests that apply to bitwise ops
doodspav Jun 25, 2024
9822ba9
GHI #32 Implement combine tests that apply to binary ops
doodspav Jun 25, 2024
d01c1a3
GHI #32 Implement combine tests that apply to arithmetic ops
doodspav Jun 25, 2024
c0f8cdd
GHI #32 Mark some tests as slow
doodspav Jun 25, 2024
eef5790
GHI #32 Note something in docs todo
doodspav Jun 25, 2024
252ff90
GHI #32 Abstract away qsort as patomic_sort
doodspav Jun 25, 2024
7968c49
GHI #32 Rename patomic_sort to patomic_array_sort
doodspav Jun 25, 2024
7eeb2cf
GHI #32 Provide non-exported patomic_internal_combine(_explicit)
doodspav Jun 25, 2024
6bd0a81
GHI #32 Move helper/combine_internal.h to internal/combine.h
doodspav Jun 25, 2024
a991036
GHI #32 Add patomic_internal_compare_align
doodspav Jun 25, 2024
1fb60c5
GHI #32 Make compare_align per domain
doodspav Jun 25, 2024
f0b118a
GHI #32 Undo last commit
doodspav Jun 25, 2024
528427e
GHI #32 Define patomic_create(_explicit)
doodspav Jun 25, 2024
cb6e2a6
GHI #32 Add internal variants of feature_check_any
doodspav Jun 26, 2024
5dcc53c
GHI #32 Only consider impls which support at least one op
doodspav Jun 26, 2024
8f8019c
GHI #32 Implement patomic_create_transaction
doodspav Jun 26, 2024
898d702
GHI #32 Fix create_ut's include paths
doodspav Jun 27, 2024
fb31b03
GHI #32 Use custom test::KilledByAbort predicate
doodspav Jun 27, 2024
7cd1a5d
GHI #32 Improve check for testing::KilledBySignal availability
doodspav Jun 27, 2024
4a5705a
GHI #32 Improve docs [skip-ci]
doodspav Jun 28, 2024
693a91b
GHI #32 Get 100% coverage from BtApiAlign [skip-ci]
doodspav Jun 28, 2024
2478300
GHI #32 Improve BtApiAlign [skip-ci]
doodspav Jun 28, 2024
23ae7ea
GHI #32 Add case to get BtApiCombine to 100% [skip ci]
doodspav Jun 28, 2024
9afacb2
GHI #32 Add cases to get BtApiFeatureCheckAnyAll to 100% [skip ci]
doodspav Jun 28, 2024
614495a
GHI #32 Add case to get BtApiFeatureCheckLeaf to higher % [skip ci]
doodspav Jun 28, 2024
b5c209f
GHI #32 Add patomic_terminate [skip ci]
doodspav Jun 28, 2024
cd122e2
GHI #32 Call patomic_terminate instead of abort [skip ci]
doodspav Jun 28, 2024
e1122e6
GHI #32 Rename killed_by.hpp to death.hpp [skip ci]
doodspav Jun 28, 2024
9b1af64
GHI #32 Rename terminate to abort [skip ci]
doodspav Jun 29, 2024
40709b3
GHI #32 Try to exclude lines from coverage
doodspav Jun 30, 2024
cbaa765
GHI #32 Add necessary includes for tests
doodspav Jun 30, 2024
165fd2f
GHI #32 Replace bit_width with UINT_BIT_WIDTH
doodspav Jul 8, 2024
133d0e4
GHI #32 Fix using ~ with std::bitset
doodspav Jul 8, 2024
fa902c9
GHI #32 Fix literal comparison vs .size()
doodspav Jul 8, 2024
302d774
GHI #32 Ignore warnings about C++17 attributes
doodspav Jul 8, 2024
383f6a7
GHI #32 Debug GitHub Actions (1)
doodspav Jul 8, 2024
1617423
GHI #32 Debug GitHub Actions (2)
doodspav Jul 8, 2024
0d665ed
GHI #32 Debug GitHub Actions (3)
doodspav Jul 8, 2024
e07e8d7
GHI #32 Debug GitHub Actions (4)
doodspav Jul 8, 2024
b1da7ff
GHI #32 Debug GitHub Actions (5)
doodspav Jul 8, 2024
93bf280
GHI #32 Debug GitHub Actions (6)
doodspav Jul 8, 2024
26020e8
GHI #32 Fix coverage CI to run BtApi tests too
doodspav Jul 8, 2024
31da463
GHI #32 Try to make clang lcov tracefile include all fils
doodspav Jul 12, 2024
e361da9
GHI #32 Undo last commit [skip ci]
doodspav Jul 13, 2024
3c68b07
GHI #32 Remove PATOMIC_MAX_CACHE_LINE_SIZE
doodspav Jul 13, 2024
74ea263
GHI #32 Update tests for changes from last commit
doodspav Jul 13, 2024
05025b6
GHI #32 Update actions/cache from v3 to v4
doodspav Jul 13, 2024
3ff362e
GHI #32 Migrate actions/{upload, download} from v3 to v4
doodspav Jul 13, 2024
04c6546
GHI #32 Change upload artifact to use UNIQUE_ID instead of UNIQUE_NAME
doodspav Jul 13, 2024
4df2f76
GHI #32 Fix UB in test
doodspav Jul 13, 2024
6d8efeb
GHI #32 Fix merging artifacts
doodspav Jul 13, 2024
f3f9253
GHI #32 Skip test when running under ubsan
doodspav Jul 13, 2024
c9a71b5
GHI #32 Only use ExitedWithCode(3) for msvc
doodspav Jul 13, 2024
53949f5
GHI #32 Split death.cpp into h/cpp pair [skip ci]
doodspav Jul 13, 2024
6521070
GHI #32 Remove use of gmock in BTs [skip ci]
doodspav Jul 13, 2024
8daa971
GHI #32 Debug mingw version
doodspav Jul 13, 2024
91d48fa
GHI #32 Fix KilledByAbort to work with both Windows Runtimes
doodspav Jul 13, 2024
d7aae6c
GHI #32 Use `KilledByAbortPredicateType` in impl too
doodspav Jul 13, 2024
60be1a8
GHI #32 Set LLVM_PROFILE_FILE for tests
doodspav Jul 13, 2024
b691ef1
GHI #32 Remove working directory from tests
doodspav Jul 14, 2024
42621ed
GHI #32 Skip hppa-ubuntu-gcc-shared-coverage
doodspav Jul 14, 2024
1c4c0c5
GHI #32 Fix skip
doodspav Jul 14, 2024
30a7be9
GHI #32 Fix skip (2)
doodspav Jul 14, 2024
650a731
GHI #32 Remove EXCL_LINE comments for now [skip ci]
doodspav Jul 14, 2024
3c55b2c
GHI #32 Add UT for patomic_internal_compare_align
doodspav Jul 14, 2024
688bb60
GHI #32 Change UtApiAlign to UtInternalAlign [skip ci]
doodspav Jul 14, 2024
50e8b87
GHI #32 Add `Wno-reserved-identifier` to clang for C
doodspav Jul 14, 2024
c62e968
GHI #32 Remove trailing ;
doodspav Jul 14, 2024
0bf2442
GHI #32 Add `-Wno-documentation-unknown-command` to clang for C
doodspav Jul 14, 2024
bc5606a
GHI #32 Check coverage for /include too
doodspav Jul 14, 2024
04e5b38
GHI #32 Add missing quote
doodspav Jul 14, 2024
65ef147
GHI #32 Ignore errors
doodspav Jul 14, 2024
a3bfad0
GHI #32 Ignore errors (2)
doodspav Jul 14, 2024
d683345
GHI #32 Change coverage limits to 50%
doodspav Oct 27, 2024
e93cc3d
GHI #32 Disable coverage for now
doodspav Oct 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
GHI #32 Add const to align.c
doodspav committed Jun 5, 2024
commit 9567766207e3eeffaf0477939fa8f3e75b208921
14 changes: 7 additions & 7 deletions src/types/align.c
Original file line number Diff line number Diff line change
@@ -17,28 +17,28 @@
size_t
patomic_cache_line_size(void)
{
return (size_t) PATOMIC_MAX_CACHE_LINE_SIZE_ABI_UNSTABLE;
return PATOMIC_MAX_CACHE_LINE_SIZE_ABI_UNSTABLE;
}


int
patomic_align_meets_recommended(
const volatile void *ptr,
patomic_align_t align
const volatile void *const ptr,
const patomic_align_t align
)
{
patomic_intptr_unsigned_t addr = (patomic_intptr_unsigned_t) ptr;

/* check that addr pointer is aligned to recommended alignment */
return (PATOMIC_MOD_CPOW2(addr, align.recommended) == 0);
return PATOMIC_MOD_CPOW2(addr, align.recommended) == 0;
}


int
patomic_align_meets_minimum(
const volatile void *ptr,
patomic_align_t align,
size_t width
const volatile void *const ptr,
const patomic_align_t align,
const size_t width
)
{
patomic_intptr_unsigned_t addr = (patomic_intptr_unsigned_t) ptr;