AVIR
High-quality pro image resizing library
 
Loading...
Searching...
No Matches
avir_float4_sse.h File Reference

Inclusion file for the "float4" type. More...

#include <xmmintrin.h>
#include <emmintrin.h>

Go to the source code of this file.

Classes

class  avir::float4
 SIMD packed 4-float type. More...
 

Typedefs

typedef fpclass_def< avir ::float4, float > avir::fpclass_float4
 Class that can be used as the "fpclass" template parameter of the avir::CImageResizer class to perform calculation using default interleaved algorithm, using SIMD float4 type.
 

Functions

float4 avir::clamp (const float4 &Value, const float4 &minv, const float4 &maxv)
 
float4 avir::round (const float4 &v)
 

Detailed Description

Inclusion file for the "float4" type.

This file includes the "float4" SSE-based type used for SIMD variable storage and processing.

AVIR Copyright (c) 2015-2020 Aleksey Vaneev

Function Documentation

◆ clamp()

float4 avir::clamp ( const float4 & Value,
const float4 & minv,
const float4 & maxv )

SIMD function "clamps" (clips) the specified packed values so that they are not lesser than "minv", and not greater than "maxv".

Parameters
ValueValue to clamp.
minvMinimal allowed value.
maxvMaximal allowed value.
Returns
The clamped value.

◆ round()

float4 avir::round ( const float4 & v)

SIMD rounding function, exact result.

Parameters
vValue to round.
Returns
Rounded SIMD value.