quakeforge/tools/qfcc
Bill Currie 70af362562 [qfcc] Unify temp def, return value and parameter sizes
In working with vectors and matrices while testing the scene wrappers, I
found that there was a fair bit of confusion about how large something
could be. Return values can be up to 32 words (but qfcc wasn't aware of
that), parameters were limited to 4 words still (and possibly should be
for varargs), and temp defs were limited to 8 words (1 lvec4). Temps are
used for handling return values (at least when not optimizing) and thus
must be capable of holding a return value, and passing large arguments
through *formal* parameters should be allowed. It seems reasonable to
limit parameter sizes to return value sizes.

A temp and a move are still used for large return values (4x4 matrix),
but that's an optimization issue: the code itself is at least correct.
2022-02-15 08:39:20 +09:00
..
doc
include [qfcc] Unify temp def, return value and parameter sizes 2022-02-15 08:39:20 +09:00
source [qfcc] Unify temp def, return value and parameter sizes 2022-02-15 08:39:20 +09:00
test
AUTHORS
Makemodule.am
TODO