[speex-dev] [ANNOUNCE] PocketPC Port for speex-1.1.5 with samplecode

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Tue Jun 1 12:31:36 PDT 2004


I understand that. I'm just saying that it should really be
#ifdef HAS_INT64
...

Otherwise, you'll end up with 10 lines of #ifdefs

        Jean-Marc

Le mar 01/06/2004 à 15:21, Kenji Chan a écrit :
> It's the case now, MS's compilers don't support long long type
> So in the arch.h file I posted. Since _WIN32_WCE is defined for every
> Windows CE platform (including PocketPC), 
> we can be sure if the following are defined, then it's ms's eMbedded Visual
> C++ compiler
> 
>   1. _WIN32_WCE, meaning on Windows CE platform
>   2. _MSC_VER, meaning ms's compiler
> 
> // the code in arch.h
> 
> /*long long is not recognized by
> eMbedded Visual C++ compiler;
> so use MS's __int64 instead of long long,
> if compiling on that compiler
> */
> #if defined(_WIN32_WCE) && defined(_MSC_VER)
> typedef __int64     spx_word64_t; 
> #else 
> typedef long long   spx_word64_t; 
> #endif
> 
> 
> ------------------------------------
> Chan Kei Yuen (Kenji)
> 
> 
> > Actually, the best thing do to would be to use __int64 
> > *unless* it's not supported. So there needs to be a configure check...
> > 
> > 	Jean-Marc
> > 
> > Le mar 01/06/2004 à 14:50, Kenji Chan a écrit :
> > > I emailed Jean-Marc the arch.h about one week ago, not quite sure 
> > > whether he actually received that email.
> > > 
> > >  
> > > 
> > > Anyway, here I have an improved version of arch.h that I 
> > believe that 
> > > it would be better, to use __int64 only if compiling on eMbedded 
> > > Visual C++ compiler, so for any other compiler, keep it the 
> > same (use 
> > > long long)
> 
> --- >8 ----
> List archives:  http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.

-- 
Jean-Marc Valin
http://www.xiph.org/~jm/
LABORIUS
Université de Sherbrooke, Québec, Canada


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Ceci est une partie de message numériquement signée.
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040601/1a42f239/signature-0001.pgp


More information about the Speex-dev mailing list