comparison src/share/vm/utilities/macros.hpp @ 14390:0f03ff49c720

8016491: PPC64 (part 2): Clean up PPC defines. Summary: Distinguish PPC, PPC64 and PPC32. PPC should guard code needed on any PPC system. PPC32 and PPC64 should guard code needed in a port for the ppc64 or ppc32 instruction set. Reviewed-by: kvn
author goetz
date Wed, 19 Jun 2013 12:29:30 +0200
parents db9981fd3124
children b5c8a61d7fa0
comparison
equal deleted inserted replaced
14389:164db61dbced 14390:0f03ff49c720
338 #else 338 #else
339 #define SPARC_ONLY(code) 339 #define SPARC_ONLY(code)
340 #define NOT_SPARC(code) code 340 #define NOT_SPARC(code) code
341 #endif 341 #endif
342 342
343 #ifdef PPC 343 #if defined(PPC32) || defined(PPC64)
344 #ifndef PPC
345 #define PPC
346 #endif
344 #define PPC_ONLY(code) code 347 #define PPC_ONLY(code) code
345 #define NOT_PPC(code) 348 #define NOT_PPC(code)
346 #else 349 #else
350 #undef PPC
347 #define PPC_ONLY(code) 351 #define PPC_ONLY(code)
348 #define NOT_PPC(code) code 352 #define NOT_PPC(code) code
353 #endif
354
355 #ifdef PPC32
356 #define PPC32_ONLY(code) code
357 #define NOT_PPC32(code)
358 #else
359 #define PPC32_ONLY(code)
360 #define NOT_PPC32(code) code
361 #endif
362
363 #ifdef PPC64
364 #define PPC64_ONLY(code) code
365 #define NOT_PPC64(code)
366 #else
367 #define PPC64_ONLY(code)
368 #define NOT_PPC64(code) code
349 #endif 369 #endif
350 370
351 #ifdef E500V2 371 #ifdef E500V2
352 #define E500V2_ONLY(code) code 372 #define E500V2_ONLY(code) code
353 #define NOT_E500V2(code) 373 #define NOT_E500V2(code)