|
|
|
|
|
|
|
|
if (phtop == 1 || phtop == 2) { |
|
|
if (phtop == 1 || phtop == 2) { |
|
|
*bp++ = ((0xFFFF - (ph >> 15)) * magnitude) >> 16; |
|
|
*bp++ = ((0xFFFF - (ph >> 15)) * magnitude) >> 16; |
|
|
} else { |
|
|
} else { |
|
|
*bp++ = ((ph >> 15) * magnitude) >> 16; |
|
|
|
|
|
|
|
|
*bp++ = (((int32_t)ph >> 15) * magnitude) >> 16; |
|
|
} |
|
|
} |
|
|
ph += inc; |
|
|
ph += inc; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (phtop == 1 || phtop == 2) { |
|
|
if (phtop == 1 || phtop == 2) { |
|
|
*bp++ = ((0xFFFF - (ph >> 15)) * magnitude) >> 16; |
|
|
*bp++ = ((0xFFFF - (ph >> 15)) * magnitude) >> 16; |
|
|
} else { |
|
|
} else { |
|
|
*bp++ = ((ph >> 15) * magnitude) >> 16; |
|
|
|
|
|
|
|
|
*bp++ = (((int32_t)ph >> 15) * magnitude) >> 16; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |