Displaying 10 results from an estimated 10 matches for "__little_endian__".
2014 Feb 26
3
[LLVMdev] test-suite wrongly using big-endian results
...to a patch I submitted a little while ago (still pending):
> http://llvm-reviews.chandlerc.com/D2760
>
> If accepted, would it make this patch (and a others) unnecessary?
Hi Robert,
It is, but hijacking your patch a little, why not use
__ORDER_LITTLE_ENDIAN__? Why do we need to create __LITTLE_ENDIAN__ ?
cheers,
--renato
2008 Oct 27
0
[LLVMdev] endian independence
...anguages, it would
be very useful. If you're just trying to *reduce* the endianness
assumptions that leak through, I don't think it's a good approach.
There is just no way to solve this problem with C. By the time the
preprocessor has run, your C code has already had #ifdef
__LITTLE_ENDIAN__ etc evaluated, for example.
How do you propose to handle things like:
struct foo {
#ifdef __LITTLE_ENDIAN__
int x, y;
#else
int y, x;
#endif
};
-Chris
2001 Feb 27
4
Bad packet length in 2.5.1 with rijndael
it seems that this check does not work on solaris
#if BYTE_ORDER != LITTLE_ENDIAN
#define BYTE_SWAP
#endif
could you please check that BYTE_SWAP is defined
in rijndael.c
-m
2014 Feb 26
2
[LLVMdev] test-suite wrongly using big-endian results
...uary 2014 18:32, Daniel Dunbar <daniel at zuster.org> wrote:
> $(error "ENDIAN is $ENDIAN"), before and after the include of
> Makefile.config and Makefile.singlesrc (which includes Makefile.programs).
Hi Daniel,
Thanks, that did the trick! ;)
In TargetConfig.mk.in:
#ifdef __LITTLE_ENDIAN__
ENDIAN := little
#else
ENDIAN := big
#endif
Seems like it should be __ORDER_LITTLE_ENDIAN__ to be cross-platform.
Attaching the patch that adds aarch64 (which is identical to the one
applied in LLVM a few days ago) to the config plus change the
TargetConfig.mk.
Shouldn't cause too much distu...
2008 Oct 21
4
[LLVMdev] endian independence
Hi,
I'd like to use LLVM to compile and optimise code when I don't know
whether the target CPU is big- or little-endian. This would allow me
to create a single optimised LLVM bitcode binary of an application,
and then run it through a JIT compiler on systems of differening
endianness.
I realise that in general the LLVM IR depends on various
characteristics of the target; I'd just
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
2007 May 03
4
[patch] Mac Universal Binaries
..._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.
Can others comment on the availability of the compiler defined
__BIG_ENDIAN__ and __LITTLE_ENDIAN__ variables?
Pete
2014 Feb 24
2
[LLVMdev] test-suite wrongly using big-endian results
On 24 February 2014 17:02, Daniel Dunbar <daniel at zuster.org> wrote:
> Nothing in particular springs to mind. Is it possible that in the context
> where this part of the Makefile is running Makefile.config isn't available?
This is a standard lnt run, create in the same way I ran for x86_64
and ARM, so I'm not sure what could be wrong.
> I'm not sure how this can be
2008 Oct 27
3
[LLVMdev] endian independence
...the llvm part of this is more straightforward and
less controversial than the llvm-gcc part. Maybe I should submit the
llvm part (since it applies to all source languages) and keep the
llvm-gcc part as a local hack.
> How do you propose to handle things like:
>
> struct foo {
> #ifdef __LITTLE_ENDIAN__
> int x, y;
> #else
> int y, x;
> #endif
> };
I can't make all C programs work regardless of target endianness. This
one will only work on little-endian:
int x = 1;
assert(*(char *)&x == 1);
You've just highlighted another restriction that I'll have to impo...
2006 Jul 26
5
linux-2.6-xen.hg
Hi,
Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being
updated? if not, what''s the preferred Linux tree to track that has all
of the Xen bits?
Thanks,
Muli
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel