Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle

This commit is contained in:
DrSlony
2015-08-11 11:55:03 +02:00
parent effb46c3e1
commit 0e0cfb9b25
452 changed files with 133354 additions and 99460 deletions

View File

@@ -12,14 +12,32 @@ typedef __m128 vfloat;
typedef __m128i vint2;
typedef __m128i vmask;
static vdouble vloadu(double *p) { return _mm_loadu_pd(p); }
static void vstoreu(double *p, vdouble v) { _mm_storeu_pd(p, v); }
static vdouble vloadu(double *p)
{
return _mm_loadu_pd(p);
}
static void vstoreu(double *p, vdouble v)
{
_mm_storeu_pd(p, v);
}
static vfloat vloaduf(float *p) { return _mm_loadu_ps(p); }
static void vstoreuf(float *p, vfloat v) { _mm_storeu_ps(p, v); }
static vfloat vloaduf(float *p)
{
return _mm_loadu_ps(p);
}
static void vstoreuf(float *p, vfloat v)
{
_mm_storeu_ps(p, v);
}
static vint2 vloadui2(int32_t *p) { return (vint2)_mm_loadu_si128((__m128i *)p); }
static void vstoreui2(int32_t *p, vint2 v) { _mm_storeu_si128((__m128i *)p, (__m128i)v); }
static vint2 vloadui2(int32_t *p)
{
return (vint2)_mm_loadu_si128((__m128i *)p);
}
static void vstoreui2(int32_t *p, vint2 v)
{
_mm_storeu_si128((__m128i *)p, (__m128i)v);
}
#endif
#ifdef ENABLE_AVX
@@ -32,30 +50,44 @@ typedef __m128i vint;
typedef __m256 vfloat;
typedef struct {
vint x, y;
vint x, y;
} vint2;
static vdouble vloadu(double *p) { return _mm256_loadu_pd(p); }
static void vstoreu(double *p, vdouble v) { return _mm256_storeu_pd(p, v); }
static vfloat vloaduf(float *p) { return _mm256_loadu_ps(p); }
static void vstoreuf(float *p, vfloat v) { return _mm256_storeu_ps(p, v); }
static vint2 vloadui2(int32_t *p) {
vint2 r;
r.x = _mm_loadu_si128((__m128i *) p );
r.y = _mm_loadu_si128((__m128i *)(p + 4));
return r;
static vdouble vloadu(double *p)
{
return _mm256_loadu_pd(p);
}
static void vstoreu(double *p, vdouble v)
{
return _mm256_storeu_pd(p, v);
}
static void vstoreui2(int32_t *p, vint2 v) {
_mm_storeu_si128((__m128i *) p , v.x);
_mm_storeu_si128((__m128i *)(p + 4), v.y);
static vfloat vloaduf(float *p)
{
return _mm256_loadu_ps(p);
}
static void vstoreuf(float *p, vfloat v)
{
return _mm256_storeu_ps(p, v);
}
static vint2 vloadui2(int32_t *p)
{
vint2 r;
r.x = _mm_loadu_si128((__m128i *) p );
r.y = _mm_loadu_si128((__m128i *)(p + 4));
return r;
}
static void vstoreui2(int32_t *p, vint2 v)
{
_mm_storeu_si128((__m128i *) p , v.x);
_mm_storeu_si128((__m128i *)(p + 4), v.y);
}
#endif
typedef struct {
vdouble x, y;
vdouble x, y;
} vdouble2;
vdouble xldexp(vdouble x, vint q);
@@ -91,7 +123,7 @@ vdouble xlog1p(vdouble a);
//
typedef struct {
vfloat x, y;
vfloat x, y;
} vfloat2;
vfloat xsinf(vfloat d);