comparison src/hotspot/os_cpu/solaris_sparc/count_trailing_zeros_solaris_sparc.hpp @ 54526:ee29b516a36a

revert changes
author jlaskey
date Wed, 23 Jan 2019 16:09:20 -0400
parents 71c04702a3d5
children
comparison
equal deleted inserted replaced
0:2f3de04d45bb 1:7aea1a46e39a
1 /* 1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef OS_CPU_SOLARIS_SPARC_VM_COUNTTRAILINGZEROS_HPP 25 #ifndef OS_CPU_SOLARIS_SPARC_COUNT_TRAILING_ZEROS_SOLARIS_SPARC_HPP
26 #define OS_CPU_SOLARIS_SPARC_VM_COUNTTRAILINGZEROS_HPP 26 #define OS_CPU_SOLARIS_SPARC_COUNT_TRAILING_ZEROS_SOLARIS_SPARC_HPP
27 27
28 #include "utilities/globalDefinitions.hpp" 28 #include "utilities/globalDefinitions.hpp"
29 29
30 inline unsigned count_trailing_zeros(uintx x) { 30 inline unsigned count_trailing_zeros(uintx x) {
31 assert(x != 0, "precondition"); 31 assert(x != 0, "precondition");
36 uintx result; 36 uintx result;
37 __asm__(" popc %1, %0\n\t" : "=r" (result) : "r" (rx)); 37 __asm__(" popc %1, %0\n\t" : "=r" (result) : "r" (rx));
38 return result; 38 return result;
39 } 39 }
40 40
41 #endif // include guard 41 #endif // OS_CPU_SOLARIS_SPARC_COUNT_TRAILING_ZEROS_SOLARIS_SPARC_HPP