[ 
https://issues.apache.org/jira/browse/ARROW-12755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17389157#comment-17389157
 ] 

Yibo Cai edited comment on ARROW-12755 at 7/29/21, 1:57 AM:
------------------------------------------------------------

For the record, {{libdivide}} may be useful for optimal integer division 
performance.
https://github.com/ridiculousfish/libdivide

NOTE: this is only for {{vector/scalar}}, when there's only one divisor.


was (Author: yibocai):
For the record, {{libdivide}} may be useful for optimal integer division 
performance.
https://github.com/ridiculousfish/libdivide

> [C++][Compute] Add quotient and modulo kernels
> ----------------------------------------------
>
>                 Key: ARROW-12755
>                 URL: https://issues.apache.org/jira/browse/ARROW-12755
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ian Cook
>            Priority: Major
>              Labels: beginner
>             Fix For: 6.0.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Add a pair of binary kernels to compute the:
>  * quotient (result after division, discarding any fractional part, a.k.a 
> integer division)
>  * mod or modulo (remainder after division, a.k.a {{%}} / {{%%}} / modulus).
> The returned array should have the same data type as the input arrays or 
> promote to an appropriate type to avoid loss of precision if the input types 
> differ.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to