Hi Guilhem,

On Sat, 2006-01-28 at 17:37 +0100, Guilhem Lavaux wrote:
> 2006-01-28  Guilhem Lavaux  <[EMAIL PROTECTED]>
> 
>          * native/jni/java-io/java_io_VMFile.c,
>          native/jni/java-net/gnu_java_net_VMPlainDatagramSocketImpl.c,
>          native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c,
>          native/jni/java-net/javanet.c,
>          native/jni/java-net/javanet.h: Adapted the VM layer code
>          to the new native layer.
> 
>          * native/jni/native-lib/cpnet.h
>          (cpnet_addMembership,
>          cpnet_dropMembership,
>          cpnet_getAvailableBytes): Added the declarations of
>          some new functions.
>          (cpnet_newIPV6Address,
>          cpnet_IPV6AddressToBytes,
>          cpnet_bytesToIPV6Address): Implemented.
>          (cpnet_newIPV4Address): Initialize the sin_family field.

There was also a part that modified VMDouble:

> Index: native/jni/java-lang/java_lang_VMDouble.c
> ===================================================================
> RCS file: 
> /cvsroot/classpath/classpath/native/jni/java-lang/java_lang_VMDouble.c,v
> retrieving revision 1.12
> retrieving revision 1.13
> diff -u -r1.12 -r1.13
> --- native/jni/java-lang/java_lang_VMDouble.c 15 Nov 2005 20:14:57 -0000      
> 1.12
> +++ native/jni/java-lang/java_lang_VMDouble.c 26 Jan 2006 21:09:53 -0000      
> 1.13
> @@ -1,5 +1,5 @@
>  /* VMDouble.c - java.lang.VMDouble native functions
> -   Copyright (C) 1998, 1999, 2001, 2003, 2004i, 2005
> +   Copyright (C) 1998, 1999, 2001, 2003, 2004, 2005, 2006
>     Free Software Foundation, Inc.
>  
>  This file is part of GNU Classpath.
> @@ -123,6 +123,16 @@
>    jlong e, f;
>    val.d = doubleValue;
>  
> +#if defined(__IEEE_BYTES_LITTLE_ENDIAN)
> +  /* On little endian ARM processors when using FPA, word order of
> +     doubles is still big endian. So take that into account here. When
> +     using VFP, word order of doubles follows byte order. */
> +
> +#define SWAP_DOUBLE(a)    (((a) << 32) | (((a) >> 32) & 0x00000000ffffffff))
> +
> +  val.j = SWAP_DOUBLE(val.j);
> +#endif
> +
>    e = val.j & 0x7ff0000000000000LL;
>    f = val.j & 0x000fffffffffffffLL;
>  
> @@ -144,6 +154,11 @@
>  {
>    jvalue val;
>    val.d = doubleValue;
> +
> +#if defined(__IEEE_BYTES_LITTLE_ENDIAN)
> +  val.j = SWAP_DOUBLE(val.j);
> +#endif
> +
>    return val.j;
>  }
>  
> @@ -159,6 +174,11 @@
>  {
>    jvalue val;
>    val.j = longValue;
> +
> +#if defined(__IEEE_BYTES_LITTLE_ENDIAN)
> +  val.j = SWAP_DOUBLE(val.j);
> +#endif
> +
>    return val.d;
>  }

It seems you didn't commit this though.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to