// Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

#ifndef RUNTIME_PLATFORM_FLOATING_POINT_H_
#define RUNTIME_PLATFORM_FLOATING_POINT_H_

#include <cmath>

inline double fmod_ieee(double x, double y) {
  return fmod(x, y);
}
inline double atan2_ieee(double y, double x) {
  return atan2(y, x);
}

#endif  // RUNTIME_PLATFORM_FLOATING_POINT_H_

// Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

#ifndef RUNTIME_PLATFORM_FLOATING_POINT_H_
#define RUNTIME_PLATFORM_FLOATING_POINT_H_

#include <math.h>

inline double fmod_ieee(double x, double y) {
  return fmod(x, y);
}
inline double atan2_ieee(double y, double x) {
  return atan2(y, x);
}

#endif  // RUNTIME_PLATFORM_FLOATING_POINT_H_

Fix import to fix Flutter build
[gardening] Fix import to fix Flutter build

How cmath is included changes whether the symbols are in the std:: namespace or not. This changes it back to how we have it everywhere in the codebase: math.h

Follow up of https://dart-review.googlesource.com/c/sdk/+/115707/

Change-Id: I383c1e9de0434d1367dfdb6302a8fb6db2c3062c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115920
Auto-Submit: Daco Harkes <930cbae0ca77f1954c53e32620d89cfcca318f00@google.com>
Reviewed-by: Martin Kustermann <a35dd5b79fac84b2bb3b026a16b8becc55af5961@google.com>
Commit-Queue: Daco Harkes <930cbae0ca77f1954c53e32620d89cfcca318f00@google.com>
