// Copyright 2015 The Gemmlowp Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // compute.h: the central stage of the Gemm computation, operates // on already-packed LHS and RHS blocks and calls the Gemm kernel // to compute a block of the product. #ifndef GEMMLOWP_INTERNAL_COMPUTE_H_ #define GEMMLOWP_INTERNAL_COMPUTE_H_ #include "block_params.h" #include "kernel.h" #include "pack.h" namespace gemmlowp { template <typename PackedLhs, typename PackedRhs, typename PackedResult> class ComputeImpl { … }; template <typename PackedLhs, typename PackedRhs, typename PackedResult> void Compute(const KernelBase& kernel, const BlockParams& block_params, PackedResult* packed_result, const PackedLhs& packed_lhs, const PackedRhs& packed_rhs, int depth) { … } } // namespace gemmlowp #endif // GEMMLOWP_INTERNAL_COMPUTE_H_