You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2023/04/17 11:51:30 UTC

[GitHub] [arrow] pitrou commented on issue #22806: [C++] vendor a half precision floating point library

pitrou commented on issue #22806:
URL: https://github.com/apache/arrow/issues/22806#issuecomment-1511196001

   > Half [seems pretty complete](https://half.sourceforge.net/namespacehalf__float.html) so I think it or [FP16](https://github.com/Maratyszcza/FP16) would make good candidates.
   
   Both look rather unmaintained. We could decide to maintain a fork in the source tree, but this would need assessing their technical quality as well.
   
   Something as simple as https://github.com/Maratyszcza/FP16/blob/0a92994d729ff76a58f692d3028ca1b64b145d91/include/fp16/bitcasts.h#L30-L34 is undefined behaviour:
   > It is undefined behavior to read from the member of the union that wasn't most recently written.
   
   (from https://en.cppreference.com/w/cpp/language/union)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org