Summary: Setup QE for yoga perf changes Reviewed By: emilsjolander Differential Revision: D7059278 fbshipit-source-id: dd11b018edc8ea930d5eba09c6c01e349bb8b63c
24 lines
556 B
Java
24 lines
556 B
Java
/*
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
package com.facebook.yoga;
|
|
|
|
public class YogaConstants {
|
|
|
|
public static final float UNDEFINED = Float.NaN;
|
|
|
|
public static boolean shouldUseFastMath = false;
|
|
|
|
public static boolean isUndefined(float value) {
|
|
return Float.compare(value, UNDEFINED) == 0;
|
|
}
|
|
|
|
public static boolean isUndefined(YogaValue value) {
|
|
return value.unit == YogaUnit.UNDEFINED;
|
|
}
|
|
}
|