diff options
| author | 2025-12-16 18:33:59 +0100 | |
|---|---|---|
| committer | 2025-12-16 18:46:08 +0100 | |
| commit | b3762f81b1a276f06bace301d56c9e8f6538058d (patch) | |
| tree | 5fd64ad4973b0b0e18c993c527740b57d589d9fc /ir/regalloc.c | |
| parent | a00214e6e569e87f82bb7bcce9df7b5365884ba1 (diff) | |
bitset: better implementation of bsiter() and stuff
Also changed the type to size_t for portability
Diffstat (limited to 'ir/regalloc.c')
| -rw-r--r-- | ir/regalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/regalloc.c b/ir/regalloc.c index 29d9f88..691793e 100644 --- a/ir/regalloc.c +++ b/ir/regalloc.c @@ -194,7 +194,7 @@ allocstk(struct rega *ra) for (int i = 0; i < BSSIZE(MAXSPILL); ++i) { if (ra->freestk[i].u != 0) { - s = i*64 + lowestsetbit(ra->freestk[i].u); + s = i*BSNBIT + lowestsetbit(ra->freestk[i].u); break; } } |