Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/e2fsprogs/old_e2fsprogs/blkid/probe.h
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/e2fsprogs/old_e2fsprogs/blkid/probe.h
r1765 r2725 12 12 * %End-Header% 13 13 */ 14 15 #ifndef _BLKID_PROBE_H 16 #define _BLKID_PROBE_H 14 #ifndef BLKID_PROBE_H 15 #define BLKID_PROBE_H 1 17 16 18 17 #include <linux/types.h> … … 309 308 __asm__("bswap %0" : "=r" (val) : "0" (val)); 310 309 #else 311 __asm__("xchgb %b0,%h0\n\t" /* swap lower bytes 312 "rorl $16,%0\n\t" /* swap words 313 "xchgb %b0,%h0" /* swap higher bytes 310 __asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */ 311 "rorl $16,%0\n\t" /* swap words */ 312 "xchgb %b0,%h0" /* swap higher bytes */ 314 313 :"=q" (val) 315 314 : "0" (val)); … … 320 319 _INLINE_ __u16 blkid_swab16(__u16 val) 321 320 { 322 __asm__("xchgb %b0,%h0" /* swap bytes */ \323 : "=q" (val) \324 : "0" (val)); \321 __asm__("xchgb %b0,%h0" /* swap bytes */ 322 : "=q" (val) 323 : "0" (val)); 325 324 return val; 326 325 }
Note:
See TracChangeset
for help on using the changeset viewer.