Add DevIL 1.7.8.

This commit is contained in:
rude
2013-09-26 00:20:08 +02:00
parent 6e493fb605
commit c065120c58
487 changed files with 219483 additions and 0 deletions
@@ -0,0 +1,40 @@
//-----------------------------------------------------------------------------
//
// ImageLib Sources
// Last modified: 17/04/2005
// by Meloni Dario
//
// Description: Common altivec function.
//
//-----------------------------------------------------------------------------
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif //HAVE_CONFIG_H
#ifdef ALTIVEC_GCC
#include "altivec_common.h"
// from http://developer.apple.com/hardware/ve/alignment.html
/*vector unsigned char load_unaligned( unsigned char *buffer ) {
vector unsigned char MSQ, LSQ;
vector unsigned char mask;
MSQ = vec_ld(0, buffer); // most significant quadword
LSQ = vec_ld(15, buffer); // least significant quadword
mask = vec_lvsl(0, buffer); // create the permute mask
return vec_perm(MSQ, LSQ, mask);// align the data
}*/
vector float fill_vector_f( float value ) {
vector_t vec;
vec.sf[0] = value;
vector float temp = vec_ld(0,vec.sf);
return vec_splat(temp,0);
}
inline unsigned int round16( unsigned int v ) {
return ((int)((v/16)*10)%10) > 0 ? (v/16) : (v/16)+1;
}
#endif