Permalink
Browse files

New Wirehair codec for 2018

  • Loading branch information...
catid committed Apr 18, 2018
1 parent 255b9a8 commit 058c0e67786591dc5b4a6d0bf151e3f6ff6f445e
Showing with 17,851 additions and 23,769 deletions.
  1. +17 −0 .gitattributes
  2. +57 −0 .gitignore
  3. +0 −3 .gitmodules
  4. +89 −0 CMakeLists.txt
  5. +0 −128 Makefile
  6. +141 −192 README.md
  7. +4,364 −0 WirehairCodec.cpp
  8. +1,381 −0 WirehairCodec.h
  9. +1,054 −0 WirehairTools.cpp
  10. +521 −0 WirehairTools.h
  11. BIN bin/libwirehair.a
  12. +0 −301 docs/GF256Matrix.cpp
  13. +0 −86 docs/GF256Matrix.hpp
  14. +0 −311 docs/GF2Matrix.cpp
  15. +0 −87 docs/GF2Matrix.hpp
  16. +0 −1,260 docs/StructuralTest.cpp
  17. +0 −39 docs/StructuralTest.vcxproj.filters
  18. +0 −3 docs/StructuralTest.vcxproj.user
  19. BIN docs/WirehairHeat.png
  20. +0 −273 docs/heatmap.gnu
  21. +1,578 −0 gf256.cpp
  22. +283 −0 gf256.h
  23. +0 −151 include/wirehair.h
  24. +0 −1 libcat
  25. +0 −36 msvc2010/libwirehair.sln
  26. +0 −60 msvc2010/libwirehair.vcxproj.filters
  27. +0 −3 msvc2010/libwirehair.vcxproj.user
  28. +167 −0 proj/GenerateDenseCount.vcxproj
  29. +10 −0 proj/GenerateDenseCount.vcxproj.filters
  30. +167 −0 proj/GenerateMostDenseSeeds.vcxproj
  31. +10 −0 proj/GenerateMostDenseSeeds.vcxproj.filters
  32. +167 −0 proj/GeneratePeelSeeds.vcxproj
  33. +10 −0 proj/GeneratePeelSeeds.vcxproj.filters
  34. +167 −0 proj/GenerateSmallDenseSeeds.vcxproj
  35. +10 −0 proj/GenerateSmallDenseSeeds.vcxproj.filters
  36. +50 −20 docs/StructuralTest.vcxproj → proj/TableGenerators.vcxproj
  37. +14 −0 proj/TableGenerators.vcxproj.filters
  38. +49 −29 msvc2010/libwirehair.vcxproj → proj/UnitTest.vcxproj
  39. +10 −0 proj/UnitTest.vcxproj.filters
  40. +88 −0 proj/wirehair.sln
  41. +162 −0 proj/wirehair.vcxproj
  42. +15 −0 proj/wirehair.vcxproj.filters
  43. +0 −188 src/wirehair.cpp
  44. +0 −5,716 src/wirehair_codec_16.cpp
  45. +0 −300 src/wirehair_codec_16.hpp
  46. +0 −5,486 src/wirehair_codec_8.cpp
  47. +0 −299 src/wirehair_codec_8.hpp
  48. +199 −0 tables/GenerateDenseCount.cpp
  49. +385 −0 tables/GenerateMostDenseSeeds.cpp
  50. +348 −0 tables/GeneratePeelSeeds.cpp
  51. +626 −0 tables/GenerateSmallDenseSeeds.cpp
  52. +290 −0 tables/HeavyRowGenerator.cpp
  53. +73 −0 tables/HeavyRowGenerator.h
  54. +2,028 −0 tables/TableGenerator.cpp
  55. +546 −0 tables/dense.csv
  56. +546 −0 tables/dense2.csv
  57. +546 −0 tables/dense3.csv
  58. BIN tables/min_dense_count.png
  59. +121 −0 test/SiameseTools.cpp
  60. +241 −0 test/SiameseTools.h
  61. +742 −0 test/UnitTest.cpp
  62. +0 −396 tests/gf_test.cpp
  63. +0 −204 tests/wirehair_test.cpp
  64. +0 −100 wirehair-mobile/AbyssinianPRNG.hpp
  65. +0 −106 wirehair-mobile/Config.hpp
  66. +0 −47 wirehair-mobile/EndianNeutral.cpp
  67. +0 −194 wirehair-mobile/EndianNeutral.hpp
  68. +0 −61 wirehair-mobile/Makefile
  69. +0 −299 wirehair-mobile/MemXOR.cpp
  70. +0 −49 wirehair-mobile/MemXOR.hpp
  71. +0 −825 wirehair-mobile/Platform.hpp
  72. +0 −21 wirehair-mobile/README.md
  73. +0 −188 wirehair-mobile/wirehair.cpp
  74. +0 −147 wirehair-mobile/wirehair.h
  75. +0 −5,860 wirehair-mobile/wirehair_codec_8.cpp
  76. +0 −300 wirehair-mobile/wirehair_codec_8.hpp
  77. +255 −0 wirehair.cpp
  78. +324 −0 wirehair.h
