Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: third_party/go/src/golang.org/x/mobile/app/android_arm.c

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/go/src/golang.org/x/mobile/app/android_arm.c
diff --git a/third_party/go/src/golang.org/x/mobile/app/android_arm.c b/third_party/go/src/golang.org/x/mobile/app/android_arm.c
deleted file mode 100644
index e9b9b21de9fe40a8a89939c26c7f37618cf483ef..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/app/android_arm.c
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2014 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// +build android,arm
-
-#include <android/log.h>
-#include <stdint.h>
-#include <string.h>
-#include "_cgo_export.h"
-
-#define AT_PLATFORM 15
-#define AT_HWCAP 16
-#define HWCAP_VFP (1 << 6)
-#define HWCAP_VFPv3 (1 << 13)
-
-void build_auxv(uint32_t *auxv, size_t len) {
- // Minimum auxv required by runtime/os_linux_arm.go.
- int i;
- if (len < 5) {
- __android_log_print(ANDROID_LOG_FATAL, "Go", "auxv len %d too small", len);
- }
- auxv[0] = AT_PLATFORM;
- *(char**)&auxv[1] = strdup("v7l");
-
- auxv[2] = AT_HWCAP;
- auxv[3] = HWCAP_VFP | HWCAP_VFPv3;
- for (i = 4; i < len; i++) {
- auxv[i] = 0;
- }
-}
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/app/android.go ('k') | third_party/go/src/golang.org/x/mobile/app/android_x86.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698