[xiph-cvs] cvs commit: Tremor misc.h synthesis.c vorbisfile.c

Monty xiphmont at xiph.org
Wed Apr 9 02:43:50 PDT 2003



xiphmont    03/04/09 05:43:50

  Modified:    .        Tag: lowmem-branch misc.h synthesis.c vorbisfile.c
  Log:
  Rather than dealing with autoconf (which can't do cross-compile tests
  anyway), throw OV_EIMPL on architectures where right shift of a signed
  int is not arithmetic.
  
  Monty

Revision  Changes    Path
No                   revision

<p>No                   revision

<p>1.8.2.4   +1 -1      Tremor/misc.h

Index: misc.h
===================================================================
RCS file: /usr/local/cvsroot/Tremor/misc.h,v
retrieving revision 1.8.2.3
retrieving revision 1.8.2.4
diff -u -r1.8.2.3 -r1.8.2.4
--- misc.h	9 Apr 2003 08:31:42 -0000	1.8.2.3
+++ misc.h	9 Apr 2003 09:43:49 -0000	1.8.2.4
@@ -20,7 +20,7 @@
 #include "ivorbiscodec.h"
 #include "os_types.h"
 
-#define _VDBG_GRAPHFILE "_0.m"
+//#define _VDBG_GRAPHFILE "_0.m"
 
 
 #ifdef _VDBG_GRAPHFILE

<p><p>1.4.2.1   +2 -2      Tremor/synthesis.c

Index: synthesis.c
===================================================================
RCS file: /usr/local/cvsroot/Tremor/synthesis.c,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -r1.4 -r1.4.2.1
--- synthesis.c	29 Mar 2003 03:07:21 -0000	1.4
+++ synthesis.c	9 Apr 2003 09:43:49 -0000	1.4.2.1
@@ -12,7 +12,7 @@
  ********************************************************************
 
  function: single-block PCM synthesis
- last mod: $Id: synthesis.c,v 1.4 2003/03/29 03:07:21 xiphmont Exp $
+ last mod: $Id: synthesis.c,v 1.4.2.1 2003/04/09 09:43:49 xiphmont Exp $
 
  ********************************************************************/
 
@@ -78,7 +78,7 @@
     vb->pcmend=0;
     vb->pcm=NULL;
     
-    return(0);
+    return 0;
   }
 }
 

<p><p>1.6.2.1   +6 -1      Tremor/vorbisfile.c

Index: vorbisfile.c
===================================================================
RCS file: /usr/local/cvsroot/Tremor/vorbisfile.c,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -r1.6 -r1.6.2.1
--- vorbisfile.c	30 Mar 2003 23:40:56 -0000	1.6
+++ vorbisfile.c	9 Apr 2003 09:43:49 -0000	1.6.2.1
@@ -12,7 +12,7 @@
  ********************************************************************
 
  function: stdio-based convenience library for opening/seeking/decoding
- last mod: $Id: vorbisfile.c,v 1.6 2003/03/30 23:40:56 xiphmont Exp $
+ last mod: $Id: vorbisfile.c,v 1.6.2.1 2003/04/09 09:43:49 xiphmont Exp $
 
  ********************************************************************/
 
@@ -668,6 +668,11 @@
   int ret;
 
   memset(vf,0,sizeof(*vf));
+
+  /* Tremor assumes in multiple places that right shift of a signed
+     integer is an arithmetic shift */
+  if( (-1>>1) != -1) return OV_EIMPL;
+
   vf->datasource=f;
   vf->callbacks = callbacks;
 

<p><p>--- >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 'cvs-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.



More information about the commits mailing list