Changeset 249 for trunk/openjdk/jdk/src/windows
- Timestamp:
- Jan 27, 2011, 6:22:28 PM (15 years ago)
- Location:
- trunk/openjdk/jdk/src/windows
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/windows/back/util_md.h
r2 r249 30 30 #include <stdlib.h> /* for _MAx_PATH */ 31 31 32 #ifdef __EMX__ 33 typedef __uint64_t UNSIGNED_JLONG; 34 #define CONST_JLONG(x) x##LL 35 #else 32 36 typedef unsigned __int64 UNSIGNED_JLONG; 37 #define CONST_JLONG(x) x 38 #endif 39 33 40 typedef unsigned long UNSIGNED_JINT; 34 41 … … 51 58 #define HOST_TO_JAVA_LONG(x) \ 52 59 ((x << 56) | \ 53 ((x & 0x000000000000ff00) << 40) | \54 ((x & 0x0000000000ff0000) << 24) | \55 ((x & 0x00000000ff000000) << 8) | \56 ((x & 0x000000ff00000000) >> 8) | \57 ((x & 0x0000ff0000000000) >> 24) | \58 ((x & 0x00ff000000000000) >> 40) | \59 (((UNSIGNED_JLONG)(x & 0xff00000000000000)) >> 56))60 ((x & CONST_JLONG(0x000000000000ff00)) << 40) | \ 61 ((x & CONST_JLONG(0x0000000000ff0000)) << 24) | \ 62 ((x & CONST_JLONG(0x00000000ff000000)) << 8) | \ 63 ((x & CONST_JLONG(0x000000ff00000000)) >> 8) | \ 64 ((x & CONST_JLONG(0x0000ff0000000000)) >> 24) | \ 65 ((x & CONST_JLONG(0x00ff000000000000)) >> 40) | \ 66 (((UNSIGNED_JLONG)(x & CONST_JLONG(0xff00000000000000))) >> 56)) 60 67 #define HOST_TO_JAVA_FLOAT(x) stream_encodeFloat(x) 61 68 #define HOST_TO_JAVA_DOUBLE(x) stream_encodeDouble(x) -
trunk/openjdk/jdk/src/windows/transport/shmem/shmem_md.c
r2 r249 27 27 #include <errno.h> 28 28 29 #include "shmem_md.h"30 29 #include "sysShmem.h" 31 30 #include "shmemBase.h" /* for exitTransportWithError */ -
trunk/openjdk/jdk/src/windows/transport/socket/socket_md.c
r2 r249 26 26 #include <winsock2.h> 27 27 28 #ifdef __EMX__ 29 #include <string.h> 30 #include <memory.h> 31 #endif 32 28 33 #include "sysSocket.h" 29 34 #include "socketTransport.h" … … 41 46 const char *errString; 42 47 } const winsock_errors[] = { 48 #ifndef __WIN32OS2__ 43 49 { WSAEPROVIDERFAILEDINIT, "Provider initialization failed (check %SystemRoot%)" }, 50 #endif 44 51 { WSAEACCES, "Permission denied" }, 45 52 { WSAEADDRINUSE, "Address already in use" }, … … 427 434 428 435 #define FT2INT64(ft) \ 429 (( long)(ft).dwHighDateTime << 32 | (long)(ft).dwLowDateTime)436 ((jlong)(ft).dwHighDateTime << 32 | (jlong)(ft).dwLowDateTime) 430 437 431 438 long 432 439 dbgsysCurrentTimeMillis() { 433 static long fileTime_1_1_70 = 0; /* midnight 1/1/70 */440 static jlong fileTime_1_1_70 = 0; /* midnight 1/1/70 */ 434 441 SYSTEMTIME st0; 435 442 FILETIME ft0;
Note:
See TracChangeset
for help on using the changeset viewer.