1 /* fls.S: SPARC default fls definition.
3 * SPARC default fls definition, which follows the same algorithm as
4 * in generic fls(). This function will be boot time patched on T4
8 #include <linux/linkage.h>
9 #include <asm/export.h>
12 .register %g2, #scratch
13 .register %g3, #scratch
17 sethi %hi(0xffff0000), %g3
22 sethi %hi(0xff000000), %g3
25 sethi %hi(0xf0000000), %g3
32 sethi %hi(0xf0000000), %g3
36 sethi %hi(0xc0000000), %g3
58 sethi %hi(0xff000000), %g3