1 #ifndef HALIDE_FAST_INTEGER_DIVIDE_H
2 #define HALIDE_FAST_INTEGER_DIVIDE_H
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Expr fast_integer_modulo(Expr numerator, Expr denominator)
Use the fast integer division tables to implement a modulo operation via the Euclidean identity: ab =...
Expr fast_integer_divide(Expr numerator, Expr denominator)
Integer division by small values can be done exactly as multiplies and shifts.
A fragment of Halide syntax.