Luuk de Gram
bd27fe2bf5
wasm: Implement @clz
...
Implements the `clz` AIR instruction for integers with bitsize <= 64.
When the bitsize of the integer is not the same as wasm's bitsize,
we substract the difference in bits as those will always be 0 for the integer, but should
not be counted towards the end result. We also wrap the result to ensure it fits
in the result type as documented in the language reference.
2022-04-02 21:54:01 +02:00
..
2022-04-02 21:54:01 +02:00
2022-03-31 01:33:28 -04:00
2022-04-01 14:33:37 +02:00
2022-03-27 11:49:54 +03:00
2022-03-25 14:47:51 +02:00
2022-03-31 01:33:28 -04:00
2022-03-31 23:47:34 -07:00
2021-12-10 23:09:02 +01:00
2022-01-29 15:52:08 +02:00
2022-03-04 18:10:37 -07:00
2021-11-26 19:59:33 -07:00
2022-02-23 14:11:46 +02:00
2022-03-30 14:21:13 -04:00
2022-04-01 00:17:02 -07:00
2021-10-22 12:50:25 +02:00
2022-03-19 19:13:31 +02:00
2021-11-30 23:32:47 +00:00
2020-12-07 17:27:09 -07:00
2022-01-14 12:39:06 -07:00
2022-03-08 20:38:12 +02:00
2021-11-30 23:32:47 +00:00
2022-02-06 22:21:46 -07:00
2022-01-30 14:30:46 +01:00
2022-01-02 13:16:17 -07:00
2022-01-02 13:16:17 -07:00
2022-03-27 20:53:06 +02:00
2022-03-29 22:19:06 -07:00
2022-03-25 12:27:46 -07:00
2022-02-06 22:21:46 -07:00
2022-04-01 00:17:02 -07:00
2022-01-02 13:16:17 -07:00
2021-11-30 23:32:47 +00:00
2022-03-29 22:19:06 -07:00
2021-11-30 23:32:47 +00:00
2021-11-30 23:32:47 +00:00
2022-03-31 02:12:44 -04:00
2022-03-22 15:45:58 -07:00
2022-03-18 19:37:01 +01:00
2022-03-31 12:25:48 -07:00
2022-02-08 17:26:55 -07:00
2022-03-17 19:03:37 -07:00
2022-03-31 15:10:31 -07:00
2022-03-11 19:38:07 -07:00
2022-01-07 00:06:06 -05:00
2022-03-25 14:47:51 +02:00
2022-03-27 11:31:30 +03:00
2022-03-22 15:45:58 -07:00
2022-03-28 12:05:08 -07:00
2022-03-11 19:38:07 -07:00
2021-11-30 23:32:47 +00:00
2021-09-24 13:39:20 -04:00
2021-09-07 21:49:08 -06:00
2020-09-21 21:14:01 -07:00
2021-09-01 17:54:07 -07:00
2021-08-15 18:06:29 -07:00
2021-08-15 18:06:29 -07:00
2021-08-15 18:06:29 -07:00
2022-02-23 14:11:46 +02:00
2022-02-23 14:11:46 +02:00
2021-09-30 21:38:04 -07:00
2022-03-16 10:53:41 +02:00
2022-03-17 17:24:11 -07:00
2022-03-31 15:06:12 -07:00