1e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh/* -*- c++ -*- */ 2e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh/* 3e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * Copyright (C) 2009 The Android Open Source Project 4e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * All rights reserved. 5e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * 6e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * Redistribution and use in source and binary forms, with or without 7e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * modification, are permitted provided that the following conditions 8e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * are met: 9e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * * Redistributions of source code must retain the above copyright 10e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * notice, this list of conditions and the following disclaimer. 11e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * * Redistributions in binary form must reproduce the above copyright 12e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * notice, this list of conditions and the following disclaimer in 13e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * the documentation and/or other materials provided with the 14e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * distribution. 15e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * 16e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 19e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 20e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 23e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 24e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 26e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * SUCH DAMAGE. 28e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh */ 29e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 30e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh#ifndef BIONIC_LIBSTDCPP_INCLUDE_CMATH__ 31e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh#define BIONIC_LIBSTDCPP_INCLUDE_CMATH__ 32e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 33e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh/* 34e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh * Standard C++ Library wrapper around the C time.h header file. 35e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh */ 36e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 37e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh#include <cstddef> 38e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh#include <math.h> 39e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 40e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehextern "C++" { 41e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 42e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehnamespace std 43e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh{ 44e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh// Functions. 45e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::cos; 46e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::sin; 47e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::tan; 48e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::acos; 49e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::asin; 50e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::atan; 51e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::atan2; 52e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 53e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::cosh; 54e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::sinh; 55e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::tanh; 56e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 57e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::exp; 58e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::frexp; 59e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::ldexp; 60e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::log; 61e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::log10; 62e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::modf; 63e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 64e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::pow; 65e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::sqrt; 66e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 67e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::ceil; 68e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::fabs; 69e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::floor; 70e7de7d971409d955ca138406d5062499bc554451Andrew Hsiehusing ::fmod; 71e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh} // namespace std 72e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 73e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh} // extern C++ 74e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh 75e7de7d971409d955ca138406d5062499bc554451Andrew Hsieh#endif // BIONIC_LIBSTDCPP_INCLUDE_CMATH__ 76