Re: [klibc] klibc sparc trouble with gcc > 4.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oleg Verych wrote:
+	uint32_t vx;
+	int dp;
+
+	if (vhi) {
+		vx = vhi;
+		dp = 0;
+	} else {
+		vx = (uint32_t) v;

`v' is a data in memory, accessed with 32-bits cast, thus operation
yields high 32-bits part of `v'.


Bullsh*t. That would be *(uint32_t *)&v. Casting between integer types truncate the high bits regardless of platform endianness.

	-hpa
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux