Skip to content

RJVB/sse_mathfun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

	SIMD (SSE1+MMX or SSE2) implementation of sin, cos, exp and log

Inspired by Intel Approximate Math library, and based on the corresponding algorithms of the cephes math library

The default is to use the SSE1 version. If you define USE_SSE2 the the SSE2 intrinsics will be used in place of the MMX intrinsics. Do not expect any significant performance improvement with SSE2.

Copyright (C) 2010,2011  RJVB - extensions to support 64bit doubles and SSE3,4 . Some SSE4 intrinsics allow considerable gain over the standard functions (floor, ceil, round, ...). "Stub" macros allow to use SSE intrinsics even when not compiling with SSE support. Less elegant than runtime checking but probably faster.

Copyright (C) 2007  Julien Pommier

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

  (this is the zlib license)

About

an extended version of Julien Pommier's sse_mathfun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published