Commit c5c8f944 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401343
parent 09cd73f1
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
*/ */
#include "SDL_types.h" #include "SDL_types.h"
#include "SDL_string.h"
#include "SDL_video.h" #include "SDL_video.h"
#include "SDL_blit.h" #include "SDL_blit.h"
#include "SDL_byteorder.h" #include "SDL_byteorder.h"
...@@ -657,9 +658,7 @@ static void ConvertAltivec32to32_noprefetch(SDL_BlitInfo *info) ...@@ -657,9 +658,7 @@ static void ConvertAltivec32to32_noprefetch(SDL_BlitInfo *info)
Uint32 *dst = (Uint32 *) info->d_pixels; Uint32 *dst = (Uint32 *) info->d_pixels;
int dstskip = info->d_skip; int dstskip = info->d_skip;
SDL_PixelFormat *srcfmt = info->src; SDL_PixelFormat *srcfmt = info->src;
int srcbpp = srcfmt->BytesPerPixel;
SDL_PixelFormat *dstfmt = info->dst; SDL_PixelFormat *dstfmt = info->dst;
int dstbpp = dstfmt->BytesPerPixel;
vector unsigned int vzero = vec_splat_u32(0); vector unsigned int vzero = vec_splat_u32(0);
vector unsigned char vpermute = calc_swizzle32(srcfmt, dstfmt); vector unsigned char vpermute = calc_swizzle32(srcfmt, dstfmt);
if (dstfmt->Amask && !srcfmt->Amask) { if (dstfmt->Amask && !srcfmt->Amask) {
...@@ -670,8 +669,8 @@ static void ConvertAltivec32to32_noprefetch(SDL_BlitInfo *info) ...@@ -670,8 +669,8 @@ static void ConvertAltivec32to32_noprefetch(SDL_BlitInfo *info)
} }
} }
assert(srcbpp == 4); assert(srcfmt->BytesPerPixel == 4);
assert(dstbpp == 4); assert(dstfmt->BytesPerPixel == 4);
while (height--) { while (height--) {
vector unsigned char valigner; vector unsigned char valigner;
...@@ -737,9 +736,7 @@ static void ConvertAltivec32to32_prefetch(SDL_BlitInfo *info) ...@@ -737,9 +736,7 @@ static void ConvertAltivec32to32_prefetch(SDL_BlitInfo *info)
Uint32 *dst = (Uint32 *) info->d_pixels; Uint32 *dst = (Uint32 *) info->d_pixels;
int dstskip = info->d_skip; int dstskip = info->d_skip;
SDL_PixelFormat *srcfmt = info->src; SDL_PixelFormat *srcfmt = info->src;
int srcbpp = srcfmt->BytesPerPixel;
SDL_PixelFormat *dstfmt = info->dst; SDL_PixelFormat *dstfmt = info->dst;
int dstbpp = dstfmt->BytesPerPixel;
vector unsigned int vzero = vec_splat_u32(0); vector unsigned int vzero = vec_splat_u32(0);
vector unsigned char vpermute = calc_swizzle32(srcfmt, dstfmt); vector unsigned char vpermute = calc_swizzle32(srcfmt, dstfmt);
if (dstfmt->Amask && !srcfmt->Amask) { if (dstfmt->Amask && !srcfmt->Amask) {
...@@ -750,8 +747,8 @@ static void ConvertAltivec32to32_prefetch(SDL_BlitInfo *info) ...@@ -750,8 +747,8 @@ static void ConvertAltivec32to32_prefetch(SDL_BlitInfo *info)
} }
} }
assert(srcbpp == 4); assert(srcfmt->BytesPerPixel == 4);
assert(dstbpp == 4); assert(dstfmt->BytesPerPixel == 4);
while (height--) { while (height--) {
vector unsigned char valigner; vector unsigned char valigner;
......
...@@ -19,8 +19,10 @@ ...@@ -19,8 +19,10 @@
#include "SDL_endian.h" #include "SDL_endian.h"
typedef Sint32 int32_t; #define int32_t math_int32_t
typedef Uint32 u_int32_t; #define u_int32_t math_u_int32_t
typedef Sint32 math_int32_t;
typedef Uint32 math_u_int32_t;
/* The original fdlibm code used statements like: /* The original fdlibm code used statements like:
n0 = ((*(int*)&one)>>29)^1; * index of high word * n0 = ((*(int*)&one)>>29)^1; * index of high word *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment