mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Remove redundant @-style doc comment tags (#1641)
This commit is contained in:
@@ -228,9 +228,8 @@ static bool tryConstLogNot(Expression const &expr) {
|
||||
return knownBits != 0;
|
||||
}
|
||||
|
||||
// Attempts to compute a constant LOW() from non-constant argument
|
||||
// Returns a constant LOW() from non-constant argument, or -1 if it cannot be computed.
|
||||
// This is possible if the argument is a symbol belonging to an `ALIGN[8]` section.
|
||||
// @return The constant `LOW(expr)` result if it can be computed, or -1 otherwise.
|
||||
static int32_t tryConstLow(Expression const &expr) {
|
||||
Symbol const *sym = expr.symbolOf();
|
||||
if (!sym || !sym->getSection() || !sym->isDefined()) {
|
||||
@@ -253,10 +252,9 @@ static int32_t tryConstLow(Expression const &expr) {
|
||||
return (symbolOfs + sect.alignOfs) & 0xFF;
|
||||
}
|
||||
|
||||
// Attempts to compute a constant binary AND with one non-constant operands
|
||||
// Returns a constant binary AND with one non-constant operand, or -1 if it cannot be computed.
|
||||
// This is possible if one operand is a symbol belonging to an `ALIGN[N]` section, and the other is
|
||||
// a constant that only keeps (some of) the lower N bits.
|
||||
// @return The constant `lhs & rhs` result if it can be computed, or -1 otherwise.
|
||||
static int32_t tryConstMask(Expression const &lhs, Expression const &rhs) {
|
||||
Symbol const *lhsSymbol = lhs.symbolOf();
|
||||
Symbol const *rhsSymbol = lhsSymbol ? nullptr : rhs.symbolOf();
|
||||
|
||||
Reference in New Issue
Block a user