Forum Discussion
Altera_Forum
Honored Contributor
10 years agothe msb is the sign bit, so you could check your 24'th bit using a bitmask, if it is set, change the 32'nd bit and vice versa. Then clear the 24'th bit.
the msb is the sign bit, so you could check your 24'th bit using a bitmask, if it is set, change the 32'nd bit and vice versa. Then clear the 24'th bit.