Behdad Esfahbod
2ec802b42a
[object] Simplify reference_count_t
4 years ago
Behdad Esfahbod
4d116ed0f0
[ci] Remove cmake
...
Apparently(?) our cmake build never bothered setting up pthreads.
So when I removed the busy-loop mutex impl it now doesn't build.
711c241f6c
https://github.com/harfbuzz/harfbuzz/pull/2874#issuecomment-782778263
4 years ago
Behdad Esfahbod
1c693e8c28
[test] Fix unused-var warning
4 years ago
Behdad Esfahbod
12a283d513
m[ft] No need to use atomic ops for cached_x_scale
...
We have added a mutex since, so no need for atomicity.
4 years ago
Behdad Esfahbod
b39c1f7829
a[build] Fix distcheck
4 years ago
Behdad Esfahbod
a3c35aee30
m Move HB_SCRIPT_MYANMAR_ZAWGYI
4 years ago
Behdad Esfahbod
c55bf55154
Remove HB_CONST_FUNC and HB_PURE_FUNC
...
They are not necessary for inline functions.
4 years ago
Behdad Esfahbod
cba9893ac5
m[algs] Move roundf() here
4 years ago
Behdad Esfahbod
f0947717ff
m[machinery] Move HB_VAR_ARRAY here
4 years ago
Behdad Esfahbod
69464e9da0
[algs] Another try at fixing BEInt constexpr
...
../src/hb-algs.hh:120:3: error: body of constexpr function ‘constexpr BEInt<Type, 2>::operator Type() const [with Type = short unsigned int]’ not a return-statement
4 years ago
Behdad Esfahbod
ff7bf88192
m[algs] Fix BEInt -Wnarrowing errors
4 years ago
Behdad Esfahbod
a89d9f25b4
m Err on -Wnarrowing instead of -Wc++11-narrowing
...
On clang, -Wnarrowing is synonym for -Wc++11-narrowing.
On gcc it isn't. So, use the widely-available one
4 years ago
Behdad Esfahbod
e208f80449
Make constexpr BEInt<Type, 2>::operator Type() C++11-compatible
...
Multiple return values not permitted until C++14
4 years ago
Behdad Esfahbod
c2fc2aa44c
[atomic] Remove Solaris intrinsics
4 years ago
Behdad Esfahbod
7099a6dca1
[atomic] Remove old Intel primitives implementation
4 years ago
Behdad Esfahbod
711c241f6c
m[mutex] Remove busyloop mutex implemenation
...
Don't know why I ever added this. :)
4 years ago
Behdad Esfahbod
47f01c0726
m[algs] Move BEInt here
4 years ago
Behdad Esfahbod
e5b7bc424d
m Add default value to BEInt<> Size template parameter
4 years ago
Behdad Esfahbod
2caae4a59a
m Move class traits
4 years ago
Behdad Esfahbod
c2dbd6cc0f
Remove static_assert of sizeof basic sized int types
4 years ago
Behdad Esfahbod
e1706ffecd
m [algs] Move flags here
4 years ago
Behdad Esfahbod
017f6b0d24
m Move static_assert_expr<>
4 years ago
Behdad Esfahbod
61f8d0e57d
m Rename ASSERT_STATIC_EXPR_ZERO to static_assert_expr
4 years ago
Behdad Esfahbod
59cfffb1af
m Change ASSERT_STATIC_EXPR_ZERO template arg type to bool
4 years ago
Behdad Esfahbod
1981d83d7f
[constexpr] HB_MARK_AS_FLAG_T
4 years ago
Behdad Esfahbod
a4a99de0eb
[constexpr] bswap
4 years ago
Behdad Esfahbod
f8ebe1dacd
[constexpr] BEInt
4 years ago
Behdad Esfahbod
2fbd34f89a
m[set/map] Add operator bool()
...
Probably should use in places..
4 years ago
Behdad Esfahbod
bf75a0a03a
m[dispatch] Use inline class member initialization
...
Let's see how bots like this...
4 years ago
Behdad Esfahbod
82928d9cf6
m[blob] Move immutable check to C API boundary
...
Similarly to 08ed9e3f77
4 years ago
Behdad Esfahbod
4020c6b286
m[blob] An empty blob can always be made writable
4 years ago
Behdad Esfahbod
2d39031f7b
[buffer/set/map] Move immutable check only to C API boundary
...
The immutable objects are a concept only enforced by the C API.
So move checks only to that region.
This does assume that the rest of the code is careful not getting
into these internal methods on immutable objects, which something
we do, but have no way of enforcing (currently).
.
4 years ago
Behdad Esfahbod
6d83d44052
m[set] Recover set from error in .reset()
4 years ago
Behdad Esfahbod
445efe8d04
m[vector] Recover vector from error in .reset()
4 years ago
Behdad Esfahbod
21433fa563
m[buffer] In hb_buffer_append() don't change until allocation success
4 years ago
Behdad Esfahbod
0f61a6213a
m[vowels] Simplify
...
If we didn't "process" anything, swap_buffers() becomes a no-op.
4 years ago
Behdad Esfahbod
3b91e0b592
m[buffer] Rename internal variable
4 years ago
Behdad Esfahbod
9fcba109bf
[buffer] Make swap_buffers() copy rest
4 years ago
Behdad Esfahbod
86993c09a1
Ignore -Wrange-loop-analysis
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2834
4 years ago
Behdad Esfahbod
6d94194497
Use auto in range-for-loop more
4 years ago
justvanrossum
1551f3d518
fixing more expected test results
4 years ago
justvanrossum
79e4f436e7
Apply rounding correctly when calculating glyph extents for CFF and CFF2; adjust expected test results
4 years ago
justvanrossum
d01ebeae21
calculate extents based on scaled then rounded values; undo two of the earlier test result adjustments
4 years ago
justvanrossum
1d02e9c63b
two more adjusted expected extents results (still not convinced this is the right thing, though)
4 years ago
justvanrossum
cd0babe6a6
adjust expected test result
4 years ago
justvanrossum
1d8a89504b
do not round added deltas; fixes #2866
4 years ago
Behdad Esfahbod
103ed7da83
[subset] Use dagger
...
Better fix for https://github.com/harfbuzz/harfbuzz/pull/2858
4 years ago
Behdad Esfahbod
d8ea552d10
[aat] Improve unsafe-to-break logic
...
Reduces false-positives. See comments for new logic.
Fixes https://github.com/harfbuzz/harfbuzz/issues/2860
Adjusts run-tests.sh to allow unhashed absolute filenames.
4 years ago
Behdad Esfahbod
cf203936d7
[aat] Unbreak builds
...
Some compilers don't like this:
../src/hb-aat-layout-common.hh:732:9: error: declaration of 'using StateTable = struct AAT::StateTable<Types, EntryData>' changes meaning of 'StateTable' [-fpermissive]
732 | using StateTable = StateTable<Types, EntryData>;
4 years ago
Behdad Esfahbod
b6fdaa6948
[minor:aat] Use injected class name
4 years ago