Changeset b2acdf32 in mainline for uspace/lib/math/include/math.h


Ignore:
Timestamp:
2018-08-29T20:05:52Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Children:
184ff675
Parents:
b1b201f
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-29 15:48:16)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-29 20:05:52)
Message:

Remove unused and not well tested atan()/atan2()

File:
1 edited

Legend:

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

    rb1b201f rb2acdf32  
    3737#define LIBMATH_MATH_H_
    3838
    39 #include <atan.h>
    40 #include <atan2.h>
    4139#include <ceil.h>
    4240#include <cosh.h>
     
    6260#define HUGE_VAL FLOAT64_INF
    6361
    64 static inline float64_t atan_f64(float64_t val)
    65 {
    66         return float64_atan(val);
    67 }
    68 
    69 static inline float32_t atan_f32(float32_t val)
    70 {
    71         return float32_atan(val);
    72 }
    73 
    74 static inline float64_t atan2_f64(float64_t y, float64_t x)
    75 {
    76         return float64_atan2(y, x);
    77 }
    78 
    79 static inline float32_t atan2_f32(float32_t y, float32_t x)
    80 {
    81         return float32_atan2(y, x);
    82 }
    83 
    8462static inline float64_t ceil_f64(float64_t val)
    8563{
     
    279257{
    280258        return float32_trunc(val);
    281 }
    282 
    283 static inline float64_t atan(float64_t val)
    284 {
    285         return atan_f64(val);
    286 }
    287 
    288 static inline float32_t atanf(float32_t val)
    289 {
    290         return atan_f32(val);
    291 }
    292 
    293 static inline float64_t atan2(float64_t y, float64_t x)
    294 {
    295         return atan2_f64(y, x);
    296 }
    297 
    298 static inline float32_t atan2f(float32_t y, float32_t x)
    299 {
    300         return atan2_f32(y, x);
    301259}
    302260
Note: See TracChangeset for help on using the changeset viewer.