Files
tinygrad/test
Sieds LyklesandGitHub 661e9a2d5d div_and_mod_folding refactor (#11585)
* divmod const folding is its own function

* split nested mod optimization out of div and mod folding

* make `fold_binary_numerator` its own function

* factor out `fold_divmod_congruence`

* check sign of numerator

* add tests

* assert int on vmin and vmax

* add type: ignore

* factor out more rules

* remove div_and_mod_folding

* cached_property to property

* remove import

* add returns

* restore old order

* check sign of x.vmin and newx.vmin

* check more signs

* add some test that would have caught bugs

* better test if the div simplified

* shorten line

* replace terms_factors_const with pop_const

* move that back

* minor cleanup

* remove comments

* some cleanup
2025-08-14 11:52:42 +02:00
..
2025-05-26 14:38:28 -07:00
2025-07-12 14:27:46 -04:00
2025-06-17 19:39:34 +03:00
2020-12-15 23:44:08 -08:00
2024-11-11 20:18:04 +08:00
2025-06-27 13:48:48 +03:00
2025-08-07 14:19:17 -07:00
2025-06-08 08:42:22 -07:00
2025-02-18 15:26:58 +08:00
2025-08-02 21:01:19 +03:00
2025-08-07 14:19:17 -07:00
2025-02-20 18:03:09 -05:00
2025-08-13 14:27:55 -04:00
2025-08-13 18:40:48 -04:00
2025-08-13 14:27:55 -04:00
2025-06-08 08:42:22 -07:00
2025-07-21 15:10:38 +03:00
2025-08-07 14:19:17 -07:00
2025-07-30 22:03:41 -04:00
2025-06-29 09:06:10 -07:00
2025-07-29 15:35:51 -07:00
2025-08-10 13:13:16 +02:00