Behdad Esfahbod
a7dd90f519
Revert "Remove HB_DISALLOW_COPY_AND_ASSIGN"
...
This reverts commit ff92de766b
.
Revert that and remove ASSERT_POD. Let's see which bots are
unhappy with this configuration...
7 years ago
Behdad Esfahbod
7b50bf52f2
Use NullPool for _hb_set_nil and _hb_map_nil
7 years ago
Behdad Esfahbod
f040ca40ab
[set] Minor
7 years ago
Behdad Esfahbod
7185b273b3
Rename in_error to !successful
...
Towards possibly using Null pool for some nil objects.
7 years ago
Behdad Esfahbod
353f4d2efc
Fix a whitespace inconsistency
...
Null() and Crap() are only places that there's no space before '('...
7 years ago
Behdad Esfahbod
e36cd1dfd3
Remove trivial HB_ATOMIC_INT_INIT()
7 years ago
Behdad Esfahbod
550a70f801
Use 0 as inert object reference value instead of -1
...
Towards using Null object for nil objects.
7 years ago
Behdad Esfahbod
dcd1b07eea
Add const OffsetTo<> dereference
...
Unused, but now that we have CrapPool, implement it.
7 years ago
Ebrahim Byagowi
2baa357ac7
Fix symbol export issue of prime_mod on Alpine bot
...
Apparently our gcc-6.4.0 on Alpine Linux distribution doesn't like defining static const
inside a method, lets put that on outside the classes.
7 years ago
Behdad Esfahbod
54800f8322
[map] Mark prime_for HB_INTERNAL
...
Trying to see if it fixes gcc-4.2 bots.
7 years ago
Behdad Esfahbod
d600e844aa
Add CrapOrNull
7 years ago
Garret Rieger
251cc977e9
[subset] Switch to using hb_map_t inside of hb_subset_plan_t.
7 years ago
Behdad Esfahbod
b3d45de6cf
[map] Fix size calculation
...
Don't know why I thought I should subtract one there...
7 years ago
Behdad Esfahbod
ff92de766b
Remove HB_DISALLOW_COPY_AND_ASSIGN
...
llvm-gcc-4.2 bot had this problem:
hb-private.hh:812: error: initializer specified for non-virtual method 'void hb_vector_t<Type, StaticSize>::operator=(const hb_vector_t<Type, StaticSize>&) [with Type = hb_user_data_array_t::hb_user_data_item_t, unsigned int StaticSize = 1u]'
Removing the delete didn't work with a constructor. So, remove constructor.
Just disallow assignment. Still better than nothing.
7 years ago
Behdad Esfahbod
a244434622
[map] Fix resize
7 years ago
Behdad Esfahbod
efbab6ba3f
Disable use of thread_local
...
Clang build was failing with:
/usr/bin/ld: .libs/libharfbuzz_la-hb-blob.o: relocation R_X86_64_PC32 against undefined hidden symbol `_ZTH12_hb_CrapPool' can not be used when making a shared object
Instead of fighting it, just disable use of it.
7 years ago
Behdad Esfahbod
8c2c5d4508
[map] Not going to implement is_equal which is complicated
7 years ago
Behdad Esfahbod
ccd01c6555
[map] Move prime_mod to header to avoid linkage issues in subset.so
7 years ago
Behdad Esfahbod
6baebc5d55
[map] Fix copyright year
7 years ago
Behdad Esfahbod
b0158129d2
[map] Minor
7 years ago
Behdad Esfahbod
4099c66f70
[map] Don't return INVALID from get() just because in_error
7 years ago
Behdad Esfahbod
2578390773
[map] Fix bool use in C API
7 years ago
Behdad Esfahbod
a9fa39dca5
[map] More minor
7 years ago
Behdad Esfahbod
f76c4a7708
[map] Make initial resize actually work
7 years ago
Behdad Esfahbod
661e9ae4a5
[map] Add clear(), is_empty(), and get_population()
7 years ago
Behdad Esfahbod
b6959c33e2
[map] Minor
7 years ago
Behdad Esfahbod
686476a8ae
[map] Track population and occupancy separately
7 years ago
Behdad Esfahbod
8a978790cb
[map] Minor
7 years ago
Behdad Esfahbod
6f12ce47c0
Revert "[map] Return bool from set()"
...
This reverts commit face7cf55d
.
7 years ago
Behdad Esfahbod
fc51c45079
Revert "[map] Make hb_map_set() return bool"
...
This reverts commit 7bf1980146
.
7 years ago
Behdad Esfahbod
7bf1980146
[map] Make hb_map_set() return bool
7 years ago
Behdad Esfahbod
face7cf55d
[map] Return bool from set()
7 years ago
Behdad Esfahbod
e94be200bd
[map] Implement operator[] for get()ting
7 years ago
Behdad Esfahbod
743fdd9c61
[map] First try at implementing an integer-to-integer hashmap
...
Fully untested.
7 years ago
Ebrahim Byagowi
65c82179c9
[blob] Use MAP_NORESERVE if available ( #1039 )
...
MAP_NORESERVE is not available on macOS for example so set the flag
to zero if not defined on the headers.
7 years ago
Behdad Esfahbod
1ce40d900a
[set] Remove stale comment
7 years ago
Behdad Esfahbod
6c2227640b
Add HB_DISALLOW_COPY_AND_ASSIGN
7 years ago
Behdad Esfahbod
fd3d004231
Move pool definitions to hb-static.cc
7 years ago
Behdad Esfahbod
7f7b1370d3
Fix Uniscribe build
...
If a pointer type was passed to Null(), reinterpret_cast<> was
complaining about qualifiers being removed. Turns out I need the const on
the other side of "Type" to fix that. Also remove unused const from
NullPool type.
7 years ago
Behdad Esfahbod
31c4236d96
Underflow protection in hb_vector_t
7 years ago
Behdad Esfahbod
f83e992c8b
Mark CrapPool thread_local
...
Not sure if I like to keep it. For now, aim for correctness.
7 years ago
Behdad Esfahbod
5d80129891
Add CrapPool
...
Common Regoin for Access Protection. Like the NullPool, but writable.
7 years ago
Behdad Esfahbod
673b764de0
Move code around
7 years ago
Behdad Esfahbod
65aeabd622
Add hb_vector_t::push(const Type &v)
...
Makes for cleaner code.
7 years ago
Ebrahim Byagowi
38ae0add70
[ci] Revive the SunCC bot
...
* Adds libnsl to the bot as it is now needed apparently
* Disables hb-icu, apparently the newer ICU itself is not compatible with SunCC
7 years ago
Behdad Esfahbod
6c818c5516
Actually enable vectorized operations
...
Fixup for previous commit. Was accidentally turned off.
7 years ago
Behdad Esfahbod
f56a250b04
Another try at smart vectorization
...
Make clang happy. Also, don't use anonymous union.
7 years ago
Behdad Esfahbod
b995b501ef
Try enabling vectorization smartly
...
We'll see if this sticks to the bots.
7 years ago
Behdad Esfahbod
dd22c29f95
[set] Always check population before checking for equality
7 years ago
Behdad Esfahbod
2eb9bbd986
[test/text-rendering-tests] Update from upstream
7 years ago