[
https://issues.apache.org/jira/browse/ARROW-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17191767#comment-17191767
]
Antoine Pitrou commented on ARROW-9253:
---------------------------------------
We could use high-precision multiplication by reciprocal. Boost's int128_t
seems quite fast:
https://www.boost.org/doc/libs/1_74_0/libs/multiprecision/doc/html/boost_multiprecision/perf/integer_performance.html
> [C++] Add vectorized "IntegersMultipleOf" to arrow/util/int_util.h
> ------------------------------------------------------------------
>
> Key: ARROW-9253
> URL: https://issues.apache.org/jira/browse/ARROW-9253
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Wes McKinney
> Priority: Major
> Fix For: 2.0.0
>
>
> There are various places where we check whether an array of integers are all
> a multiple of another number (e.g. a multiple of 86400000 milliseconds per
> day). It would be better to factor out this data check into a reusable
> function similar to the {{CheckIntegersInRange}} function
--
This message was sent by Atlassian Jira
(v8.3.4#803005)