search for: words_bigendian

Displaying 20 results from an estimated 48 matches for "words_bigendian".

2007 May 02
4
[patch] Mac Universal Binaries
Hi all, Speex currently decides endianness at configure-time. This causes the ppc half of Mac universal binaries to have some endianness problems. Most notably, the header built by speex_packet_to_header() has incorrect byte-ordering. This Apple developer page describes the incantation that can be used to build universal binaries on Mac. It also highlights the configure-time versus compile-time
2009 Oct 27
1
dovecot-2.0.alpha2 doesn't compile on Mac OS X
...1_trash_plugin_la_LIBADD = \ - ../quota/lib10_quota_plugin.la +# Apple can't link loadable modules against other loadable modules +#lib11_trash_plugin_la_LIBADD = \ +# ../quota/lib10_quota_plugin.la lib11_trash_plugin_la_SOURCES = \ trash-plugin.c Third, for cross-compiling the value of WORDS_BIGENDIAN needs to be tested, not its presence: --- a/src/lib-index/mail-transaction-log-file.c 2009-10-15 21:26:13.000000000 -0500 +++ b/src/lib-index/mail-transaction-log-file.c 2009-10-27 10:35:58.000000000 -0500 @@ -189,7 +189,7 @@ hdr->hdr_size = sizeof(struct mail_transaction_log_header);...
2007 Apr 24
2
just noise
Hi, I tried both the stable and beta versions of the speex source code download on Mac OS 10.4.9. I just do: ./configure make sudo make install Then I added libspeex.a from /usr/local/lib and the headers to my xcode project. My app compiles and I'm able to call all of the speex functions. I copied the example code from the website and tweaked it to include the first 10000 bytes of
2008 Dec 17
6
Apple patches 6-8
Here are a few more patches. Still keeping it easy for now. Again the basis for these patches is dovecot-1.1.7. Patch #6. Solve a cross-compilation endianness issue. Currently, Dovecot assumes that the endianness of the build system is the same as the endianness of the runtime system. This is not necessarily true. We ran into this while compiling for i386 on a ppc machine. The
2007 May 02
0
[patch] Mac Universal Binaries
...gt; > Index: src/wav_io.h > =================================================================== > --- src/wav_io.h (revision 12905) > +++ src/wav_io.h (working copy) > @@ -35,7 +35,7 @@ > #include <stdio.h> > #include "speex/speex_types.h" > > -#ifdef WORDS_BIGENDIAN > +#ifdef __BIG_ENDIAN__ > #define le_short(s) ((short) ((unsigned short) (s) << 8) | ((unsigned short) (s) >> 8)) > #define be_short(s) ((short) (s)) > #else > @@ -46,7 +46,7 @@ > /** Convert little endian */ > static inline spx_int32_t le_int(spx_int32_t i) &...
2001 Jul 02
0
rijndael byteswapping
...y in such a situation. It seems to be a little more reliable than the existing system. Rob --- openssh_cvs/rijndael.c Tue Feb 27 13:14:22 2001 +++ /Users/rbraun/OpenSSH/openssh/rijndael.c Mon Jun 25 18:00:24 2001 @@ -58,7 +58,8 @@ #define byte(x,n) ((u1byte)((x) >> (8 * n))) -#ifdef WORDS_BIGENDIAN +/* We can't trust WORDS_BIGENDIAN when building for multiple architectures at the same time */ +#if (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || defined(WORDS_BIGENDIAN) #define BYTE_SWAP #endif
2007 Apr 24
0
Re: just noise
...dian architecture like powerpc, you must swap the byte order of the samples with the following code:" //////////////////////////////////////// /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #define WORDS_BIGENDIAN 1 unsigned short be_short(unsigned short s) { unsigned short ret=s; #ifndef WORDS_BIGENDIAN ret = s>>8; ret += s<<8; #endif return ret; } unsigned short le_short(unsigned short s) { unsigned short ret=s; #ifdef WORDS_BIGENDIAN ret = s>>8; ret += s&l...
2005 Sep 09
2
C macros and Makevars/package building
....o) We seem to need the last statement since it seems that .cpp is not automatically a C++ suffix (but is it done the "right" way for portability?). We need the -imacro statement in order to include some macros from Rconfig.h (big endian checks) which are then translated from the WORDS_BIGENDIAN used in R to the IS_BIG_ENDIAN used in the library. Comments on the portability? Kasper
2007 Apr 24
3
Re: just noise
...in both macro and inline form. You can leave inline off of the function version and it still works fine: //////////////////////////////////////// /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #define WORDS_BIGENDIAN 1 #ifdef WORDS_BIGENDIAN #define le_short( s ) ((short) ((unsigned short) (s) << 8) | ((unsigned short) (s) >> 8)) #define be_short( s ) ((short) (s)) #else #define le_short( s ) ((short) (s)) #define be_short( s ) ((short) ((unsigned short) (s) << 8) | ((unsigned short)...
2007 May 03
0
[patch] Mac Universal Binaries
...we could use at compile-time to determine whether > the endianess was resolved at configure-time or should be resolved at > compile-time. For example: > > #if defined(COMPILE_TIME_ENDIANESS) && defined(__BIG_ENDIAN__) || > !defined(COMPILE_TIME_ENDIANESS) && defined(WORDS_BIGENDIAN) > /* do big endian thing */ > #else > /* do little endian thing */ > #endif > > This seems excessively complicated, so I preferred not to do it. Actually, all we need is to do is have that once in the main include: #if defined(WORDS_BIGENDIAN) || defined(__BIG_ENDIAN__) #define...
2002 Dec 30
1
R on the Zaurus link
Hello All, The link to the binary & installation instructions (tar.gz binary not an ipk I'm afraid) is as follows: http://students.bath.ac.uk/enpsgp/Zaurus/#R It eventually dawned on me that the WORDS_BIGENDIAN define (or lack thereof) was causing the problems (after testing ieee NaN compliance that is). When cross-compiling it's probably fair enough that the configure script can't work out what the endianness should be, however the same thing happened (WORDS_BIGENDIAN not defined) when compiling...
2018 Jul 10
9
[PATCH 0/7] PowerPC64 performance improvements
The following series adds initial vector support for PowerPC64. On POWER9, flac --best is about 3.3x faster. Amitay Isaacs (2): Add m4 macro to check for C __attribute__ features Check if compiler supports target attribute on ppc64 Anton Blanchard (5): configure.ac: Remove SPE detection code configure.ac: Add VSX enable/disable configure.ac: Fix FLAC__CPU_PPC on little endian, and add
2008 Aug 29
3
Dovecot-1.1.2 segfaults in mail_cache_header_fields_get_offset
Dovecot 1.1.2 crashes reliably for me now on a Mac OS X machine. Here's some info: --- Telnet session --- $ telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK Dovecot ready. a login user1 password a OK Logged in. b select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen
2008 May 06
2
flac/metaflac 32/64 Universal OS X builds
I guess I should add this to the long list of things Apple has broken that used to work well on NEXTSTEP (the operating system that has been turned into OS X). Now that you mention it, I remember having a problem getting flac to cross-compile in one build step, so I just did the manual lipo glue that you talked about. I assumed it was only because I was too lazy to figure out how to
2005 Apr 19
0
R 2.0.1 install problem on Solaris 9
...SYS_TIMES_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_POSIX_SETJMP 1 | #define RETSIGTYPE void | #define HAVE_DECL_SIZE_MAX 1 | #define SOCKLEN_T socklen_t | #define WORDS_BIGENDIAN 1 | #define R_INLINE inline | #define SIZEOF_INT 4 | #define INT_32_BITS 1 | #define SIZEOF_LONG 4 | #define SIZEOF_LONG_LONG 8 | #define SIZEOF_LONG_DOUBLE 16 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" |...
2009 Mar 02
0
[PATCH 5 of 13] exploiting the new interface in vnc.c
...+ } +} + static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift, int blue_shift) { - int host_big_endian_flag; - -#ifdef WORDS_BIGENDIAN - host_big_endian_flag = 1; -#else - host_big_endian_flag = 0; -#endif if (!true_color_flag) { - fail: vnc_client_error(vs); return; } - if (bits_per_pixel == 32 && - bits_per_pixel == vs->depth * 8 && - host_big_endian_flag == big_...
2003 Mar 29
1
compling errors for sun unix (PR#2702)
...SYS_STAT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TIMES_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_POSIX_SETJMP 1 | #define RETSIGTYPE void | #define SOCKLEN_T socklen_t | #define WORDS_BIGENDIAN 1 | #define SIZEOF_INT 4 | #define INT_32_BITS 1 | #define SIZEOF_LONG 4 | #define SIZEOF_LONG_LONG 8 | #define SIZEOF_LONG_DOUBLE 16 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:14945: checking for dummy main to link with Fortran 77 libraries configure:14982...
2017 May 29
0
[PATCH] Add CMake build script
...IN_ASM` - off * `ENABLE_TI_C55X` - off * `USE_SPEEXDSP` - on if library found * `DISABLE_BINARIES` - off * `ENABLE_PACKAGE_CONFIG` - on, [CMake specific](https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#package-configuration-file) * Configured conditionals (`config.h`): * `WORDS_BIGENDIAN` * `FLOATING_POINT` * `FIXED_POINT` * `FIXED_POINT_DEBUG` * `DISABLE_FLOAT_API` * `_USE_SSE` * `ARM4_ASM` * `ARM5E_ASM` * `BFIN_ASM` * `TI_C55X` * `DISABLE_VBR` * `USE_SPEEXDSP` * `VORBIS_PSYCHO` * `HAVE_GETOPT_H` * `HAVE_GETOPT_LONG` * `VAR_ARRAYS` * `USE_ALLOCA`...
2004 Sep 27
0
Compiling ices2 on solaris
...#define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #ifdef __cplusplus | #include <stdlib.h> | #endif | #define _XOPEN_SOURCE 600 | #define __EXTENSIONS__ 1 | #define _GNU_SOURCE | #define STDC_HEADERS 1 | #define WORDS_BIGENDIAN 1 | /* end confdefs.h. */ | #include <stdio.h> | #if HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #if HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #if STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # if HAVE_STDLIB_H | # include...
2006 Jan 02
0
Getting Cannot compute sizeof (int) on rsync-2.6.6
...CKAGE_VERSION "" #define RSYNCD_SYSCONF "/etc/rsyncd.conf" #define RSYNC_PATH "rsync" #define RSYNC_RSH "ssh" #define RSYNC_VERSION "2.6.6" #define TIME_WITH_SYS_TIME 1 #define WORDS_BIGENDIAN 1 #define _GNU_SOURCE 1 #define _LARGE_FILES 1 configure: exit 1 The configure and compile worded fine on another RS6000 running Aix 4.3.3. Does this have anything to do with the LARGE_FILE issue I se...