mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 00:20:31 +00:00
clean up experimental setup and keep using ffast-math flag
Reviewed By: emilsjolander Differential Revision: D7414228 fbshipit-source-id: 320e1b1953f6af867b13e617af7872eb8999160e
This commit is contained in:
parent
4841aed82c
commit
c041c9fd62
@ -16,11 +16,7 @@ public class YogaConfig {
|
|||||||
public static int SPACING_TYPE = 1;
|
public static int SPACING_TYPE = 1;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
if (YogaConstants.shouldUseFastMath) {
|
|
||||||
SoLoader.loadLibrary("yogafastmath");
|
|
||||||
} else {
|
|
||||||
SoLoader.loadLibrary("yoga");
|
SoLoader.loadLibrary("yoga");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
long mNativePointer;
|
long mNativePointer;
|
||||||
|
@ -18,8 +18,6 @@ public class YogaConstants {
|
|||||||
*/
|
*/
|
||||||
public static final float UNDEFINED = (float) (10E20);
|
public static final float UNDEFINED = (float) (10E20);
|
||||||
|
|
||||||
public static boolean shouldUseFastMath = false;
|
|
||||||
|
|
||||||
public static boolean isUndefined(float value) {
|
public static boolean isUndefined(float value) {
|
||||||
// Value of a float in the case of it being not defined is 10.1E20. Earlier it used to be NAN,
|
// Value of a float in the case of it being not defined is 10.1E20. Earlier it used to be NAN,
|
||||||
// the benefit of which
|
// the benefit of which
|
||||||
|
@ -17,11 +17,7 @@ import javax.annotation.Nullable;
|
|||||||
public class YogaNode implements Cloneable {
|
public class YogaNode implements Cloneable {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
if (YogaConstants.shouldUseFastMath) {
|
|
||||||
SoLoader.loadLibrary("yogafastmath");
|
|
||||||
} else {
|
|
||||||
SoLoader.loadLibrary("yoga");
|
SoLoader.loadLibrary("yoga");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user