mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Division->shift. since it's a signed integer, gets rid of a cdq instruction.
This commit is contained in:
parent
0eb3702ecb
commit
df7bd89b7d
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ void IndexGenerator::AddStrip(int numVerts, bool clockwise) {
|
|||
|
||||
// We allow ourselves to write some extra indices to avoid the fallback loop.
|
||||
// That's alright as we're appending to a buffer - they will get overwritten anyway.
|
||||
int numChunks = (numTris + 7) / 8;
|
||||
int numChunks = (numTris + 7) >> 3;
|
||||
__m128i ibase8 = _mm_set1_epi16(index_);
|
||||
const __m128i *offsets = (const __m128i *)(clockwise ? offsets_clockwise : offsets_counter_clockwise);
|
||||
__m128i *dst = (__m128i *)inds_;
|
||||
|
@ -157,7 +157,7 @@ void IndexGenerator::AddStrip(int numVerts, bool clockwise) {
|
|||
inds_ += numTris * 3;
|
||||
// wind doesn't need to be updated, an even number of triangles have been drawn.
|
||||
#elif PPSSPP_ARCH(ARM_NEON)
|
||||
int numChunks = (numTris + 7) / 8;
|
||||
int numChunks = (numTris + 7) >> 3;
|
||||
uint16x8_t ibase8 = vdupq_n_u16(index_);
|
||||
const u16 *offsets = clockwise ? offsets_clockwise : offsets_counter_clockwise;
|
||||
u16 *dst = inds_;
|
||||
|
|
Loading…
Add table
Reference in a new issue