bsnes/nall/string
Tim Allen bb1dd8c609 Update to v106r77 release.
byuu says:

So this turned out to be a rather unproductive ten-hour rabbit hole, but
...

I reworked nall/primitives.hpp a lot. And because the changes are
massive, testing of this WIP for regressions is critically important. I
really can't stress that enough, we're almost certainly going to have
some hidden regressions here ...

We now have a nall/primitives/ subfolder that splits up the classes into
manageable components. The bit-field support is now shared between both
Natural and Integer. All of the assignment operator overloads are now
templated and take references instead of values. Things like the
GSU::Register class are non-copyable on account of the function<>
object inside of it, and previously only operator= would work with
classes like that.

The big change is nall/primitives/operators.hpp, which is a really
elaborate system to compute the minimum number of bits needed for any
operation, and to return a Natural<T> or Integer<T> when one or both of
the arguments are such a type.

Unfortunately, it doesn't really work yet ... Kirby's Dream Land 3
breaks if we include operators.hpp. Zelda 3 runs fine with this, but I
had to make a huge amount of core changes, including introducing a new
ternary(bool, lhs, rhs) function to nall/algorithm to get past
Natural<X> and Natural<Y> not being equivalent (is_integral types get a
special exemption to ternary ?: type equivalence, yet it's impossible to
simulate with our own classes, which is bullshit.) The horrifying part
is that ternary() will evaluate both lhs and rhs, unlike ?:

I converted some of the functions to test ? uint(x) : uint(y), and
others to ternary(test, x, y) ... I don't have a strong preference
either way yet.

But the part where things may have gotten broken is in the changes to
where ternary() was placed. Some cases like in the GBA PPU renderer, it
was rather unclear the order of evaluations, so I may have made a
mistake somewhere.

So again, please please test this if you can. Or even better, look over
the diff.

Longer-term, I'd really like the enable nall/primitives/operators.hpp,
but right now I'm not sure why Kirby's Dream Land 3 is breaking. Help
would be appreciated, but ... it's gonna be really complex and difficult
to debug, so I'm probably gonna be on my own here ... sigh.
2019-01-13 17:25:14 +11:00
..
allocator Update to v106r58 release. 2018-08-21 13:17:12 +10:00
eval Update to v099r14 release. 2016-07-01 21:50:32 +10:00
markup Update to v106r59 release. 2018-08-26 16:49:54 +10:00
transform Update to v106r47 release. 2018-07-14 13:59:29 +10:00
atoi.hpp Update to v101r02 release. 2016-08-09 21:07:18 +10:00
cast.hpp Update to v106r77 release. 2019-01-13 17:25:14 +11:00
compare.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
convert.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
core.hpp Update to v106r2 release. 2018-02-01 19:20:37 +11:00
find.hpp Update to v106r69 release. 2019-01-02 10:52:08 +11:00
format.hpp Update to v106r46 release. 2018-07-08 14:58:27 +10:00
match.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
pascal.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
replace.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
split.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
trim.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
utf8.hpp Update to v106r69 release. 2019-01-02 10:52:08 +11:00
utility.hpp Update to v106r65 release. 2018-10-04 20:12:11 +10:00
vector.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00
view.hpp Update to v106r59 release. 2018-08-26 16:49:54 +10:00