Revision e0b8d64cc820023ea96ad16b370e53eeb06d3790 authored by ffxbld on 12 February 2014, 20:42:44 UTC, committed by ffxbld on 12 February 2014, 20:42:44 UTC
--HG-- branch : GECKO2701_2014021215_RELBRANCH
1 parent 991a138
FloatingPoint.cpp
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Implementations of FloatingPoint functions */
#include "mozilla/FloatingPoint.h"
namespace mozilla {
bool
IsFloat32Representable(double x)
{
float asFloat = static_cast<float>(x);
double floatAsDouble = static_cast<double>(asFloat);
return floatAsDouble == x;
}
} /* namespace mozilla */
Computing file changes ...