History

Remove the array_stack_align.h header from the encoder lib

All of these macros are already available in the common macros.h header. Unify all the macros to be named ENFORCE_* instead of mixed FORCE/ENFORCE.

Martin Storsjö committed 12 years ago

Commit 66c39a41 parent e413ed216 files · +41 −174Browse files

Showing the changes to codec/decoder/core/src/mc.cpp (1 of 16 files). Show all

Unified · Split

codec/decoder/core/src/mc.cpp+21−21
@@ -420,7 +420,7 @@ static inline void_t McHorVer22_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 419 unmodified lines
420420
421421 static inline void_t McHorVer01_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
422422 int32_t iWidth, int32_t iHeight) {
423− FORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16);
423+ ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16);
424424 if (iWidth == 16) {
425425 McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight);
426426 PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc, iSrcStride, pTmp, 16, iHeight);
@@ -434,7 +434,7 @@ static inline void_t McHorVer01_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 7 unmodified lines
434434 }
435435 static inline void_t McHorVer03_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
436436 int32_t iWidth, int32_t iHeight) {
437− FORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16);
437+ ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16);
438438 if (iWidth == 16) {
439439 McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight);
440440 PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc + iSrcStride, iSrcStride, pTmp, 16, iHeight);
@@ -448,7 +448,7 @@ static inline void_t McHorVer03_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 7 unmodified lines
448448 }
449449 static inline void_t McHorVer10_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
450450 int32_t iWidth, int32_t iHeight) {
451− FORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16);
451+ ENFORCE_STACK_ALIGN_1D (uint8_t, pTmp, 256, 16);
452452 if (iWidth == 16) {
453453 McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pTmp, 16, iHeight);
454454 PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc, iSrcStride, pTmp, 16, iHeight);
@@ -462,8 +462,8 @@ static inline void_t McHorVer10_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 7 unmodified lines
462462 }
463463 static inline void_t McHorVer11_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
464464 int32_t iWidth, int32_t iHeight) {
465− FORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
466− FORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
465+ ENFORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
466+ ENFORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
467467 if (iWidth == 16) {
468468 McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pHorTmp, 16, iHeight);
469469 McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pVerTmp, 16, iHeight);
@@ -480,8 +480,8 @@ static inline void_t McHorVer11_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 10 unmodified lines
480480 }
481481 static inline void_t McHorVer12_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
482482 int32_t iWidth, int32_t iHeight) {
483− FORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
484− FORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
483+ ENFORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
484+ ENFORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
485485 if (iWidth == 16) {
486486 McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pVerTmp, 16, iHeight);
487487 McHorVer22WidthEq16_sse2 (pSrc, iSrcStride, pCtrTmp, 16, iHeight);
@@ -498,8 +498,8 @@ static inline void_t McHorVer12_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 10 unmodified lines
498498 }
499499 static inline void_t McHorVer13_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
500500 int32_t iWidth, int32_t iHeight) {
501− FORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
502− FORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
501+ ENFORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
502+ ENFORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
503503 if (iWidth == 16) {
504504 McHorVer20WidthEq16_sse2 (pSrc + iSrcStride, iSrcStride, pHorTmp, 16, iHeight);
505505 McHorVer02WidthEq16_sse2 (pSrc, iSrcStride, pVerTmp, 16, iHeight);
@@ -516,8 +516,8 @@ static inline void_t McHorVer13_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 10 unmodified lines
516516 }
517517 static inline void_t McHorVer21_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
518518 int32_t iWidth, int32_t iHeight) {
519− FORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
520− FORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
519+ ENFORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
520+ ENFORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
521521 if (iWidth == 16) {
522522 McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pHorTmp, 16, iHeight);
523523 McHorVer22WidthEq16_sse2 (pSrc, iSrcStride, pCtrTmp, 16, iHeight);
@@ -534,8 +534,8 @@ static inline void_t McHorVer21_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 10 unmodified lines
534534 }
535535 static inline void_t McHorVer23_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
536536 int32_t iWidth, int32_t iHeight) {
537− FORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
538− FORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
537+ ENFORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
538+ ENFORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
539539 if (iWidth == 16) {
540540 McHorVer20WidthEq16_sse2 (pSrc + iSrcStride, iSrcStride, pHorTmp, 16, iHeight);
541541 McHorVer22WidthEq16_sse2 (pSrc, iSrcStride, pCtrTmp, 16, iHeight);
@@ -552,7 +552,7 @@ static inline void_t McHorVer23_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 10 unmodified lines
552552 }
553553 static inline void_t McHorVer30_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
554554 int32_t iWidth, int32_t iHeight) {
555− FORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
555+ ENFORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
556556 if (iWidth == 16) {
557557 McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pHorTmp, 16, iHeight);
558558 PixelAvgWidthEq16_sse2 (pDst, iDstStride, pSrc + 1, iSrcStride, pHorTmp, 16, iHeight);
@@ -566,8 +566,8 @@ static inline void_t McHorVer30_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 7 unmodified lines
566566 }
567567 static inline void_t McHorVer31_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
568568 int32_t iWidth, int32_t iHeight) {
569− FORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
570− FORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
569+ ENFORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
570+ ENFORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
571571 if (iWidth == 16) {
572572 McHorVer20WidthEq16_sse2 (pSrc, iSrcStride, pHorTmp, 16, iHeight);
573573 McHorVer02WidthEq16_sse2 (pSrc + 1, iSrcStride, pVerTmp, 16, iHeight);
@@ -584,8 +584,8 @@ static inline void_t McHorVer31_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 10 unmodified lines
584584 }
585585 static inline void_t McHorVer32_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
586586 int32_t iWidth, int32_t iHeight) {
587− FORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
588− FORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
587+ ENFORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
588+ ENFORCE_STACK_ALIGN_1D (uint8_t, pCtrTmp, 256, 16);
589589 if (iWidth == 16) {
590590 McHorVer02WidthEq16_sse2 (pSrc + 1, iSrcStride, pVerTmp, 16, iHeight);
591591 McHorVer22WidthEq16_sse2 (pSrc, iSrcStride, pCtrTmp, 16, iHeight);
@@ -602,8 +602,8 @@ static inline void_t McHorVer32_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t · 10 unmodified lines
602602 }
603603 static inline void_t McHorVer33_sse2 (uint8_t* pSrc, int32_t iSrcStride, uint8_t* pDst, int32_t iDstStride,
604604 int32_t iWidth, int32_t iHeight) {
605− FORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
606− FORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
605+ ENFORCE_STACK_ALIGN_1D (uint8_t, pHorTmp, 256, 16);
606+ ENFORCE_STACK_ALIGN_1D (uint8_t, pVerTmp, 256, 16);
607607 if (iWidth == 16) {
608608 McHorVer20WidthEq16_sse2 (pSrc + iSrcStride, iSrcStride, pHorTmp, 16, iHeight);
609609 McHorVer02WidthEq16_sse2 (pSrc + 1, iSrcStride, pVerTmp, 16, iHeight);
@@ -666,4 +666,4 @@ void_t InitMcFunc (SMcFunc* pMcFunc, int32_t iCpu) { · 56 unmodified lines
666666 #endif //(X86_ASM)
667667 }
668668
669−} // namespace WelsDec
669+} // namespace WelsDec

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t