summaryrefslogtreecommitdiff
path: root/tnet_io/KaldiLib/Types.h
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2015-06-25 12:56:45 +0800
committerDeterminant <ted.sybil@gmail.com>2015-06-25 12:56:45 +0800
commita74183ddb4ab8383bfe214b3745eb8a0a99ee47a (patch)
treed5e69cf8c4c2db2e3a4722778352fc3c95953bb2 /tnet_io/KaldiLib/Types.h
parentb6301089cde20f4c825c7f5deaf179082aad63da (diff)
let HTK I/O implementation be a single package
Diffstat (limited to 'tnet_io/KaldiLib/Types.h')
-rw-r--r--tnet_io/KaldiLib/Types.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/tnet_io/KaldiLib/Types.h b/tnet_io/KaldiLib/Types.h
deleted file mode 100644
index 6a5bfac..0000000
--- a/tnet_io/KaldiLib/Types.h
+++ /dev/null
@@ -1,78 +0,0 @@
-#ifndef TNet_Types_h
-#define TNet_Types_h
-
-#ifdef HAVE_ATLAS
-extern "C"{
- #include <cblas.h>
- #include <clapack.h>
-}
-#endif
-
-
-namespace TNet
-{
- // TYPEDEFS ..................................................................
-#if DOUBLEPRECISION
- typedef double BaseFloat;
-#else
- typedef float BaseFloat;
-#endif
-
-#ifndef UINT_16
- typedef unsigned short UINT_16 ;
- typedef unsigned UINT_32 ;
- typedef short INT_16 ;
- typedef int INT_32 ;
- typedef float FLOAT_32 ;
- typedef double DOUBLE_64 ;
-#endif
-
-
-
- // ...........................................................................
- // The following declaration assumes that SSE instructions are enabled
- // and that we are using GNU C/C++ compiler, which defines the __attribute__
- // notation.
- //
- // ENABLE_SSE is defined in <config.h>. Its value depends on options given
- // in the configure phase of builidng the library
-#if defined(__GNUC__ )
- // vector of four single floats
- typedef float v4sf __attribute__((vector_size(16)));
- // vector of two single doubles
- typedef double v2sd __attribute__((vector_size(16)));
-
- typedef BaseFloat BaseFloat16Aligned __attribute__((aligned(16))) ;
-
- typedef union
- {
- v4sf v;
- float f[4];
- } f4vector;
-
- typedef union
- {
- v2sd v;
- double f[2];
- } d2vector;
-#endif // ENABLE_SSE && defined(__GNUC__ )
-
-
-
- typedef enum
- {
-#ifdef HAVE_ATLAS
- TRANS = CblasTrans,
- NO_TRANS = CblasNoTrans
-#else
- TRANS = 'T',
- NO_TRANS = 'N'
-#endif
- } MatrixTrasposeType;
-
-
-
-} // namespace TNet
-
-#endif // #ifndef TNet_Types_h
-