Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constructored #8

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
run: |
wget https://github.com/mkn/mkn/releases/download/latest/mkn_nix
chmod +x mkn_nix
KLOG=3 ./mkn_nix clean build run -p test,bench -OtKda "-std=c++17 -fPIC" -l -pthread -g 0
KLOG=3 ./mkn_nix clean build run -p test,bench -OtKda "-std=c++20 -fPIC" -l -pthread -g 0
16 changes: 12 additions & 4 deletions inc/mkn/avx/lazy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,20 @@ namespace mkn::avx
template<typename T, typename Small = std::uint8_t /* use std::uint16_t for printing */>
struct LazyOp
{
LazyOp(T* _a, T const* _b, std::size_t const& _op)
: a{_a}
, b{_b}
, op{_op}
{
}


T* a;
T const* b;
std::size_t op = 0;
Small t = 0;
LazyOp* prev = nullptr;
LazyOp* next = nullptr;
std::size_t op;
Small t = 0;
LazyOp* prev = nullptr;
LazyOp* next = nullptr;
};

template<typename T>
Expand Down