summaryrefslogtreecommitdiff
path: root/gtk/gtkallocatedbitmask.c
Commit message (Collapse)AuthorAgeFilesLines
* bitmask: Add _gtk_allocated_bitmask_to_stringTimm Bäder2019-09-091-0/+10
|
* bitmask: Don't hardcode 64bit sizeDmitry Shachnev2015-09-271-1/+1
| | | | | | | This looks like an oversight from "quickly testing a potential fix" and then forgetting to make a production-ready when it works. https://bugzilla.gnome.org/show_bug.cgi?id=755691
* bitmask: Trivial formatting fixMatthias Clasen2015-09-121-1/+1
|
* bitmask: Optimize no-op resizesMatthias Clasen2015-09-121-0/+3
| | | | | | | Statistics for the gtk3-demo listbox example show that the vast majority of calls to _gtk_allocated_bitmask_resize go from a size of 2 to 2. Don't needlessly call realloc() in this case.
* bitmask: Optimize intersectMatthias Clasen2015-09-121-2/+5
| | | | | The functions was written in a way that would possibly resize the mask twice, which is not necessary.
* allocated bitmask: Use gtk_internal_return_if_failMatthias Clasen2015-09-081-19/+21
|
* bitmask: Fix broken invert_range() implementationBenjamin Otte2015-09-071-12/+6
| | | | | | | | The speed-up in 7da1f8a1ce145f48b6299fd8be86a64389ff0b0d was wrong in certain conditions, even though it didn't trigger the existing testsuite. New testcase /bitmask/invert_range_hardcoded included.
* Speed up gtk_allocated_bit_mask_invert_rangeMatthias Clasen2015-09-071-5/+22
| | | | It was showing up on profiles and has a comment asking for speed.
* css: Fix _gtk_bitmask_subtract()Benjamin Otte2015-02-251-3/+4
| | | | | | | | | We were doing the wrong thing *and* writing uninitialized memory while doing so. BAD. Also added tests exposing these. https://bugzilla.redhat.com/show_bug.cgi?id=1185585
* bitmask: Don't allocate memory for small bitmasksNeil Roberts2012-03-011-24/+59
| | | | Code taken more or less verbatim from CoglBitmask.
* bitmask: Split bitmask code into twoBenjamin Otte2012-03-011-0/+308
This does nothing but turn all GtkBitmask functions into static inline functions that call the gtk_allocated_bitmask_*() equivalent. The implementation of the static functions has also been put into a private header, to not scare people who want to see how things are implemented.