Monthly Archives: December 2010

SSE built-in functions in GCC

int __builtin_ia32_comieq (v4sf, v4sf)int __builtin_ia32_comineq (v4sf, v4sf)int __builtin_ia32_comilt (v4sf, v4sf)int __builtin_ia32_comile (v4sf, v4sf)int __builtin_ia32_comigt (v4sf, v4sf)int __builtin_ia32_comige (v4sf, v4sf)int __builtin_ia32_ucomieq (v4sf, v4sf)int __builtin_ia32_ucomineq (v4sf, v4sf)int __builtin_ia32_ucomilt (v4sf, v4sf)int __builtin_ia32_ucomile (v4sf, v4sf)int __builtin_ia32_ucomigt (v4sf, v4sf)int __builtin_ia32_ucomige (v4sf, v4sf)v4sf __builtin_ia32_addps (v4sf, v4sf)v4sf … Continue reading

Posted in Uncategorized | Leave a comment

Vector Addition using SIMD

#include #define VECTOR_SIZE 4typedef float v4sf __attribute__ ((vector_size(sizeof(float)*VECTOR_SIZE))); // vector of four single floatstypedef union f4vector{ v4sf v; float f[VECTOR_SIZE];} f4vector;void print_vector (f4vector *v){ printf(“%f,%f,%f,%f\n”, v->f[0], v->f[1], v->f[2], v->f[3]);}int main(){ union f4vector a, b, c; a.v = (v4sf){1., 2., 3., … Continue reading

Posted in Uncategorized | Leave a comment

Mac OSX Lion: Another Windows remake?

Apple has just updated its website and now it announces that they plan to release another Mac OS-X named “Lion”.  A sneak peak to the features, some of the features are not really “wow” me and even seems too-old to … Continue reading

Posted in Uncategorized | Leave a comment