magic/database
Darryl L. Miles ff6bcecd9f DBResidueMask() cleanup
Reorder things in this function.
Adding 'const' in key places to provide the compiler the extra hint
for the purpose of this computation we don't change the value and the
value never changes externally even across function calls.

I'm sure the compiler (due to macro implementation of TTMaskXxxxx() calls
and visibility of data being changes) will optimise the function in
exactly the way of the reorder.

This also should have the side-effect of making clearer more auto
vectorization possibilities to the compiler or potentially replacing the
loop with (tail-call or inline) to :

simd_TTMaskSetMask_residues(lmask, rmask, TT_TECHDEPBASE, DBNumUserLayers);

Which would be a hand optimized form, that probably has an 'l_residues'
layout that favours SIMD use (2nd order copy from source of truth just in
a different data layout, such as contiguous array of TileTypeBitMask
indexed from 0, with the TileType as the index).
2025-01-31 20:13:48 +00:00
..
DBbound.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBcell.c 36 x warning: suggest parentheses around assignment used as truth value 2024-10-09 21:12:55 -04:00
DBcellbox.c Found no fewer than three separate places that cause a pop-up prompt 2021-03-16 22:46:46 -04:00
DBcellcopy.c DBcellcopy.c: fix warning: self-comparison always evaluates to false 2024-10-09 20:50:00 -04:00
DBcellname.c database: TxDialog() constification ripple 2025-02-23 10:24:40 -05:00
DBcellsel.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBcellsrch.c Fixed a rather long-standing error, which is that when scaling of 2025-02-09 12:48:22 -05:00
DBcellsubr.c Corrected behavior of "load ... -dereference" to bring back a 2023-04-18 11:01:58 -04:00
DBconnect.c TCL9: ClientData macro assignment and access usage 2025-01-04 11:08:01 -05:00
DBcount.c DBcount.c: DBTreeCountPaint() unify return type of hiercount() callback 2024-12-26 13:13:14 -05:00
DBexpand.c One additional fix which allows "gds write" to continue after a 2025-02-15 13:49:14 -05:00
DBio.c database: TxDialog() constification ripple 2025-02-23 10:24:40 -05:00
DBlabel.c LookupStructFull() constify call-site 2024-12-26 15:20:58 -05:00
DBlabel2.c 36 x warning: suggest parentheses around assignment used as truth value 2024-10-09 21:12:55 -04:00
DBpaint.c cif: use 'const' with readonly data (also consumer DBpaint) 2025-01-04 11:31:17 -05:00
DBpaint2.c 4 x warning: suggest explicit braces to avoid ambiguous 'else' 2024-10-09 21:12:55 -04:00
DBprop.c Corrected a small issue in the "property" command that will attempt 2022-02-15 12:01:11 -05:00
DBtcontact.c DBResidueMask() cleanup 2025-01-31 20:13:48 +00:00
DBtech.c database/DBtech.c: Incorrect return-value check for a 'scanf'-like function 2024-10-01 12:36:12 -04:00
DBtechname.c Corrected the (minor) problem caused by the slightly different handling 2020-10-18 14:28:23 -04:00
DBtechtype.c TCL9: ClientData macro assignment and access usage 2025-01-04 11:08:01 -05:00
DBtiles.c TCL9: ClientData macro assignment and access usage 2025-01-04 11:08:01 -05:00
DBtimestmp.c Corrected behavior of "load ... -dereference" to bring back a 2023-04-18 11:01:58 -04:00
DBtpaint.c Lookup() constify call-site 2024-12-26 15:20:58 -05:00
DBtpaint2.c Corrected code in DBtpaint2.c handling the setup of paint/erase 2024-12-26 16:28:43 -05:00
DBundo.c 37 x warning: array subscript has type 'char' 2024-10-09 21:12:55 -04:00
Makefile Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
database.h.in CodeQL added __nodiscard__ DBResidueMask() 2025-01-31 20:13:48 +00:00
databaseInt.h Compatibility with C99 standard 2022-10-29 06:07:46 +02:00
fonts.h Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00