This file contains 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 <cstddef> | |
#include <cstdint> | |
namespace { | |
constexpr std::uint32_t crc32_table[256] { | |
0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, | |
0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, | |
0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, |
This file contains 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
## | |
## Usage: lsm.py -d(--data) (input_data_file) -r(--ratio) (ratio) (initial0) (initial1) ... (initialN) | |
## | |
## -d, --data -- x,y データファイル名 (タブ区切り) | |
## -r, --ratio -- 修正係数(η) | |
## (initial0)...(initialN) -- x^0...x^N の係数初期値 | |
## | |
import sys |
This file contains 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
// SimpleMatrix.h is placed in PUBLIC DOMAIN. | |
// | |
#if !defined( SIMPLE_MATRIX_H ) | |
#define SIMPLE_MATRIX_H | |
#include <cstddef> | |
#include <cassert> | |
#include <vector> | |
#include <utility> |
This file contains 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 <cstddef> | |
#include <type_traits> | |
#include <iostream> | |
/* | |
constexpr std::uint8_t g_number_of_bits_uint4[] = { | |
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4 | |
}; | |
*/ |
This file contains 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
// C/C++ Common | |
#include <cstdio> | |
#include <map> | |
// Windows | |
#include <windows.h> | |
class __declspec( uuid( "3D48D1EB-1EA5-4D4B-8411-4C0B8DF72CD7" ) ) ITestClass : public IUnknown | |
{ | |
protected: |
This file contains 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
// | |
// Debug: fxc /E cs_main /T cs_5_0 /Fh (output) /Od /Vn g_BitonicSortCS /Zi (this) | |
// Release: fxc /E cs_main /T cs_5_0 /Fh (output) /O1 /Vn g_BitonicSortCS (this) | |
// | |
// スレッド数 | |
#define THREADS_X 512 | |
// ソート要素数 | |
#define ELEMENTS_TO_SORT ( 1 << 10 ) |
This file contains 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
#if !defined( WAVE_FILE_READER__H ) | |
#define WAVE_FILE_READER__H | |
// C/C++ Common | |
#include <cstdio> | |
#include <cstring> | |
// Others | |
#include <pstdint.h> // Available at http://www.azillionmonkeys.com/qed/pstdint.h | |
This file contains 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
#if !defined( WAVE_FILE_READER__H ) | |
#define WAVE_FILE_READER__H | |
// C/C++ Common | |
#include <cstdio> | |
#include <cstring> | |
// Others | |
#include <pstdint.h> // Available at http://www.azillionmonkeys.com/qed/pstdint.h | |