Commit graph

526 commits

Author SHA1 Message Date
Corwin e8bc714d74
Merge pull request #53 from gwilymk/allow-multiple-integer-sizes-for-fixnum
Allow multiple integer sizes for fixnum
2021-06-05 22:06:33 +01:00
Gwilym Kuiper 3357a4b69d Put brackets around nine / forty to ensure that we don't divide where we don't have to 2021-06-05 21:58:32 +01:00
Gwilym Kuiper aa39b2b6ad Make to_raw take self by value rather than reference 2021-06-05 21:49:36 +01:00
Gwilym Kuiper 54e28f5dd4 Add a Number type for i32 2021-06-05 21:47:04 +01:00
Gwilym Kuiper 174517fbb1 Fix tests 2021-06-05 21:47:04 +01:00
Gwilym Kuiper 508f33facd Add support for all the integer widths 2021-06-05 21:47:03 +01:00
Gwilym Kuiper de47dbc5dd Make number generic on i32 2021-06-05 21:30:02 +01:00
Corwin ec87adceb2
Merge pull request #52 from corwinkuiper/number-trig
implement trig functions
2021-06-05 21:10:38 +01:00
Corwin Kuiper 9176e668a1 implement trig functions 2021-06-05 21:06:21 +01:00
Corwin 1807b0adc6
Merge pull request #51 from corwinkuiper/fix-affine
fix index for affine matrix
2021-06-05 20:55:12 +01:00
Corwin ad16292cfa
Merge pull request #50 from gwilymk/improve-affine-matrix-syscall-arguments
Improve affine matrix syscall arguments
2021-06-05 20:48:26 +01:00
Corwin Kuiper 36903a0a65 fix index for affine matrix 2021-06-05 20:48:02 +01:00
Gwilym Kuiper 46562e275c Update test for new interface 2021-06-05 20:31:04 +01:00
Gwilym Kuiper 6ab644cf71 Mark affine matrix input as C and packed 2021-06-05 20:29:16 +01:00
Gwilym Kuiper e7edaa1a27 Accept more sensible arguments in affine_matrix 2021-06-05 20:29:12 +01:00
Corwin 361e9c93e6
Merge pull request #48 from gwilymk/reduce-dependencies-for-agb-image-converter
Massively reduce the number of dependencies used by agb-image-converter
2021-06-05 19:29:35 +01:00
Corwin 2fd318b71d
Merge pull request #49 from gwilymk/bump-image-converter-used-by-agb-to-0.2.0
Use image-converter 0.2.0
2021-06-05 18:54:19 +01:00
Gwilym Kuiper ceb1b97df8 Use image-converter 0.2.0 2021-06-05 18:13:03 +01:00
Gwilym Kuiper 989f53ccf6 Massively reduce the number of dependencies used by agb-image-converter 2021-06-05 18:11:00 +01:00
Corwin Kuiper 6edf82e04a increment version to 0.2.0 2021-06-05 18:07:10 +01:00
Corwin 2392d9fc83
Merge pull request #47 from gwilymk/fix-agb-image-converter-build
Fixup cli
2021-06-05 18:06:46 +01:00
Corwin 1af22f56a3
Merge pull request #44 from corwinkuiper/num-from-to-raw
add from and to raw
2021-06-05 18:02:15 +01:00
Gwilym Kuiper 7c02a8570f Fixup cli 2021-06-05 18:00:38 +01:00
Corwin 7a97591432
Merge pull request #45 from gwilymk/allow-agb-image-converter-to-be-used-in-any-crate
Allow agb image converter to be used in any crate
2021-06-05 17:53:39 +01:00
Corwin Kuiper 93b0b757bd make all const functions 2021-06-05 17:53:07 +01:00
Gwilym Kuiper 4516c8dfc0 Pass through a crate prefix 2021-06-05 17:47:13 +01:00
Gwilym Kuiper c6b1c4b824 Refactor to use a builder pattern 2021-06-05 17:45:21 +01:00
Corwin Kuiper e55ef4d152 add from and to raw 2021-06-05 17:40:41 +01:00
Corwin e2925eb917
Merge pull request #43 from gwilymk/add-rem-and-rem-euclid
Add rem and rem euclid implementations for fixnum
2021-06-05 17:30:34 +01:00
Gwilym Kuiper 363a16ce33 Add implementation of rem_euclid stolen from f32's implementation and add a test 2021-06-05 17:27:00 +01:00
Gwilym Kuiper cdaef51d76 Add tests for % 2021-06-05 17:23:43 +01:00
Gwilym Kuiper 56cf16def4 Fix int() method to return as-if this was a float 2021-06-05 17:23:28 +01:00
Gwilym Kuiper 8b1ad400a7 Include fix length in debug string 2021-06-05 17:23:06 +01:00
Gwilym Kuiper 8b2dfdffc1 Add proper implementation of debug for Num 2021-06-05 17:22:23 +01:00
Gwilym Kuiper e78c9abcec Add basic definition of rem and remassign 2021-06-05 16:53:07 +01:00
Corwin d3b4e7eacf
Merge pull request #42 from gwilymk/add-ability-to-change-fixnum-base
Add the ability to change the base of a fixnum
2021-06-05 16:38:44 +01:00
Gwilym Kuiper 34981ea3dd Make change_base function public 2021-06-05 16:35:58 +01:00
Gwilym Kuiper fe0e9f8196 Add the ability to change the base of a fixnum 2021-06-05 16:34:31 +01:00
Corwin Kuiper 18e017ae73 expose number module 2021-06-05 16:15:43 +01:00
Corwin Kuiper ec161d9161 fix chicken example 2021-06-05 16:14:48 +01:00
Corwin Kuiper a39363b6ae add similar treatment to sprite palettes as background palettes 2021-06-05 16:14:41 +01:00
Corwin a3874e7140
Merge pull request #41 from gwilymk/improve-fixnum
Improve fixnum
2021-06-05 16:08:46 +01:00
Gwilym Kuiper 0099dfa688 Get implementation of AddAssign correct 2021-06-05 15:58:56 +01:00
Gwilym Kuiper 0b8eda336d Use better trait bounds for numbers 2021-06-05 15:54:50 +01:00
Gwilym Kuiper 1b5a6421fd Add some more division tests 2021-06-05 15:46:33 +01:00
Gwilym Kuiper 8b2f3f14bb Use more precise implementations 2021-06-05 15:46:13 +01:00
Corwin Kuiper 2a9788d26f remove lifetime specifier 2021-06-05 14:41:39 +01:00
Corwin 7595c938c9
Merge pull request #40 from corwinkuiper/object-allocation
Object allocation
2021-06-05 13:06:10 +01:00
Corwin Kuiper eea0e6d3b3 fix chicken example 2021-06-05 00:27:13 +01:00
Corwin Kuiper 3b9231ef6e fix coordinates 2021-06-05 00:26:10 +01:00