Developer Central
China  |  India
  • Home
  • Tools & SDKs
  • Resources
  • Community
  • Partners
  • Support
  • Home
  • Tools & SDKs
  • Resources
  • Community
  • Partners
  • Support
  • Home
  • Tools & SDKs
  • Resources
  • Community
  • Partners
  • Support
  • Home
  • Tools & SDKs
  • Resources
  • Community
  • Partners
  • Support

Tools & SDKs

  • Heterogeneous Computing
    • Aparapi
    • APP Kernel Analyzer
    • APP Profiler
      • Getting Started
        • System Requirements
        • Installation
        • Successful Installation
        • Using The Visual Studio Plugin
        • Using the Command Line Interface
        • Known Issues
        • Support
      • User Guide
        • APP Profiler Session Explorer
        • APP Profiler Session
        • APP Profiler Timeline
        • APP Profiler Summary Pages
        • APP Profiler Code Viewer
        • APP Profiler Kernel Occupancy Viewer
        • APP Profiler Settings
        • APP Profiler Session Parameters
        • Description of Configuration Files
        • APP Profiler Kernel Occupancy
        • CLPerfMarkerAMD Library
    • Accelerated Parallel Processing (APP) SDK
      • Downloads
        • Download Archive
      • System Requirements & Driver Compatibility
      • Documentation
      • Bolt C++ Template Library
        • AMD Bolt Sample Code Contest Official Rules
      • Samples & Demos
      • Compute System Recommendations
      • Intro OpenCL Tutorial
      • Open Source Libraries
      • Support
    • Accelerated Parallel Processing Math Libraries (APPML)
    • CodeAnalyst Performance Analyzer
      • CodeAnalyst for Linux®
      • CodeAnalyst for Windows®
      • PMU Extension Driver
      • CodeAnalyst Archive
    • CodeXL
    • gDEBugger
      • gDEBugger User Guide
        • Getting started with gDEBugger
        • Toolbars
        • Views
        • Dialogs
        • How Do I…
        • FAQ
        • Supported Extensions
        • System Requirements & Installation
        • Legal Information
        • Contact Information
  • CPU Development
    • Advanced Platform Management Link (APML)
    • Core Math Library (ACML)
      • Downloads & Resources
        • Building with ACML
        • How to use ACML with different versions of GCC/GFORTRAN
      • Archive Downloads
      • Product Features
      • Redistribution Agreements
    • LibM
      • ACML_MV
      • LibM Functions
    • Open64 SDK
      • Building with ACML
    • SimNow™ Simulator
    • Tools for DMTF DASH
    • x86 Open64 Compiler Suite
      • Developer Guide
      • Apps & Libraries Built by x86 Open64
      • Inactive Files
  • Graphics Development
    • Display Library (ADL) SDK
    • ATI GPU Services (AGS) Library
    • GPU PerfStudio 2
      • API Trace
      • Frame Debugger
      • Frame Profiler
      • Shader Debugger
      • Shader Editor
      • Previous versions
    • GPU ShaderAnalyzer
    • GPUPerfAPI
    • OpenGL ES SDK
    • Quad-Buffer SDK
    • FirePro SDK
      • FirePro News & Events
    • Radeon™ SDK
  • Open Source
    • GCC & GNU Toolchains
    • OpenCL™ Emulator-Debugger
    • Tapper

Home > Tools & SDKs > CPU Development > LibM > LibM Functions

LibM Functions

Some of the functions here point to helpful documentation from the ACML library. Use that to get a general understanding of a particular function. For function prefixes and other details, please refer to the ‘readme’ files included in the LibM library downloads.

Scalar functions

Below is the list of scalar functions present in AMD LibM. The italicized items are non-C99 functions.

Trigonometric Hyperbolic Exponential & Logarithmic Power & Absolute value Nearest integer Remainder Manipulation Maximum, Minimum & Difference
cosf acoshf expf powf ceilf fmodf copysignf fdimf
cos acosh exp pow ceil fmod copysign fdim
sinf asinhf exp2f cbrtf floorf remainderf nextafterf fmaxf
sin asinh exp2 cbrt floor remainder nextafter fmax
tanf atanhf exp10f sqrtf truncf remquof nexttowardf fminf
tan atanh exp10 sqrt trunc remquo nexttoward fmin
acosf coshf expm1f hypotf lrintf NA nanf NA
acos cosh expm1 hypot lrint NA nan NA
asinf sinhf logf fabsf llrintf NA finitef NA
asin sinh log fabs llrint NA finite NA
atanf tanhf log10f fma rintf NA NA NA
atan tanh log10 fmaf rint NA NA NA
atan2f NA log2f NA lroundf NA NA NA
atan2 NA log2 NA lround NA NA NA
sincosf NA ilogbf NA llroundf NA NA NA
sincos NA ilogb NA llround NA NA NA
NA NA log1pf NA roundf NA NA NA
NA NA log1p NA round NA NA NA
NA NA logbf NA nearbyintf NA NA NA
NA NA logb NA nearbyint NA NA NA
NA NA modff NA NA NA NA NA
NA NA modf NA NA NA NA NA
NA NA frexpf NA NA NA NA NA
NA NA frexp NA NA NA NA NA
NA NA ldexpf NA NA NA NA NA
NA NA ldexp NA NA NA NA NA
NA NA scalbnf NA NA NA NA NA
NA NA scalbn NA NA NA NA NA
NA NA scalblnf NA NA NA NA NA
NA NA scalbln NA NA NA NA NA

 

