Jump to content


Math Library


  • You cannot reply to this topic
3 replies to this topic

#1 drew.woods

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 15 September 2008 - 03:50 AM

Is there a list available of the math library functions that are supported by CoDeveloper?

#2 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 15 September 2008 - 09:43 AM

QUOTE (drew.woods @ Sep 15 2008, 05:50 AM) <{POST_SNAPBACK}>
Is there a list available of the math library functions that are supported by CoDeveloper?


Hi,
Presently there is not a list because there is not really a math.h library to speak of. As soon as a library becomes available per supported vendor, associated documentation will be provided with each release.

Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.

#3 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 15 September 2008 - 11:42 AM

As of 3.20.b.6, the following floating-point operations are supported using functions of the same name, when using any Xilinx or Altera platform:
  • sqrt (Xilinx only)
  • sqrtf (single-precision, Xilinx only)
  • fabs
  • fabsf (single-precision)
  • All standard C arithmetic operators and type conversions involving float and double types
Other floating-point math operations are supported by primitive functions or processes written in Impulse C and found in various examples distributed with the CoDeveloper release:

Example: BlackScholes_double
  • log (my_log)
  • exp (my_exp)
Example: CordicMath
  • fabs (myfabs)
  • sqrt (mysqrt)
  • sin (sin64)
  • exp (exp64)
Example: Cordic_Sine
  • sin (sin64)
Integer square root is also available in two examples:

Example: SquareRoot
  • 32-bit sqrt (isqrt)
Example: SquareRoot8bit
  • 8-bit sqrt (mySqrt)
This is not an exhaustive list; it does not include examples of math functions not part of the standard C math library, such as FFTs, FIR filters, or CRCs, that ship as example projects with the CoDeveloper release, or as Ready-to-Run examples available for download.
Ralph Bodenner
Impulse Accelerated Technologies, Inc.

#4 drew.woods

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 15 September 2008 - 12:18 PM

Thanks Ralph,

I wasn't aware of the functions in the BlackScholes example





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users