Antonio Sanchez c65c2b31d4 Make half/bfloat16 constructor take inputs by value, fix powerpc test.
Since `numeric_limits<half>::max_exponent` is a static inline constant,
it cannot be directly passed by reference. This triggers a linker error
in recent versions of `g++-powerpc64le`.

Changing `half` to take inputs by value fixes this.  Wrapping
`max_exponent` with `int(...)` to make an addressable integer also fixes this
and may help with other custom `Scalar` types down-the-road.

Also eliminated some compile warnings for powerpc.
2021-02-27 21:32:06 +00:00
..
2018-03-11 10:01:44 -04:00
2020-11-18 07:58:33 -08:00
2017-03-07 11:25:58 +01:00
2019-09-03 00:50:51 +02:00
2020-12-04 21:45:09 +00:00
2021-02-08 12:56:23 -08:00