This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
ENV SOURCE=llvm-10.0.0.src.tar.xz | |
WORKDIR /tmp | |
RUN apt-get -y update; apt-get install -y wget tar xz-utils | |
RUN wget https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/${SOURCE} | |
RUN tar -xJf ${SOURCE} | |
RUN apt-get install -y build-essential cmake python3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <cassert> | |
#include <iterator> | |
#include <type_traits> | |
/** | |
* @brief Intrusive list implementation. | |
* | |
* An intrusive container can hold an unlimited number of instances that are |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <array> | |
#include <cassert> | |
template <std::size_t N> | |
class static_string | |
{ | |
public: | |
using size_type = std::size_t; | |
using value_type = char; | |
using reference = char&; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <array> | |
#include <cmath> | |
/** | |
* @brief Compile-time sine table creation function. | |
* | |
* @tparam SZ Table size. | |
* @param fs Sample frequency. | |
* @param f Sine frequency. | |
* |