@@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
@@ -0,0 +1,57 @@
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# MSVC temp files
*.obj
*.log
*.ilk
*.pdb
*.tlog
*.idb
*.opensdf
*.sdf
*.user
*.suo
# =========================
# Operating System Files
# =========================
# OSX
# =========================
.DS_Store
.AppleDouble
.LSOverride
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
*.db
*.opendb

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,89 @@
cmake_minimum_required(VERSION 3.5)
project(wirehair)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
set(CMAKE_CXX_STANDARD 11)
set(LIB_SOURCE_FILES
wirehair.cpp
wirehair.h
gf256.cpp
gf256.h
WirehairCodec.cpp
WirehairCodec.h
WirehairTools.cpp
WirehairTools.h
)
set(UNIT_TEST_SOURCE_FILES
test/SiameseTools.cpp
test/SiameseTools.h
test/UnitTest.cpp
)
set(GEN_SMALL_DSEEDS
test/SiameseTools.cpp
test/SiameseTools.h
tables/GenerateSmallDenseSeeds.cpp
)
set(GEN_PEEL_SEEDS
test/SiameseTools.cpp
test/SiameseTools.h
tables/GeneratePeelSeeds.cpp
)
set(GEN_MOST_DSEEDS
test/SiameseTools.cpp
test/SiameseTools.h
tables/GenerateMostDenseSeeds.cpp
)
set(GEN_DCOUNTS
test/SiameseTools.cpp
test/SiameseTools.h
tables/GenerateDenseCount.cpp
)
set(GEN_TABLES
test/SiameseTools.cpp
test/SiameseTools.h
tables/TableGenerator.cpp
tables/HeavyRowGenerator.cpp
tables/HeavyRowGenerator.h
gf256.cpp
gf256.h
)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
if(MSVC)
else()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -march=native")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native")
endif()
include_directories(.)
add_library(wirehair STATIC ${LIB_SOURCE_FILES})
add_executable(unit_test ${UNIT_TEST_SOURCE_FILES})
target_link_libraries(unit_test wirehair)
add_executable(gen_small_dseeds ${GEN_SMALL_DSEEDS})
target_link_libraries(gen_small_dseeds wirehair)
add_executable(gen_peel_seeds ${GEN_PEEL_SEEDS})
target_link_libraries(gen_peel_seeds wirehair)
add_executable(gen_most_dseeds ${GEN_MOST_DSEEDS})
target_link_libraries(gen_most_dseeds wirehair)
add_executable(gen_dcounts ${GEN_DCOUNTS})
target_link_libraries(gen_dcounts wirehair)
add_executable(gen_tables ${GEN_TABLES})
128 Makefile

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 058c0e6

Please sign in to comment.