Sha256: 859557aaecbe5c67319ded2fc2000cd93cdbdf45d5e6d2879e11a73bda6522e8

Contents?: true

Size: 1.08 KB

Versions: 24

Compression:

Stored size: 1.08 KB

Contents

#include <rice/rice.hpp>

void init_lda(Rice::Module& m);
void init_ct(Rice::Module& m);
void init_dmr(Rice::Module& m);
void init_dt(Rice::Module& m);
void init_gdmr(Rice::Module& m);
void init_hdp(Rice::Module& m);
void init_hlda(Rice::Module& m);
void init_pa(Rice::Module& m);
void init_hpa(Rice::Module& m);
void init_mglda(Rice::Module& m);
void init_llda(Rice::Module& m);
void init_plda(Rice::Module& m);
void init_slda(Rice::Module& m);

extern "C"
void Init_tomoto()
{
  auto m = Rice::define_module("Tomoto")
    .define_singleton_function(
      "isa",
      []() {
        #ifdef __AVX2__
          return Rice::String("avx2");
        #elif defined(__AVX__)
          return Rice::String("avx");
        #elif defined(__SSE2__) || defined(__x86_64__) || defined(_WIN64)
          return Rice::String("sse2");
        #else
          return Rice::String("none");
        #endif
      });

  init_lda(m);
  init_ct(m);
  init_dmr(m);
  init_dt(m);
  init_gdmr(m);
  init_hdp(m);
  init_hlda(m);
  init_pa(m);
  init_hpa(m);
  init_mglda(m);
  init_llda(m);
  init_plda(m);
  init_slda(m);
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
tomoto-0.4.1-x86_64-linux ext/tomoto/tomoto.cpp
tomoto-0.4.1-x86_64-darwin ext/tomoto/tomoto.cpp
tomoto-0.4.1-arm64-darwin ext/tomoto/tomoto.cpp
tomoto-0.4.1-aarch64-linux ext/tomoto/tomoto.cpp
tomoto-0.4.1 ext/tomoto/tomoto.cpp
tomoto-0.4.0-x86_64-linux ext/tomoto/tomoto.cpp
tomoto-0.4.0-x86_64-darwin ext/tomoto/tomoto.cpp
tomoto-0.4.0-arm64-darwin ext/tomoto/tomoto.cpp
tomoto-0.4.0-aarch64-linux ext/tomoto/tomoto.cpp
tomoto-0.4.0 ext/tomoto/tomoto.cpp
tomoto-0.3.3-x86_64-linux ext/tomoto/tomoto.cpp
tomoto-0.3.3-x86_64-darwin ext/tomoto/tomoto.cpp
tomoto-0.3.3-arm64-darwin ext/tomoto/tomoto.cpp
tomoto-0.3.3 ext/tomoto/tomoto.cpp
tomoto-0.3.2-x86_64-linux ext/tomoto/tomoto.cpp
tomoto-0.3.2-x86_64-darwin ext/tomoto/tomoto.cpp
tomoto-0.3.2-arm64-darwin ext/tomoto/tomoto.cpp
tomoto-0.3.2 ext/tomoto/tomoto.cpp
tomoto-0.3.1-x86_64-linux ext/tomoto/tomoto.cpp
tomoto-0.3.1-x86_64-darwin ext/tomoto/tomoto.cpp