tools/ia64: Cull more ia64 code
PATCH 1/1 tools/ia64: Cull more ia64 code
Signed-off-by Andrew Cooper <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
--- tools/libfsimage/common/fsimage_grub.c | 22 ------------- tools/python/xen/lowlevel/xc/xc.c | 53 -------------------------------- 2 files changed, 75 deletions(-)
tools/libfsimage/common/fsimage_grub.c +0 -22
@@ -138,28 +138,6 @@ fsig_log2 (unsigned long word) return word; } -#elif defined(__ia64__) - -#if __GNUC__ >=4 || (__GNUC__ ==3 && __GNUC_MINOR__ >=4 ) -# define ia64_popcnt (x) __builtin_popcountl(x) -#else -# define ia64_popcnt (x) \ - ({ \ - uint64_t ia64_intri_res; \ - asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x)); \ - ia64_intri_res; \ - }) -#endif - -unsigned long -fsig_log2 (unsigned long word) -{ -unsigned long result; - - result =ia64_popcnt ((word -1 ) & ~word); -return result; -} -#elif defined(__powerpc__)#ifdef __powerpc64__
tools/python/xen/lowlevel/xc/xc.c +0 -53
91 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Quoted 22 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
tools/libfsimage/common/fsimage_grub.c +0
-15@@ -138,28 +138,6 @@ fsig_log2 (unsigned long word)return word; } -#elif defined(__ia64__) - -#if __GNUC__ >=4 || (__GNUC__ ==3 && __GNUC_MINOR__ >=4 ) -# define ia64_popcnt (x) __builtin_popcountl(x) -#else -# define ia64_popcnt (x) \ - ({ \ - uint64_t ia64_intri_res; \ - asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x)); \ - ia64_intri_res; \ - }) -#endif - -unsigned long -fsig_log2 (unsigned long word)
tools/libfsimage/common/fsimage_grub.c fsig_log2 (unsigned long word) · line 143
Quoted 10 lines
tools/libfsimage/common/fsimage_grub.c +0
-7-{ -unsigned long result; - - result =ia64_popcnt ((word -1 ) & ~word); -return result; -} -#elif defined(__powerpc__)#ifdef __powerpc64__
Why not rip out the PPC stuff here at once?
Jan
Quoted 31 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper
tools/libfsimage/common/fsimage_grub.c +0
-22@@ -138,28 +138,6 @@ fsig_log2 (unsigned long word) return word; } -#elif defined(__ia64__) - -#if __GNUC__ >=4 || (__GNUC__ ==3 && __GNUC_MINOR__ >=4 ) -# define ia64_popcnt (x) __builtin_popcountl(x) -#else -# define ia64_popcnt (x) \ - ({ \ - uint64_t ia64_intri_res; \ - asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x)); \ - ia64_intri_res; \ - }) -#endif - -unsigned long -fsig_log2 (unsigned long word) -{ -unsigned long result; - - result =ia64_popcnt ((word -1 ) & ~word); -return result; -} -#elif defined(__powerpc__)
Quoted 5 lines
tools/libfsimage/common/fsimage_grub.c fsig_log2 (unsigned long word) · line 143
Quoted 1 line
tools/libfsimage/common/fsimage_grub.c +0
-0#ifdef __powerpc64__Why not rip out the PPC stuff here at once?
Jan
Can do - this appears to be the only ppc which can be ripped out. v2 on its way
~Andrew