Changeset b69786e in mainline for uspace/lib/math/include


Ignore:
Timestamp:
2015-09-17T16:16:25Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b23d05
Parents:
ba8eecf
Message:

Add all functions required by C89 plus their single-precision variants from C99.

Location:
uspace/lib/math/include
Files:
14 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/include/fmod.h

    rba8eecf rb69786e  
    3333 */
    3434
    35 #ifndef LIBMATH_MOD_H_
    36 #define LIBMATH_MOD_H_
     35#ifndef LIBMATH_FMOD_H_
     36#define LIBMATH_FMOD_H_
    3737
    38 extern float32_t float32_mod(float32_t, float32_t);
    39 extern float64_t float64_mod(float64_t, float64_t);
     38#include <mathtypes.h>
     39
     40extern float32_t float32_fmod(float32_t, float32_t);
     41extern float64_t float64_fmod(float64_t, float64_t);
    4042
    4143#endif
  • uspace/lib/math/include/math.h

    rba8eecf rb69786e  
    11/*
    22 * Copyright (c) 2011 Petr Koupy
     3 * Copyright (c) 2015 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    3839#include <libarch/math.h>
    3940
     41#define M_LN10 2.30258509299404568402
    4042#define M_LN2 0.69314718055994530942
    4143#define M_LOG2E 1.4426950408889634074
    4244#define M_PI 3.14159265358979323846
     45#define M_PI_2 1.57079632679489661923
    4346
    4447#endif
Note: See TracChangeset for help on using the changeset viewer.