Vector functions

Vector data-type variants Array variants
Exponential
vrs4_expf vrda_expf
vrd2_exp vrsa_exp
vrs4_exp2f vrsa_exp2f
vrd2_exp2 vrda_exp2
vrs4_exp10f vrsa_exp10f
vrd2_exp10 vrda_exp10
vrs4_expm1f vrsa_expm1f
vrd2_expm1 vrda_expm1
Logarithmic
vrs4_logf vrsa_logf
vrd2_log vrda_log
vrs4_log2f vrsa_log2f
vrd2_log2 vrda_log2
vrs4_log10f vrsa_log10f
vrd2_log10 vrda_log10
vrs4_log1pf vrsa_log1pf
vrd2_log1p vrda_log1p
Trigonometric
vrd2_cosh vrd2_cosh
vrs4_cosf vrsa_cosf
vrd2_cos vrda_cos
vrs4_sinf vrsa_sinf
vrd2_sin vrda_sin
Power
vrs4_cbrtf vrsa_cbrtf
vrd2_cbrt vrda_cbrt
vrs4_powf vrsa_powf

 

Feedback or questions?
  • Developers Forum

Get the hcNewsFlash.

Your email address:

No SPAM.
Easy unsubscribe.

HSA is going to rock your world.

Learn more about Heterogeneous System Architecture.

Got Questions?

Ask the Developer Forums Community. They’ve got answers.

Tools & SDKs

  • Heterogeneous Computing
    • Aparapi
    • APP Kernel Analyzer
    • APP Profiler
      • Getting Started
        • System Requirements
        • Installation
        • Successful Installation
        • Using The Visual Studio Plugin
        • Using the Command Line Interface
        • Known Issues
        • Support
      • User Guide
        • APP Profiler Session Explorer
        • APP Profiler Session
        • APP Profiler Timeline
        • APP Profiler Summary Pages
        • APP Profiler Code Viewer
        • APP Profiler Kernel Occupancy Viewer
        • APP Profiler Settings
        • APP Profiler Session Parameters
        • Description of Configuration Files
        • APP Profiler Kernel Occupancy
        • CLPerfMarkerAMD Library
    • Accelerated Parallel Processing (APP) SDK
      • Downloads
        • Download Archive
      • System Requirements & Driver Compatibility
      • Documentation
      • Bolt C++ Template Library
        • AMD Bolt Sample Code Contest Official Rules
      • Samples & Demos
      • Compute System Recommendations
      • Intro OpenCL Tutorial
      • Open Source Libraries
      • Support
    • Accelerated Parallel Processing Math Libraries (APPML)
    • CodeAnalyst Performance Analyzer
      • CodeAnalyst for Linux®
      • CodeAnalyst for Windows®
      • PMU Extension Driver
      • CodeAnalyst Archive
    • CodeXL
    • gDEBugger
      • gDEBugger User Guide
        • Getting started with gDEBugger
        • Toolbars
        • Views
        • Dialogs
        • How Do I…
        • FAQ
        • Supported Extensions
        • System Requirements & Installation
        • Legal Information
        • Contact Information
  • CPU Development
    • Advanced Platform Management Link (APML)
    • Core Math Library (ACML)
      • Downloads & Resources
        • Building with ACML
        • How to use ACML with different versions of GCC/GFORTRAN
      • Archive Downloads
      • Product Features
      • Redistribution Agreements
    • LibM
      • ACML_MV
      • LibM Functions
    • Open64 SDK
      • Building with ACML
    • SimNow™ Simulator
    • Tools for DMTF DASH
    • x86 Open64 Compiler Suite
      • Developer Guide
      • Apps & Libraries Built by x86 Open64
      • Inactive Files
  • Graphics Development
    • Display Library (ADL) SDK
    • ATI GPU Services (AGS) Library
    • GPU PerfStudio 2
      • API Trace
      • Frame Debugger
      • Frame Profiler
      • Shader Debugger
      • Shader Editor
      • Previous versions
    • GPU ShaderAnalyzer
    • GPUPerfAPI
    • OpenGL ES SDK
    • Quad-Buffer SDK
    • FirePro SDK
      • FirePro News & Events
    • Radeon™ SDK
  • Open Source
    • GCC & GNU Toolchains
    • OpenCL™ Emulator-Debugger
    • Tapper

©2013 Advanced Micro Devices, Inc. OpenCL and the OpenCL logo are trademarks of Apple, Inc., used with permission by Khronos.

  • Contact Us
  • |
  • Careers
  • |
  • Site Map
  • |
  • Terms and Conditions
  • |
  • Privacy
  • |
  • Trademarks