123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- /* ----------------------------------------------------------------- */
- /* The HMM-Based Singing Voice Synthesis System "Sinsy" */
- /* developed by Sinsy Working Group */
- /* http://sinsy.sourceforge.net/ */
- /* ----------------------------------------------------------------- */
- /* */
- /* Copyright (c) 2009-2015 Nagoya Institute of Technology */
- /* Department of Computer Science */
- /* */
- /* All rights reserved. */
- /* */
- /* Redistribution and use in source and binary forms, with or */
- /* without modification, are permitted provided that the following */
- /* conditions are met: */
- /* */
- /* - Redistributions of source code must retain the above copyright */
- /* notice, this list of conditions and the following disclaimer. */
- /* - Redistributions in binary form must reproduce the above */
- /* copyright notice, this list of conditions and the following */
- /* disclaimer in the documentation and/or other materials provided */
- /* with the distribution. */
- /* - Neither the name of the Sinsy working group nor the names of */
- /* its contributors may be used to endorse or promote products */
- /* derived from this software without specific prior written */
- /* permission. */
- /* */
- /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */
- /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */
- /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
- /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
- /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */
- /* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
- /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
- /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
- /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */
- /* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */
- /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */
- /* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
- /* POSSIBILITY OF SUCH DAMAGE. */
- /* ----------------------------------------------------------------- */
- #ifndef SINSY_UTIL_TYPES_H_
- #define SINSY_UTIL_TYPES_H_
- namespace sinsy
- {
- #ifndef INT8
- #ifdef _WIN32
- typedef __int8 INT8;
- #elif (SIZEOF_CHAR==1)
- typedef char INT8;
- #elif (SIZEOF_SHORT==1)
- typedef short INT8;
- #elif (SIZEOF_INT==1)
- typedef int INT8;
- #elif (SIZEOF_LONG==1)
- typedef long INT8;
- #elif (SIZEOF_LONG_LONG==1)
- typedef long long INT8;
- #else
- typedef char INT8;
- #endif
- #endif
- #ifndef UINT8
- #ifdef _WIN32
- typedef unsigned __int8 UINT8;
- #elif (SIZEOF_UNSIGNED_CHAR==1)
- typedef unsigned char UINT8;
- #elif (SIZEOF_UNSIGNED_SHORT==1)
- typedef unsigned short UINT8;
- #elif (SIZEOF_UNSIGNED_INT==1)
- typedef unsigned int UINT8;
- #elif (SIZEOF_UNSIGNED_LONG==1)
- typedef unsigned long UINT8;
- #elif (SIZEOF_UNSIGNED_LONG_LONG==1)
- typedef unsigned long long UINT8;
- #else
- typedef unsigned char UINT8;
- #endif
- #endif
- #ifndef INT16
- #ifdef _WIN32
- typedef __int16 INT16;
- #elif (SIZEOF_CHAR==2)
- typedef char INT16;
- #elif (SIZEOF_SHORT==2)
- typedef short INT16;
- #elif (SIZEOF_INT==2)
- typedef int INT16;
- #elif (SIZEOF_LONG==2)
- typedef long INT16;
- #elif (SIZEOF_LONG_LONG==2)
- typedef long long INT16;
- #else
- typedef short INT16;
- #endif
- #endif
- #ifndef UINT16
- #ifdef _WIN32
- typedef unsigned __int16 UINT16;
- #elif (SIZEOF_UNSIGNED_CHAR==2)
- typedef unsigned char UINT16;
- #elif (SIZEOF_UNSIGNED_SHORT==2)
- typedef unsigned short UINT16;
- #elif (SIZEOF_UNSIGNED_INT==2)
- typedef unsigned int UINT16;
- #elif (SIZEOF_UNSIGNED_LONG==2)
- typedef unsigned long UINT16;
- #elif (SIZEOF_UNSIGNED_LONG_LONG==2)
- typedef unsigned long long UINT16;
- #else
- typedef unsigned short UINT16;
- #endif
- #endif
- #ifndef INT32
- #ifdef _WIN32
- typedef __int32 INT32;
- #elif (SIZEOF_CHAR==4)
- typedef char INT32;
- #elif (SIZEOF_SHORT==4)
- typedef short INT32;
- #elif (SIZEOF_INT==4)
- typedef int INT32;
- #elif (SIZEOF_LONG==4)
- typedef long INT32;
- #elif (SIZEOF_LONG_LONG==4)
- typedef long long INT32;
- #else
- typedef int INT32;
- #endif
- #endif
- #ifndef UINT32
- #ifdef _WIN32
- typedef unsigned __int32 UINT32;
- #elif (SIZEOF_UNSIGNED_CHAR==4)
- typedef unsigned char UINT32;
- #elif (SIZEOF_UNSIGNED_SHORT==4)
- typedef unsigned short UINT32;
- #elif (SIZEOF_UNSIGNED_INT==4)
- typedef unsigned int UINT32;
- #elif (SIZEOF_UNSIGNED_LONG==4)
- typedef unsigned long UINT32;
- #elif (SIZEOF_UNSIGNED_LONG_LONG==4)
- typedef unsigned long long UINT32;
- #else
- typedef unsigned int UINT32;
- #endif
- #endif
- #ifndef INT64
- #ifdef _WIN32
- typedef __int64 INT64;
- #elif (SIZEOF_CHAR==8)
- typedef char INT64;
- #elif (SIZEOF_SHORT==8)
- typedef short INT64;
- #elif (SIZEOF_INT==8)
- typedef int INT64;
- #elif (SIZEOF_LONG==8)
- typedef long INT64;
- #elif (SIZEOF_LONG_LONG==8)
- typedef long long INT64;
- #else
- typedef long long INT64;
- #endif
- #endif
- #ifndef UINT64
- #ifdef _WIN32
- typedef unsigned __int64 UINT64;
- #elif (SIZEOF_UNSIGNED_CHAR==8)
- typedef unsigned char UINT64;
- #elif (SIZEOF_UNSIGNED_SHORT==8)
- typedef unsigned short UINT64;
- #elif (SIZEOF_UNSIGNED_INT==8)
- typedef unsigned int UINT64;
- #elif (SIZEOF_UNSIGNED_LONG==8)
- typedef unsigned long UINT64;
- #elif (SIZEOF_UNSIGNED_LONG_LONG==8)
- typedef unsigned long long UINT64;
- #else
- typedef unsigned long long UINT64;
- #endif
- #endif
- }; // sinsy
- #endif // SINSY_UTIL_TYPES_H_
|