< prev index next >

src/hotspot/share/utilities/macros.hpp

Print this page

528 #define ARM32_ONLY(code)
529 #define NOT_ARM32(code) code
530 #endif
531 
532 #ifdef AARCH64
533 #define AARCH64_ONLY(code) code
534 #define NOT_AARCH64(code)
535 #else
536 #define AARCH64_ONLY(code)
537 #define NOT_AARCH64(code) code
538 #endif
539 
540 #ifdef TARGET_ARCH_aarch64
541 #define AARCH64_PORT_ONLY(code) code
542 #else
543 #define AARCH64_PORT_ONLY(code)
544 #endif
545 
546 #define MACOS_AARCH64_ONLY(x) MACOS_ONLY(AARCH64_ONLY(x))
547 


























548 #ifdef VM_LITTLE_ENDIAN
549 #define LITTLE_ENDIAN_ONLY(code) code
550 #define BIG_ENDIAN_ONLY(code)
551 #else
552 #define LITTLE_ENDIAN_ONLY(code)
553 #define BIG_ENDIAN_ONLY(code) code
554 #endif
555 
556 #define define_pd_global(type, name, value) const type pd_##name = value;
557 
558 // Helper macros for constructing file names for includes.
559 #define CPU_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_CPU)
560 #define OS_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_OS)
561 #define OS_CPU_HEADER_STEM(basename) PASTE_TOKENS(basename, PASTE_TOKENS(INCLUDE_SUFFIX_OS, INCLUDE_SUFFIX_CPU))
562 #define COMPILER_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_COMPILER)
563 
564 // Include platform dependent files.
565 //
566 // This macro constructs from basename and INCLUDE_SUFFIX_OS /
567 // INCLUDE_SUFFIX_CPU / INCLUDE_SUFFIX_COMPILER, which are set on

528 #define ARM32_ONLY(code)
529 #define NOT_ARM32(code) code
530 #endif
531 
532 #ifdef AARCH64
533 #define AARCH64_ONLY(code) code
534 #define NOT_AARCH64(code)
535 #else
536 #define AARCH64_ONLY(code)
537 #define NOT_AARCH64(code) code
538 #endif
539 
540 #ifdef TARGET_ARCH_aarch64
541 #define AARCH64_PORT_ONLY(code) code
542 #else
543 #define AARCH64_PORT_ONLY(code)
544 #endif
545 
546 #define MACOS_AARCH64_ONLY(x) MACOS_ONLY(AARCH64_ONLY(x))
547 
548 #if defined(RISCV32) || defined(RISCV64)
549 #define RISCV
550 #define RISCV_ONLY(code) code
551 #define NOT_RISCV(code)
552 #else
553 #undef RISCV
554 #define RISCV_ONLY(code)
555 #define NOT_RISCV(code) code
556 #endif
557 
558 #ifdef RISCV32
559 #define RISCV32_ONLY(code) code
560 #define NOT_RISCV32(code)
561 #else
562 #define RISCV32_ONLY(code)
563 #define NOT_RISCV32(code) code
564 #endif
565 
566 #ifdef RISCV64
567 #define RISCV64_ONLY(code) code
568 #define NOT_RISCV64(code)
569 #else
570 #define RISCV64_ONLY(code)
571 #define NOT_RISCV64(code) code
572 #endif
573 
574 #ifdef VM_LITTLE_ENDIAN
575 #define LITTLE_ENDIAN_ONLY(code) code
576 #define BIG_ENDIAN_ONLY(code)
577 #else
578 #define LITTLE_ENDIAN_ONLY(code)
579 #define BIG_ENDIAN_ONLY(code) code
580 #endif
581 
582 #define define_pd_global(type, name, value) const type pd_##name = value;
583 
584 // Helper macros for constructing file names for includes.
585 #define CPU_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_CPU)
586 #define OS_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_OS)
587 #define OS_CPU_HEADER_STEM(basename) PASTE_TOKENS(basename, PASTE_TOKENS(INCLUDE_SUFFIX_OS, INCLUDE_SUFFIX_CPU))
588 #define COMPILER_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_COMPILER)
589 
590 // Include platform dependent files.
591 //
592 // This macro constructs from basename and INCLUDE_SUFFIX_OS /
593 // INCLUDE_SUFFIX_CPU / INCLUDE_SUFFIX_COMPILER, which are set on
< prev index next >