Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jellefoks committed Jan 18, 2024
1 parent 49a95f2 commit 9eb66a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion third_party/abseil-cpp/absl/random/internal/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ absl_source_set("randen_hwaes") {
"//third_party/abseil-cpp/absl/base:config",
]
visibility = ["//third_party/abseil-cpp/absl/random/*"]
if (use_cobalt_customizations) {
if (is_starboard) {
sources -= [ "randen_detect.cc" ]
sources += [ "randen_detect_starboard.cc" ]
deps += [ "//starboard:starboard_headers_only" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,14 @@ bool CPUSupportsRandenHwAes() {
if (!result) {
return false;
}
#if SB_IS(ARCH_ARM) || SB_IS(ARCH_ARM64)
if (features.architecture == kSbCPUFeaturesArchitectureArm ||
features.architecture == kSbCPUFeaturesArchitectureArm64) {
return features.arm.has_neon && features.arm.has_aes;
}
#endif
#if SB_IS(ARCH_X86) || SB_IS(ARCH_X64)
if (features.architecture == kSbCPUFeaturesArchitectureX86 ||
features.architecture == kSbCPUFeaturesArchitectureX86_64) {
return features.x86.has_aesni;
}
#endif
return false;
}

Expand Down

0 comments on commit 9eb66a8

Please sign in to comment.