Antonio Sanchez
b86e013321
Revert bit_cast to use memcpy for CUDA.
...
To elide the memcpy, we need to first load the `src` value into
registers by making a local copy. This avoids the need to resort
to potential UB by using `reinterpret_cast`.
This change doesn't seem to affect CPU (at least not with gcc/clang).
With optimizations on, the copy is also elided.
2021-10-21 08:14:11 -07:00
..
2021-10-21 08:14:11 -07:00
2021-02-09 09:13:09 +01:00
2016-01-27 22:48:40 +01:00
2021-10-20 12:00:19 -07:00
2021-02-09 09:13:09 +01:00
2021-02-09 09:13:09 +01:00
2021-02-09 09:13:09 +01:00
2015-10-26 11:46:05 +01:00
2021-02-09 09:13:09 +01:00
2017-11-10 14:11:22 +01:00
2021-04-22 15:21:01 +00:00
2015-10-26 11:46:05 +01:00
2019-03-05 10:24:54 -08:00
2018-06-11 18:33:24 +02:00
2017-11-27 22:11:57 +01:00
2021-02-09 09:13:09 +01:00
2021-02-09 09:13:09 +01:00
2019-03-05 10:24:54 -08:00
2019-03-05 10:24:54 -08:00
2015-10-30 12:02:52 +01:00
2018-08-28 18:32:39 +02:00
2018-08-28 11:44:15 +02:00
2016-01-27 22:48:40 +01:00
2017-02-03 15:22:35 +01:00
2017-02-03 15:22:35 +01:00
2017-02-03 15:22:35 +01:00
2016-07-10 02:29:57 +02:00
2021-02-09 09:13:09 +01:00
2016-01-27 22:48:40 +01:00